|
@@ -42,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="category" column="category" />
|
|
|
<result property="remarksAssess" column="remarks_assess" />
|
|
|
<result property="remarksExecute" column="remarks_execute" />
|
|
|
+ <result property="workArea" column="work_area" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSaiApplyVo">
|
|
@@ -49,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
d.applicant, d.assessor, d.executor, d.inspectors, d.applicant_dept, d.applicant_team, d.description,
|
|
|
d.unsafe_status, d.unsafe_action, d.apply_date, d.task_id, d.task_name,d.remarks, d.ve_item_other,
|
|
|
d.handler, d.estimate_finish_date, d.actual_finish_date, d.is_recorded, d.record_no, d.reaction, d.need_ve, d.ve_items, d.ve_result,
|
|
|
- d.sai_level, d.category, d.remarks_assess, d.remarks_execute
|
|
|
+ d.sai_level, d.category, d.remarks_assess, d.remarks_execute, d.work_area
|
|
|
from t_sai_apply d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
@@ -109,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="category != null and category != ''"> and category = #{category}</if>
|
|
|
<if test="remarksAssess != null and remarksAssess != ''"> and remarks_assess = #{remarksAssess}</if>
|
|
|
<if test="remarksExecute != null and remarksExecute != ''"> and remarks_execute = #{remarksExecute}</if>
|
|
|
+ <if test="workArea != null and workArea != ''"> and work_area = #{workArea}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
order by APPLY_DATE desc
|
|
@@ -162,6 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="category != null">category,</if>
|
|
|
<if test="remarksAssess != null">remarks_assess,</if>
|
|
|
<if test="remarksExecute != null">remarks_execute,</if>
|
|
|
+ <if test="workArea != null">work_area,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="saiApplyId != null">#{saiApplyId},</if>
|
|
@@ -201,6 +204,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="category != null">#{category},</if>
|
|
|
<if test="remarksAssess != null">#{remarksAssess},</if>
|
|
|
<if test="remarksExecute != null">#{remarksExecute},</if>
|
|
|
+ <if test="workArea != null">#{workArea},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -250,6 +254,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="category != null">category = #{category},</if>
|
|
|
<if test="remarksAssess != null">remarks_assess = #{remarksAssess},</if>
|
|
|
<if test="remarksExecute != null">remarks_execute = #{remarksExecute},</if>
|
|
|
+ <if test="workArea != null">work_area = #{workArea},</if>
|
|
|
</trim>
|
|
|
where sai_apply_id = #{saiApplyId}
|
|
|
</update>
|