|
@@ -55,15 +55,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isQy" column="is_qy" />
|
|
|
<result property="isRz" column="is_rz" />
|
|
|
<result property="age" column="age" />
|
|
|
+ <result property="ahdx0202" column="ahdx0202" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectYljgKhHtxxVo">
|
|
|
- select id, xm, zjhm, xb, cwh, ly, lc, fjh, hldj, fylx, cwf, cwfyj, cyf, cyfyj, hlf, hlfyj, htksrq, htjsrq, yjrzrq, sjrzsj, htqdrq, htxlh, htfj, jg_id, rzzt, kh_id, create_time_str, create_user_id, create_by, create_unit,create_tounit,create_bmjsc,create_qhjsc, create_unit_name, update_time_str, update_user_id, update_by, update_unit, update_unit_name, ly_id, lc_id, fj_id, cw_id from yljg_kh_htxx
|
|
|
+ select id, xm, zjhm, xb, cwh, ly, lc, fjh, hldj, fylx, cwf, cwfyj, cyf, cyfyj, hlf, hlfyj, htksrq, htjsrq, yjrzrq, sjrzsj, htqdrq, htxlh, htfj, jg_id, rzzt, kh_id, ahdx0202, create_time_str, create_user_id, create_by, create_unit,create_tounit,create_bmjsc,create_qhjsc, create_unit_name, update_time_str, update_user_id, update_by, update_unit, update_unit_name, ly_id, lc_id, fj_id, cw_id from yljg_kh_htxx
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectYljgKhHtxxList" parameterType="YljgKhHtxx" resultMap="YljgKhHtxxResult">
|
|
|
<include refid="selectYljgKhHtxxVo"/>
|
|
|
<where>
|
|
|
+ AND status != '99'
|
|
|
<if test="jgId != null and jgId != ''"> and jg_id = #{jgId}</if>
|
|
|
<if test="khId != null and khId != ''"> and kh_id = #{khId}</if>
|
|
|
<if test="xm != null and xm != ''"> and xm = #{xm}</if>
|
|
@@ -249,6 +251,71 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateYljgKhJbxxBySjsb" parameterType="YljgKhJbxx">
|
|
|
+ update yljg_kh_jbxx
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="ahdx0103 != null and ahdx0103 != ''">ahdx0103 = #{ahdx0103},</if>
|
|
|
+ <if test="ahdx0104 != null and ahdx0104 != ''">ahdx0104 = #{ahdx0104},</if>
|
|
|
+ <if test="ahdx0103 != null and ahdx0103 == 'empty'">ahdx0103 = '',</if>
|
|
|
+ <if test="ahdx0104 != null and ahdx0104 == 'empty'">ahdx0104 = '',</if>
|
|
|
+ <if test="isChx != null and isChx != ''">is_chx = #{isChx},</if>
|
|
|
+ <if test="ahdp2037 != null and ahdp2037 != ''">ahdp2037 = #{ahdp2037},</if>
|
|
|
+ <if test="ahdp2038 != null and ahdp2038 != ''">ahdp2038 = #{ahdp2038},</if>
|
|
|
+ <if test="ahdp2037 != null and ahdp2037 == 'empty'">ahdp2037 = '',</if>
|
|
|
+ <if test="ahdp2038 != null and ahdp2038 == 'empty'">ahdp2038 = '',</if>
|
|
|
+ <if test="ahdx0202 != null and ahdx0202 != ''">ahdx0202 = #{ahdx0202},</if>
|
|
|
+ <if test="isRz != null and isRz != ''">is_rz = #{isRz},</if>
|
|
|
+ <if test="isQy != null and isQy != ''">is_qy = #{isQy},</if>
|
|
|
+ <if test="status != null and status != ''">status = #{status},</if>
|
|
|
+ update_time_str = #{updateTimeStr},
|
|
|
+ update_user_id = #{updateUserId},
|
|
|
+ update_by = #{updateBy},
|
|
|
+ update_unit = #{updateUnit},
|
|
|
+ update_unit_name = #{updateUnitName},
|
|
|
+ </trim>
|
|
|
+ where id = #{id} AND status = '0'
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateYljgKhHtxxBySjsb" parameterType="YljgKhHtxx">
|
|
|
+ update yljg_kh_htxx
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="ahdx0202 != null and ahdx0202 != ''">ahdx0202 = #{ahdx0202},</if>
|
|
|
+ <if test="status != null and status != ''">status = #{status},</if>
|
|
|
+ update_time_str = #{updateTimeStr},
|
|
|
+ update_user_id = #{updateUserId},
|
|
|
+ update_by = #{updateBy},
|
|
|
+ update_unit = #{updateUnit},
|
|
|
+ update_unit_name = #{updateUnitName},
|
|
|
+ </trim>
|
|
|
+ where kh_id = #{khId} AND status = '0'
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateYljgKhNlpgBySjsb" parameterType="YljgKhNlpg">
|
|
|
+ update yljg_kh_nlpg
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="state != null and state != ''">state = #{state},</if>
|
|
|
+ update_time_str = #{updateTimeStr},
|
|
|
+ update_user_id = #{updateUserId},
|
|
|
+ update_by = #{updateBy},
|
|
|
+ update_unit = #{updateUnit},
|
|
|
+ update_unit_name = #{updateUnitName},
|
|
|
+ </trim>
|
|
|
+ where kh_id = #{khId} AND state = '0'
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateYljgKhJtxxBySjsb" parameterType="YljgKhJtxx">
|
|
|
+ update yljg_kh_jtxx
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="state != null and state != ''">state = #{state},</if>
|
|
|
+ update_time_str = #{updateTimeStr},
|
|
|
+ update_user_id = #{updateUserId},
|
|
|
+ update_by = #{updateBy},
|
|
|
+ update_unit = #{updateUnit},
|
|
|
+ update_unit_name = #{updateUnitName},
|
|
|
+ </trim>
|
|
|
+ where kh_id = #{khId} AND state = '0'
|
|
|
+ </update>
|
|
|
+
|
|
|
<delete id="deleteYljgKhHtxxById" parameterType="String">
|
|
|
delete from yljg_kh_htxx where id = #{id}
|
|
|
</delete>
|