|  | @@ -175,7 +175,7 @@
 | 
	
		
			
				|  |  |          or (duration is not null and (work_overtime > 0 or work_overtime is null))  <!-- 有加班信息,打卡时间早于加班申请时间-->
 | 
	
		
			
				|  |  |          or (shift_type = 1 and (latetime1_s < 0 or latetime1_x > 0 or latetime2_s < 0 or latetime2_x > 0))  <!-- 分段打卡-->
 | 
	
		
			
				|  |  |          and b.set_info > 0 ) and b.error_state is null
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +        and b.holiday_type is null -- 请假信息(有值时表示当天有请假记录)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          group by b.username,b.depart_names
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -183,10 +183,13 @@
 | 
	
		
			
				|  |  |          group by A.depart_name,A.id
 | 
	
		
			
				|  |  |          ) C on A.depart_name = C.depart_name
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <if test="deptCode != null and deptCode != ''">
 | 
	
		
			
				|  |  | -            where c.id=#{deptCode}
 | 
	
		
			
				|  |  | +        <if test="deptCode != null and deptCode != '' and deptCode.size >0">
 | 
	
		
			
				|  |  | +            and c.id in(
 | 
	
		
			
				|  |  | +            <foreach collection="deptCode" item="item" index="index" separator=",">
 | 
	
		
			
				|  |  | +                #{item}
 | 
	
		
			
				|  |  | +            </foreach>
 | 
	
		
			
				|  |  | +            )
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -213,15 +216,19 @@
 | 
	
		
			
				|  |  |                  or (shift_type = 1 and (latetime1_s < 0 or latetime1_x > 0 or latetime2_s < 0 or latetime2_x > 0))  <!-- 分段打卡-->
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  and b.set_info > 0 ) and b.error_state is null
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                and b.holiday_type is null -- 请假信息(有值时表示当天有请假记录)
 | 
	
		
			
				|  |  |                  group by b.username
 | 
	
		
			
				|  |  | -                ) B on a.id = b.user_id
 | 
	
		
			
				|  |  | +            ) B on a.id = b.user_id
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              where (a.employment_status = 10 or date_format(a.term_date,'%Y-%m') >= #{viewDate} or a.term_date is null )
 | 
	
		
			
				|  |  | -        <if test="deptCode != null and deptCode != ''">
 | 
	
		
			
				|  |  | -            and find_in_set(#{deptCode} , a.depart_ids)
 | 
	
		
			
				|  |  | -        </if>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        <if test="deptCode != null and deptCode != '' and deptCode.size >0">
 | 
	
		
			
				|  |  | +            and a.depart_ids in(
 | 
	
		
			
				|  |  | +            <foreach collection="deptCode" item="item" index="index" separator=",">
 | 
	
		
			
				|  |  | +                #{item}
 | 
	
		
			
				|  |  | +            </foreach>
 | 
	
		
			
				|  |  | +            )
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |      
 | 
	
		
			
				|  |  |      <select id="selectByOvertime" resultType="Map">
 |