| 
					
				 | 
			
			
				@@ -45,9 +45,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select A.depart_name,count(b.username) errornum from sys_depart A left join ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select b.username,b.depart_names from view_clock_in_1 b 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where DATE_FORMAT(b.view_date,'%Y-%m') = #{viewDate} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and (b.lateTime_s < 0 or b.lateTime_x > 0 || b.shift_real_time_s is null || b.shift_real_time_s = '' || (b.ifwork !=0 and attendance_Count < 2) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            || (b.name is not null and (b.goto_time is null || b.goto_time = '' ||  b.goto_time = null)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                b.lateTime_s < 0 or b.lateTime_x > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                || (b.ifwork !=0 and attendance_Count < 2 and b.name is not null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                || (b.name is not null and b.name != '' and (b.goto_time is null || b.goto_time = '' ||  b.goto_time = null)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                || b.duration is not null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and (b.set_info is null or b.set_info = '') 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -64,14 +66,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectUserError" resultType="Map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select a.username,a.realname,a.depart_ids departids,a.category,b.errornum from sys_user A left join ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        select b.username,count(1) as errornum from view_clock_in_1 b 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select b.user_id,count(1) as errornum from view_clock_in_1 b 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where DATE_FORMAT(b.view_date,'%Y-%m') = #{viewDate} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and (b.lateTime_s < 0 or b.lateTime_x > 0 || b.shift_real_time_s is null || b.shift_real_time_s = '' || (b.ifwork !=0 and attendance_Count < 2)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            b.lateTime_s < 0 or b.lateTime_x > 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            || (b.ifwork !=0 and attendance_Count < 2 and b.name is not null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             || (b.name is not null and b.name != '' and (b.goto_time is null || b.goto_time = '' ||  b.goto_time = null)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            || b.duration is not null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and (b.set_info is null or b.set_info = '') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         group by b.username 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ) B 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        on a.username = b.username 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        on a.id = b.user_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 |