|
@@ -13,7 +13,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
- <result property="deptId" column="dept_id" />
|
|
|
|
|
<result property="applyStatus" column="apply_status" />
|
|
<result property="applyStatus" column="apply_status" />
|
|
|
<result property="applyStatusString" column="apply_status_string" />
|
|
<result property="applyStatusString" column="apply_status_string" />
|
|
|
<result property="apNo" column="ap_no" />
|
|
<result property="apNo" column="ap_no" />
|
|
@@ -63,13 +62,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<sql id="selectTEoegSaiApplyVo">
|
|
<sql id="selectTEoegSaiApplyVo">
|
|
|
- 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.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.reaction, d.ve_result,
|
|
d.handler, d.estimate_finish_date, d.actual_finish_date, d.reaction, d.ve_result,
|
|
|
d.sai_level, d.category, d.remarks_assess, d.remarks_execute, d.work_area, d.sai_type, d.tpm_status, d.unsafe_choice
|
|
d.sai_level, d.category, d.remarks_assess, d.remarks_execute, d.work_area, d.sai_type, d.tpm_status, d.unsafe_choice
|
|
|
from t_eoeg_sai_apply d
|
|
from t_eoeg_sai_apply d
|
|
|
- left join sys_dept s on s.dept_id = d.dept_id
|
|
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectTSaiApplyList"
|
|
<select id="selectTSaiApplyList"
|
|
@@ -94,7 +92,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="estimateFinishDateStart != null ">and estimate_finish_date <![CDATA[>=]]> #{estimateFinishDateStart}</if>
|
|
<if test="estimateFinishDateStart != null ">and estimate_finish_date <![CDATA[>=]]> #{estimateFinishDateStart}</if>
|
|
|
<if test="estimateFinishDateEnd != null">and estimate_finish_date <![CDATA[<=]]>#{estimateFinishDateEnd}</if>
|
|
<if test="estimateFinishDateEnd != null">and estimate_finish_date <![CDATA[<=]]>#{estimateFinishDateEnd}</if>
|
|
|
<if test="saiApplyId != null "> and sai_apply_id = #{saiApplyId}</if>
|
|
<if test="saiApplyId != null "> and sai_apply_id = #{saiApplyId}</if>
|
|
|
- <if test="deptId != null "> and dept_id = #{deptId}</if>
|
|
|
|
|
<if test="applyStatus != null and applyStatus != ''"> and apply_status = #{applyStatus}</if>
|
|
<if test="applyStatus != null and applyStatus != ''"> and apply_status = #{applyStatus}</if>
|
|
|
<if test="applyStatusString != null and applyStatusString != ''">
|
|
<if test="applyStatusString != null and applyStatusString != ''">
|
|
|
and
|
|
and
|
|
@@ -162,7 +159,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
- <if test="deptId != null">dept_id,</if>
|
|
|
|
|
<if test="applyStatus != null">apply_status,</if>
|
|
<if test="applyStatus != null">apply_status,</if>
|
|
|
<if test="apNo != null">ap_no,</if>
|
|
<if test="apNo != null">ap_no,</if>
|
|
|
<if test="processId != null">process_id,</if>
|
|
<if test="processId != null">process_id,</if>
|
|
@@ -201,7 +197,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
- <if test="deptId != null">#{deptId},</if>
|
|
|
|
|
<if test="applyStatus != null">#{applyStatus},</if>
|
|
<if test="applyStatus != null">#{applyStatus},</if>
|
|
|
<if test="apNo != null">#{apNo},</if>
|
|
<if test="apNo != null">#{apNo},</if>
|
|
|
<if test="processId != null">#{processId},</if>
|
|
<if test="processId != null">#{processId},</if>
|
|
@@ -243,7 +238,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
- <if test="deptId != null">dept_id = #{deptId},</if>
|
|
|
|
|
<if test="applyStatus != null">apply_status = #{applyStatus},</if>
|
|
<if test="applyStatus != null">apply_status = #{applyStatus},</if>
|
|
|
<if test="apNo != null">ap_no = #{apNo},</if>
|
|
<if test="apNo != null">ap_no = #{apNo},</if>
|
|
|
<if test="processId != null">process_id = #{processId},</if>
|
|
<if test="processId != null">process_id = #{processId},</if>
|