|  | @@ -7,10 +7,10 @@
 | 
	
		
			
				|  |  |          select m.sy_u8, c.depart_ids departId,c.category,c.sy_fund,c.is_salary,c.is_attendance,c.id personId,c.work_no personCode,
 | 
	
		
			
				|  |  |                 c.realname personName,c.depart_ids,c.wages_one basePay,
 | 
	
		
			
				|  |  |                 c.wages_two,c.security,c.wages_base,B.duration
 | 
	
		
			
				|  |  | -             ,sj.holiday_time_sj,bj.holiday_time_bj
 | 
	
		
			
				|  |  | +             ,sj.holiday_time_sj,bj.holiday_time_bj,b.missingNum
 | 
	
		
			
				|  |  |          from sys_user C left join  (
 | 
	
		
			
				|  |  |          select a.view_date monthTime,a.years,a.months,a.realname personName,a.user_id personId,a.username personCode,
 | 
	
		
			
				|  |  | -        sum(a.lateTime_s) latetimeS,sum(a.lateTime_x) latetimeX ,sum(a.duration) duration,sum(a.sj_time) holidayTime
 | 
	
		
			
				|  |  | +        sum(a.lateTime_s) latetimeS,sum(a.lateTime_x) latetimeX ,sum(a.duration) duration,sum(a.sj_time) holidayTime,sum(a.missingNum) missingNum
 | 
	
		
			
				|  |  |          from (
 | 
	
		
			
				|  |  |          select realname,user_id,username,DATE_FORMAT(view_date,'%Y-%m') view_date,
 | 
	
		
			
				|  |  |          DATE_FORMAT(view_date,'%Y') years,
 | 
	
	
		
			
				|  | @@ -25,6 +25,8 @@
 | 
	
		
			
				|  |  |          end lateTime_x,
 | 
	
		
			
				|  |  |          case when set_info ='付薪' then duration else 0 end
 | 
	
		
			
				|  |  |          duration,
 | 
	
		
			
				|  |  | +        case when shift_name is not null and (goto_time is null or goto_time = '') then 1 else 0 end missingNum,
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          TIMESTAMPDIFF(hour,holiday_start_date,holiday_end_date)/24 sj_time,
 | 
	
		
			
				|  |  |          holiday_type,holiday_start_date,holiday_end_date from view_clock_in_1
 | 
	
		
			
				|  |  |          where DATE_FORMAT(view_date,'%Y-%m') = #{nowDate}
 |