|
@@ -38,13 +38,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="veResult" column="ve_result" />
|
|
<result property="veResult" column="ve_result" />
|
|
<result property="remarks" column="remarks" />
|
|
<result property="remarks" column="remarks" />
|
|
<result property="veItemOther" column="ve_item_other" />
|
|
<result property="veItemOther" column="ve_item_other" />
|
|
|
|
+ <result property="saiLevel" column="sai_level" />
|
|
|
|
+ <result property="category" column="category" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTSaiApplyVo">
|
|
<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,
|
|
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.applicant, d.assessor, d.executor, d.inspectors, d.applicant_dept, d.applicant_team, d.description,
|
|
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.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.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
|
|
from t_sai_apply d
|
|
from t_sai_apply d
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
left join sys_dept s on s.dept_id = d.dept_id
|
|
</sql>
|
|
</sql>
|
|
@@ -80,6 +83,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="veResult != null and veResult != ''"> and ve_result = #{veResult}</if>
|
|
<if test="veResult != null and veResult != ''"> and ve_result = #{veResult}</if>
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
|
<if test="veItemOther != null and veItemOther != ''"> and ve_item_other = #{veItemOther}</if>
|
|
<if test="veItemOther != null and veItemOther != ''"> and ve_item_other = #{veItemOther}</if>
|
|
|
|
+ <if test="saiLevel != null "> and sai_level = #{saiLevel}</if>
|
|
|
|
+ <if test="category != null and category != ''"> and category = #{category}</if>
|
|
and d.del_flag = 0
|
|
and d.del_flag = 0
|
|
</where>
|
|
</where>
|
|
<!-- 数据范围过滤 -->
|
|
<!-- 数据范围过滤 -->
|
|
@@ -131,6 +136,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="veResult != null">ve_result,</if>
|
|
<if test="veResult != null">ve_result,</if>
|
|
<if test="remarks != null">remarks,</if>
|
|
<if test="remarks != null">remarks,</if>
|
|
<if test="veItemOther != null">ve_item_other,</if>
|
|
<if test="veItemOther != null">ve_item_other,</if>
|
|
|
|
+ <if test="saiLevel != null">sai_level,</if>
|
|
|
|
+ <if test="category != null">category,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="saiApplyId != null">#{saiApplyId},</if>
|
|
<if test="saiApplyId != null">#{saiApplyId},</if>
|
|
@@ -166,6 +173,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="veResult != null">#{veResult},</if>
|
|
<if test="veResult != null">#{veResult},</if>
|
|
<if test="remarks != null">#{remarks},</if>
|
|
<if test="remarks != null">#{remarks},</if>
|
|
<if test="veItemOther != null">#{veItemOther},</if>
|
|
<if test="veItemOther != null">#{veItemOther},</if>
|
|
|
|
+ <if test="saiLevel != null">#{saiLevel},</if>
|
|
|
|
+ <if test="category != null">#{category},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -211,6 +220,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
<if test="remarks != null">remarks = #{remarks},</if>
|
|
<if test="veItemOther != null">ve_item_other = #{veItemOther},</if>
|
|
<if test="veItemOther != null">ve_item_other = #{veItemOther},</if>
|
|
<if test="veItemOther == null">ve_item_other = null,</if>
|
|
<if test="veItemOther == null">ve_item_other = null,</if>
|
|
|
|
+ <if test="saiLevel != null">sai_level = #{saiLevel},</if>
|
|
|
|
+ <if test="category != null">category = #{category},</if>
|
|
</trim>
|
|
</trim>
|
|
where sai_apply_id = #{saiApplyId}
|
|
where sai_apply_id = #{saiApplyId}
|
|
</update>
|
|
</update>
|