|  | @ -472,7 +472,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
			
		
	
		
		
			
				
					|  |  |         select  id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source |  |  |         select  id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source | 
			
		
	
		
		
			
				
					|  |  |         from dc_warning |  |  |         from dc_warning | 
			
		
	
		
		
			
				
					|  |  |         <where> |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |             <if test="stakeMark != null and stakeMark != ''"> and stake_mark BETWEEN #{stakeMark} and #{endStakeMark}</if> |  |  |             <if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             <if test="direction != null and direction != ''"> and direction = #{direction}</if> |  |  |             <if test="direction != null and direction != ''"> and direction = #{direction}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="deptId != null"> and dept_id = #{deptId}</if> |  |  |             <if test="deptId != null"> and dept_id = #{deptId}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningState != null"> and warning_state = #{warningState}</if> |  |  |             <if test="warningState != null"> and warning_state = #{warningState}</if> | 
			
		
	
	
		
		
			
				
					|  | @ -515,9 +515,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningLevel != null"> and warning_level = #{warningLevel}</if> |  |  |             <if test="warningLevel != null"> and warning_level = #{warningLevel}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningType != null"> and warning_type = #{warningType}</if> |  |  |             <if test="warningType != null"> and warning_type = #{warningType}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningSubclass != null and warningSubclass != ''"> and warning_subclass = #{warningSubclass}</if> |  |  |             <if test="warningSubclass != null and warningSubclass != ''"> and warning_subclass = #{warningSubclass}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningTitle != null and warningTitle != ''"> and warning_title = #{warningTitle}</if> |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             <if test="otherConfig != null and otherConfig != ''"> and other_config = #{otherConfig}</if> |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             <if test="lane != null and lane != ''"> and lane = #{lane}</if> |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             <if test="startDate != null and startDate != ''"> and date_format(audit_time, '%Y-%m-%d') >= #{startDate}</if> |  |  |             <if test="startDate != null and startDate != ''"> and date_format(audit_time, '%Y-%m-%d') >= #{startDate}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="endDate != null  and endDate != ''"> and date_format(audit_time,'%Y-%m-%d') <= #{endDate}</if> |  |  |             <if test="endDate != null  and endDate != ''"> and date_format(audit_time,'%Y-%m-%d') <= #{endDate}</if> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -527,13 +524,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
			
		
	
		
		
			
				
					|  |  |         select  id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time |  |  |         select  id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time | 
			
		
	
		
		
			
				
					|  |  |         from dc_warning |  |  |         from dc_warning | 
			
		
	
		
		
			
				
					|  |  |         <where> |  |  |         <where> | 
			
		
	
		
		
			
				
					|  |  |             (audit_flag = '1' OR audit_flag = '2') |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             <if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if> |  |  |             <if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="direction != null and direction != ''"> and direction = #{direction}</if> |  |  |             <if test="direction != null and direction != ''"> and direction = #{direction}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="deptId != null"> and dept_id = #{deptId}</if> |  |  |             <if test="deptId != null"> and dept_id = #{deptId}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningState != null"> and warning_state = #{warningState}</if> |  |  |             <if test="warningState != null"> and warning_state = #{warningState}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningTime != null"> and warning_time = #{warningTime}</if> |  |  |             <if test="warningTime != null"> and warning_time = #{warningTime}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="userId != null"> and user_id = #{userId}</if> |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningSourceArray != null and warningSourceArray.length > 0"> |  |  |             <if test="warningSourceArray != null and warningSourceArray.length > 0"> | 
			
		
	
		
		
			
				
					|  |  |                 and warning_source in |  |  |                 and warning_source in | 
			
		
	
		
		
			
				
					|  |  |                 <foreach item="item" index="index" collection="warningSourceArray" open="(" separator="," close=")"> |  |  |                 <foreach item="item" index="index" collection="warningSourceArray" open="(" separator="," close=")"> | 
			
		
	
	
		
		
			
				
					|  | @ -543,15 +538,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningLevel != null"> and warning_level = #{warningLevel}</if> |  |  |             <if test="warningLevel != null"> and warning_level = #{warningLevel}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningType != null"> and warning_type = #{warningType}</if> |  |  |             <if test="warningType != null"> and warning_type = #{warningType}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="warningSubclass != null and warningSubclass != ''"> and warning_subclass = #{warningSubclass}</if> |  |  |             <if test="warningSubclass != null and warningSubclass != ''"> and warning_subclass = #{warningSubclass}</if> | 
			
		
	
		
		
			
				
					
					|  |  |             <if test="warningTitle != null and warningTitle != ''"> and warning_title = #{warningTitle}</if> |  |  |             <if test="auditFlag != null and auditFlag != ''"> and audit_flag = #{auditFlag}</if> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             <if test="otherConfig != null and otherConfig != ''"> and other_config = #{otherConfig}</if> |  |  |             <if test="type == 1"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             <if test="lane != null and lane != ''"> and lane = #{lane}</if> |  |  |                 and    YEAR(audit_time) = #{startDate} | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="type == 2"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 and    DATE_FORMAT(audit_time, '%Y-%m') = #{startDate} | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         </where> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     </select> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |     <select id="videoReviewEventTimeList" resultMap="DcWarningResult" parameterType="com.zc.business.domain.DcWarning"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         select  id, stake_mark, warning_type, warning_subclass, audit_flag,warning_source,audit_time | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         from dc_warning | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         <where> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             (audit_flag = '1' OR audit_flag = '2') | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="startStakeMark != null and startStakeMark != ''"> and stake_mark BETWEEN #{startStakeMark} and #{endStakeMark}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="direction != null and direction != ''"> and direction = #{direction}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="deptId != null"> and dept_id = #{deptId}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="warningState != null"> and warning_state = #{warningState}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="warningTime != null"> and warning_time = #{warningTime}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="warningSourceArray != null and warningSourceArray.length > 0"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 and warning_source in | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 <foreach item="item" index="index" collection="warningSourceArray" open="(" separator="," close=")"> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                     #{item} | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 </foreach> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="warningLevel != null"> and warning_level = #{warningLevel}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="warningType != null"> and warning_type = #{warningType}</if> | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             <if test="warningSubclass != null and warningSubclass != ''"> and warning_subclass = #{warningSubclass}</if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="type == 1"> |  |  |             <if test="type == 1"> | 
			
		
	
		
		
			
				
					
					|  |  |                 YEAR(dg.statistical_date) = #{startDate} |  |  |                 and    YEAR(audit_time) = #{startDate} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             </if> |  |  |             </if> | 
			
		
	
		
		
			
				
					|  |  |             <if test="type == 2"> |  |  |             <if test="type == 2"> | 
			
		
	
		
		
			
				
					
					|  |  |                 DATE_FORMAT(dg.statistical_date, '%Y-%m') = #{startDate} |  |  |                 and    DATE_FORMAT(audit_time, '%Y-%m') = #{startDate} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |             </if> |  |  |             </if> | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         </where> |  |  |         </where> | 
			
		
	
	
		
		
			
				
					|  | 
 |