|
|
@ -160,15 +160,15 @@ |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
hod.`IS_DELETED` =0 |
|
|
|
hod.`IS_DELETED` =0 |
|
|
|
and hop.`FAULT_NAME` is not null |
|
|
|
and hop.`FAULT_NAME` is not null |
|
|
|
<if test="startDate != null"> |
|
|
|
<if test="params.startDate != null"> |
|
|
|
and DATE_FORMAT(hod.`create_time`,'%Y-%m-%d') >= #{startDate} |
|
|
|
and DATE_FORMAT(hod.`create_time`,'%Y-%m-%d') >= #{params.startDate} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="endDate != null"> |
|
|
|
<if test="params.endDate != null"> |
|
|
|
and DATE_FORMAT(hod.`create_time`,'%Y-%m-%d') <= #{endDate} |
|
|
|
and DATE_FORMAT(hod.`create_time`,'%Y-%m-%d') <= #{params.endDate} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="deptId != null"> |
|
|
|
<if test="params.deptId != null"> |
|
|
|
and hod.`CREATE_DEPT` in |
|
|
|
and hod.`CREATE_DEPT` in |
|
|
|
<foreach collection="deptId" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
<foreach collection="params.deptId" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -183,15 +183,15 @@ |
|
|
|
<where> |
|
|
|
<where> |
|
|
|
hod.`IS_DELETED` =0 |
|
|
|
hod.`IS_DELETED` =0 |
|
|
|
and hop.`FAULT_NAME` is not null |
|
|
|
and hop.`FAULT_NAME` is not null |
|
|
|
<if test="startDate != null"> |
|
|
|
<if test="params.startDate != null"> |
|
|
|
and DATE_FORMAT(hod.`act_end_time`,'%Y-%m-%d') >= #{startDate} |
|
|
|
and DATE_FORMAT(hod.`act_end_time`,'%Y-%m-%d') >= #{params.startDate} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="endDate != null"> |
|
|
|
<if test="params.endDate != null"> |
|
|
|
and DATE_FORMAT(hod.`act_end_time`,'%Y-%m-%d') <= #{endDate} |
|
|
|
and DATE_FORMAT(hod.`act_end_time`,'%Y-%m-%d') <= #{params.endDate} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="deptId != null"> |
|
|
|
<if test="params.deptId != null"> |
|
|
|
and hod.`CREATE_DEPT` in |
|
|
|
and hod.`CREATE_DEPT` in |
|
|
|
<foreach collection="deptId" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
<foreach collection="params.deptId" index="index" item="item" open="(" separator="," close=")"> |
|
|
|
#{item} |
|
|
|
#{item} |
|
|
|
</foreach> |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -231,22 +231,22 @@ |
|
|
|
<update id="updateDefectInfo"> |
|
|
|
<update id="updateDefectInfo"> |
|
|
|
update hzims_oper_defect |
|
|
|
update hzims_oper_defect |
|
|
|
<set> |
|
|
|
<set> |
|
|
|
<if test="actHours != null and actHours != '' "> |
|
|
|
<if test="params.actHours != null and params.actHours != '' "> |
|
|
|
ACT_HOURS = #{actHours,jdbcType=VARCHAR}, |
|
|
|
ACT_HOURS = #{params.actHours,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="actStartTime != null"> |
|
|
|
<if test="params.actStartTime != null"> |
|
|
|
ACT_START_TIME = #{actStartTime,jdbcType=DATE}, |
|
|
|
ACT_START_TIME = #{params.actStartTime,jdbcType=DATE}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="actEndTime != null"> |
|
|
|
<if test="params.actEndTime != null"> |
|
|
|
ACT_END_TIME = #{actEndTime,jdbcType=DATE}, |
|
|
|
ACT_END_TIME = #{params.actEndTime,jdbcType=DATE}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="disposeDesc != null and disposeDesc != '' "> |
|
|
|
<if test="params.disposeDesc != null and params.disposeDesc != '' "> |
|
|
|
DISPOSE_DESC = #{disposeDesc,jdbcType=VARCHAR}, |
|
|
|
DISPOSE_DESC = #{params.disposeDesc,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="handleStatus != null and handleStatus != '' "> |
|
|
|
<if test="params.handleStatus != null and params.handleStatus != '' "> |
|
|
|
HANDLE_STATUS = #{handleStatus,jdbcType=VARCHAR}, |
|
|
|
HANDLE_STATUS = #{params.handleStatus,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
</set> |
|
|
|
where DEFECT_CODE = #{defectCode,jdbcType=VARCHAR} |
|
|
|
where DEFECT_CODE = #{params.defectCode,jdbcType=VARCHAR} |
|
|
|
</update> |
|
|
|
</update> |
|
|
|
</mapper> |
|
|
|
</mapper> |
|
|
|