|  | @ -342,7 +342,7 @@ public class DailyReportUploadService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if (StringUtil.isBlank(report_date)){
 | 
	
		
			
				|  |  |             report_date = DateUtil.getStringDateShort();
 | 
	
		
			
				|  |  |             week_name = DateUtil.getWeek(report_date);
 | 
	
		
			
				|  |  |             week_name = DateUtil.getWeekStr(report_date);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         BaseDailyReportUploadDO dailyReportUploadDO = dailyReportUploadDao.findByDoctorIdAndReportDate(doctorId,report_date);
 | 
	
		
			
				|  |  |         if (null==dailyReportUploadDO){
 | 
	
	
		
			
				|  | @ -3482,16 +3482,20 @@ public class DailyReportUploadService {
 | 
	
		
			
				|  |  |             workDays = DateUtil.getWorkDays(startDate, endDate);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         String shangchuanSql = " select count(distinct up.id) from base_doctor_daily_report_upload up " +
 | 
	
		
			
				|  |  |         String shangchuanSql = " select distinct up.report_date from base_doctor_daily_report_upload up " +
 | 
	
		
			
				|  |  |                 " INNER JOIN base_doctor doc on up.doctor_id = doc.id and doc.del=1 " +
 | 
	
		
			
				|  |  |                 "Inner JOIN base_doctor_hospital dh on doc.id = dh.doctor_code and dh.del=1 " +
 | 
	
		
			
				|  |  |                 "LEFT JOIN base_daily_report_detail rd on up.id = rd.report_id " +
 | 
	
		
			
				|  |  |                 "LEFT join base_daily_report_item i on i.id = rd.report_item_id and i.del=1 where 1=1 " +
 | 
	
		
			
				|  |  |                 "and DATE_FORMAT(up.report_date,'%w') BETWEEN 1 and 5  "+sqlWhere;
 | 
	
		
			
				|  |  |         //只计算出周一到周五上传的数量去求未上传
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Long shangchuanTotal = jdbcTemplate.queryForObject(shangchuanSql,Long.class);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 " "+sqlWhere;
 | 
	
		
			
				|  |  |         //只计算出工作日上传的数量去求未上传
 | 
	
		
			
				|  |  |         List<String> upLoadTimes = jdbcTemplate.queryForList(shangchuanSql,String.class);
 | 
	
		
			
				|  |  |         Long shangchuanTotal = 0l;
 | 
	
		
			
				|  |  |         for (String tmp:upLoadTimes){
 | 
	
		
			
				|  |  |             if (!DateUtil.isHoliday(DateUtil.strToDate(tmp))){
 | 
	
		
			
				|  |  |                 shangchuanTotal++;
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         Double acWorkHours = 0d;
 | 
	
		
			
				|  |  |         Long needWorkHours = workDays*members*8;
 |