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