|
@@ -15,8 +15,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="applyStatus" column="apply_status" />
|
|
|
<result property="apNo" column="ap_no" />
|
|
|
<result property="processId" column="process_id" />
|
|
|
- <result property="isPassAssess" column="is_pass_assess" />
|
|
|
- <result property="isPassInspect" column="is_pass_inspect" />
|
|
|
<result property="applicant" column="applicant" />
|
|
|
<result property="assessor" column="assessor" />
|
|
|
<result property="executor" column="executor" />
|
|
@@ -29,12 +27,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="applyDate" column="apply_date" />
|
|
|
<result property="taskId" column="task_id" />
|
|
|
<result property="taskName" column="task_name" />
|
|
|
+ <result property="handler" column="handler" />
|
|
|
+ <result property="estimateFinishDate" column="estimate_finish_date" />
|
|
|
+ <result property="actualFinishDate" column="actual_finish_date" />
|
|
|
+ <result property="isRecorded" column="is_recorded" />
|
|
|
+ <result property="recordNo" column="record_no" />
|
|
|
+ <result property="reaction" column="reaction" />
|
|
|
+ <result property="needVe" column="need_ve" />
|
|
|
+ <result property="veItems" column="ve_items" />
|
|
|
+ <result property="veResult" column="ve_result" />
|
|
|
+ <result property="remarks" column="remarks" />
|
|
|
+ <result property="veItemOther" column="ve_item_other" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSaiApplyVo">
|
|
|
select d.sai_apply_id, d.del_flag, d.create_by, d.create_time, d.update_by, d.update_time, d.dept_id, d.apply_status, d.ap_no, d.process_id,
|
|
|
- d.is_pass_assess, d.is_pass_inspect, 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.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
|
|
|
from t_sai_apply d
|
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
|
</sql>
|
|
@@ -47,8 +57,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyStatus != null and applyStatus != ''"> and apply_status = #{applyStatus}</if>
|
|
|
<if test="apNo != null and apNo != ''"> and ap_no = #{apNo}</if>
|
|
|
<if test="processId != null and processId != ''"> and process_id = #{processId}</if>
|
|
|
- <if test="isPassAssess != null and isPassAssess != ''"> and is_pass_assess = #{isPassAssess}</if>
|
|
|
- <if test="isPassInspect != null and isPassInspect != ''"> and is_pass_inspect = #{isPassInspect}</if>
|
|
|
<if test="applicant != null and applicant != ''"> and applicant = #{applicant}</if>
|
|
|
<if test="assessor != null and assessor != ''"> and assessor = #{assessor}</if>
|
|
|
<if test="executor != null and executor != ''"> and executor = #{executor}</if>
|
|
@@ -61,6 +69,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyDate != null "> and apply_date = #{applyDate}</if>
|
|
|
<if test="taskId != null and taskId != ''"> and task_id = #{taskId}</if>
|
|
|
<if test="taskName != null and taskName != ''"> and task_name like concat(concat('%', #{taskName}), '%')</if>
|
|
|
+ <if test="handler != null and handler != ''"> and handler = #{handler}</if>
|
|
|
+ <if test="estimateFinishDate != null "> and estimate_finish_date = #{estimateFinishDate}</if>
|
|
|
+ <if test="actualFinishDate != null "> and actual_finish_date = #{actualFinishDate}</if>
|
|
|
+ <if test="isRecorded != null "> and is_recorded = #{isRecorded}</if>
|
|
|
+ <if test="recordNo != null and recordNo != ''"> and record_no = #{recordNo}</if>
|
|
|
+ <if test="reaction != null and reaction != ''"> and reaction = #{reaction}</if>
|
|
|
+ <if test="needVe != null "> and need_ve = #{needVe}</if>
|
|
|
+ <if test="veItems != null and veItems != ''"> and ve_items = #{veItems}</if>
|
|
|
+ <if test="veResult != null and veResult != ''"> and ve_result = #{veResult}</if>
|
|
|
+ <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
|
+ <if test="veItemOther != null and veItemOther != ''"> and ve_item_other = #{veItemOther}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
@@ -88,8 +107,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyStatus != null">apply_status,</if>
|
|
|
<if test="apNo != null">ap_no,</if>
|
|
|
<if test="processId != null">process_id,</if>
|
|
|
- <if test="isPassAssess != null">is_pass_assess,</if>
|
|
|
- <if test="isPassInspect != null">is_pass_inspect,</if>
|
|
|
<if test="applicant != null">applicant,</if>
|
|
|
<if test="assessor != null">assessor,</if>
|
|
|
<if test="executor != null">executor,</if>
|
|
@@ -102,6 +119,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyDate != null">apply_date,</if>
|
|
|
<if test="taskId != null">task_id,</if>
|
|
|
<if test="taskName != null">task_name,</if>
|
|
|
+ <if test="handler != null">handler,</if>
|
|
|
+ <if test="estimateFinishDate != null">estimate_finish_date,</if>
|
|
|
+ <if test="actualFinishDate != null">actual_finish_date,</if>
|
|
|
+ <if test="isRecorded != null">is_recorded,</if>
|
|
|
+ <if test="recordNo != null">record_no,</if>
|
|
|
+ <if test="reaction != null">reaction,</if>
|
|
|
+ <if test="needVe != null">need_ve,</if>
|
|
|
+ <if test="veItems != null">ve_items,</if>
|
|
|
+ <if test="veResult != null">ve_result,</if>
|
|
|
+ <if test="remarks != null">remarks,</if>
|
|
|
+ <if test="veItemOther != null">ve_item_other,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="saiApplyId != null">#{saiApplyId},</if>
|
|
@@ -114,8 +142,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyStatus != null">#{applyStatus},</if>
|
|
|
<if test="apNo != null">#{apNo},</if>
|
|
|
<if test="processId != null">#{processId},</if>
|
|
|
- <if test="isPassAssess != null">#{isPassAssess},</if>
|
|
|
- <if test="isPassInspect != null">#{isPassInspect},</if>
|
|
|
<if test="applicant != null">#{applicant},</if>
|
|
|
<if test="assessor != null">#{assessor},</if>
|
|
|
<if test="executor != null">#{executor},</if>
|
|
@@ -128,6 +154,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyDate != null">#{applyDate},</if>
|
|
|
<if test="taskId != null">#{taskId},</if>
|
|
|
<if test="taskName != null">#{taskName},</if>
|
|
|
+ <if test="handler != null">#{handler},</if>
|
|
|
+ <if test="estimateFinishDate != null">#{estimateFinishDate},</if>
|
|
|
+ <if test="actualFinishDate != null">#{actualFinishDate},</if>
|
|
|
+ <if test="isRecorded != null">#{isRecorded},</if>
|
|
|
+ <if test="recordNo != null">#{recordNo},</if>
|
|
|
+ <if test="reaction != null">#{reaction},</if>
|
|
|
+ <if test="needVe != null">#{needVe},</if>
|
|
|
+ <if test="veItems != null">#{veItems},</if>
|
|
|
+ <if test="veResult != null">#{veResult},</if>
|
|
|
+ <if test="remarks != null">#{remarks},</if>
|
|
|
+ <if test="veItemOther != null">#{veItemOther},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -143,8 +180,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="applyStatus != null">apply_status = #{applyStatus},</if>
|
|
|
<if test="apNo != null">ap_no = #{apNo},</if>
|
|
|
<if test="processId != null">process_id = #{processId},</if>
|
|
|
- <if test="isPassAssess != null">is_pass_assess = #{isPassAssess},</if>
|
|
|
- <if test="isPassInspect != null">is_pass_inspect = #{isPassInspect},</if>
|
|
|
<if test="applicant != null">applicant = #{applicant},</if>
|
|
|
<if test="assessor != null">assessor = #{assessor},</if>
|
|
|
<if test="executor != null">executor = #{executor},</if>
|
|
@@ -159,6 +194,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="taskId == null">task_id = null,</if>
|
|
|
<if test="taskName != null">task_name = #{taskName},</if>
|
|
|
<if test="taskName == null">task_name = null,</if>
|
|
|
+ <if test="handler != null">handler = #{handler},</if>
|
|
|
+ <if test="estimateFinishDate != null">estimate_finish_date = #{estimateFinishDate},</if>
|
|
|
+ <if test="actualFinishDate != null">actual_finish_date = #{actualFinishDate},</if>
|
|
|
+ <if test="isRecorded != null">is_recorded = #{isRecorded},</if>
|
|
|
+ <if test="recordNo != null">record_no = #{recordNo},</if>
|
|
|
+ <if test="reaction != null">reaction = #{reaction},</if>
|
|
|
+ <if test="needVe != null">need_ve = #{needVe},</if>
|
|
|
+ <if test="veItems != null">ve_items = #{veItems},</if>
|
|
|
+ <if test="veResult != null">ve_result = #{veResult},</if>
|
|
|
+ <if test="remarks != null">remarks = #{remarks},</if>
|
|
|
+ <if test="veItemOther != null">ve_item_other = #{veItemOther},</if>
|
|
|
</trim>
|
|
|
where sai_apply_id = #{saiApplyId}
|
|
|
</update>
|