|
@@ -27,10 +27,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="confirm2" column="confirm2" />
|
|
|
<result property="confirm1Name" column="confirm1_name" />
|
|
|
<result property="confirm2Name" column="confirm2_name" />
|
|
|
+ <result property="serialNumber" column="serial_number" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTPssrFranklinismVo">
|
|
|
- select d.id, u1.nick_name confirm1_name, u2.nick_name confirm2_name, d.confirm1, d.confirm2, d.sub_id, d.approve_id, d.check_content, d.check_result, d.check_des, d.change_result, d.confirm, d.confirmation_date, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.approve_status ,s.dept_name from t_pssr_franklinism d
|
|
|
+ select d.id, d.serial_number, u1.nick_name confirm1_name, u2.nick_name confirm2_name, d.confirm1, d.confirm2, d.sub_id, d.approve_id, d.check_content, d.check_result, d.check_des, d.change_result, d.confirm, d.confirmation_date, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.approve_status ,s.dept_name from t_pssr_franklinism d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join sys_user u1 on u1.user_id = d.CONFIRM1
|
|
|
left join sys_user u2 on u2.user_id = d.CONFIRM2
|
|
@@ -56,10 +57,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="approveStatus != null "> and approve_status = #{approveStatus}</if>
|
|
|
<if test="confirm1 != null and confirm1 != ''"> and confirm1 = #{confirm1}</if>
|
|
|
<if test="confirm2 != null and confirm2 != ''"> and confirm2 = #{confirm2}</if>
|
|
|
+ <if test="serialNumber != null and serialNumber != ''"> and serial_number = #{serialNumber}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
+ order by d.serial_number asc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTPssrFranklinismById" parameterType="Long" resultMap="TPssrFranklinismResult">
|
|
@@ -92,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="approveStatus != null">approve_status,</if>
|
|
|
<if test="confirm1 != null">confirm1,</if>
|
|
|
<if test="confirm2 != null">confirm2,</if>
|
|
|
+ <if test="serialNumber != null">serial_number,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -113,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="approveStatus != null">#{approveStatus},</if>
|
|
|
<if test="confirm1 != null">#{confirm1},</if>
|
|
|
<if test="confirm2 != null">#{confirm2},</if>
|
|
|
+ <if test="serialNumber != null">#{serialNumber},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -137,6 +142,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="approveStatus != null">approve_status = #{approveStatus},</if>
|
|
|
<if test="confirm1 != null">confirm1 = #{confirm1},</if>
|
|
|
<if test="confirm2 != null">confirm2 = #{confirm2},</if>
|
|
|
+ <if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -152,6 +158,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updaterCode != null">updater_code = #{updaterCode},</if>
|
|
|
<if test="updatedate != null">updatedate = #{updatedate},</if>
|
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
|
+ <if test="serialNumber != null">serial_number = #{serialNumber},</if>
|
|
|
</trim>
|
|
|
where id in
|
|
|
<foreach item="id" collection="ids" open="(" separator="," close=")">
|