|
@@ -28,10 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="approveStatus" column="approve_status" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
<result property="completionStatus" column="completion_status" />
|
|
|
+ <result property="changeClean" column="change_clean" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTPssrOverhaulFilterVo">
|
|
|
- select d.completion_status,d.id,u.NICK_NAME confirmer_name, d.sub_id, d.approve_id, d.plant, d.unit, d.strainer_location, d.pid_no, d.iso_dwg_no, d.flange_size, d.qty_num, d.completion_date, d.resp_person, 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_overhaul_filter d
|
|
|
+ select d.completion_status,d.change_clean,d.id,u.NICK_NAME confirmer_name, d.sub_id, d.approve_id, d.plant, d.unit, d.strainer_location, d.pid_no, d.iso_dwg_no, d.flange_size, d.qty_num, d.completion_date, d.resp_person, 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_overhaul_filter d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
left join sys_user u on u.user_id = d.resp_person
|
|
|
</sql>
|
|
@@ -58,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
<if test="approveStatus != null "> and approve_status = #{approveStatus}</if>
|
|
|
<if test="completionStatus != null "> and completion_status = #{completionStatus}</if>
|
|
|
+ <if test="changeClean != null "> and change_clean = #{changeClean}</if>
|
|
|
<if test="searchValue != null "> and (pid_no like concat('%',concat(#{searchValue},'%')) or iso_dwg_no like concat('%',concat(#{searchValue},'%')))</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
@@ -102,6 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">remarks,</if>
|
|
|
<if test="approveStatus != null">approve_status,</if>
|
|
|
<if test="completionStatus != null">completion_status,</if>
|
|
|
+ <if test="changeClean != null">change_clean,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -125,6 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null">#{remarks},</if>
|
|
|
<if test="approveStatus != null">#{approveStatus},</if>
|
|
|
<if test="completionStatus != null">#{completionStatus},</if>
|
|
|
+ <if test="changeClean != null">#{changeClean},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -161,6 +165,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="remarks != null and remarks != ''">remarks = #{remarks},</if>
|
|
|
<if test="approveStatus != null">approve_status = #{approveStatus},</if>
|
|
|
<if test="completionStatus != null">completion_status = #{completionStatus},</if>
|
|
|
+ <if test="changeClean != null">change_clean = #{changeClean},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|