| | |
| | | <result property="factory" column="factory"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isDeal" column="is_deal"/> |
| | | <result property="userInfoId" column="user_info_id"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceThirdDataVo"> |
| | | select id, data_type, data_type_explain, data_info, factory, create_time, is_deal |
| | | select id, |
| | | data_type, |
| | | data_type_explain, |
| | | data_info, |
| | | factory, |
| | | create_time, |
| | | is_deal, |
| | | user_info_id, |
| | | remark |
| | | from service_third_data |
| | | </sql> |
| | | |
| | |
| | | <if test="dataInfo != null and dataInfo != ''">and data_info = #{dataInfo}</if> |
| | | <if test="factory != null and factory != ''">and factory = #{factory}</if> |
| | | <if test="isDeal != null">and is_deal = #{isDeal}</if> |
| | | <if test="createTime != null ">and create_time <= #{createTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertThirdDataZxyzjh" parameterType="com.smartor.domain.ServiceThirdData"> |
| | | insert into service_third_data_zxyzjh |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">data_type,</if> |
| | | <if test="dataTypeExplain != null">data_type_explain,</if> |
| | | <if test="dataInfo != null">data_info,</if> |
| | | <if test="factory != null">factory,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isDeal != null">is_deal,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">#{dataType},</if> |
| | | <if test="dataTypeExplain != null">#{dataTypeExplain},</if> |
| | | <if test="dataInfo != null">#{dataInfo},</if> |
| | | <if test="factory != null">#{factory},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isDeal != null">#{isDeal}</if> |
| | | </trim> |
| | | </insert> |
| | | <insert id="insertThirdDataCfxzsq" parameterType="com.smartor.domain.ServiceThirdData"> |
| | | insert into service_third_data_cfxzsq |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">data_type,</if> |
| | | <if test="dataTypeExplain != null">data_type_explain,</if> |
| | | <if test="dataInfo != null">data_info,</if> |
| | | <if test="factory != null">factory,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isDeal != null">is_deal,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">#{dataType},</if> |
| | | <if test="dataTypeExplain != null">#{dataTypeExplain},</if> |
| | | <if test="dataInfo != null">#{dataInfo},</if> |
| | | <if test="factory != null">#{factory},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isDeal != null">#{isDeal}</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | |
| | | <update id="updateIsDeal" parameterType="com.smartor.domain.ServiceThirdData"> |
| | | update service_third_data |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | is_deal=1, |
| | | <if test="userInfoId != null"> |
| | | user_info_id=#{userInfoId} |
| | | </if> |
| | | <if test="remark != null and remark != ''">remark = #{remark}</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | </mapper> |