|  | @@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.IndexBaseMonthData;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.IndexBaseMonthDataService;
 | 
	
		
			
				|  |  | +import org.springframework.http.HttpStatus;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  import org.springframework.util.CollectionUtils;
 | 
	
	
		
			
				|  | @@ -45,6 +46,8 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
	
		
			
				|  |  |  	private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
 | 
	
		
			
				|  |  |  	@Autowired
 | 
	
		
			
				|  |  |  	private SysUserFeignService sysUserFeignService;
 | 
	
		
			
				|  |  | +	@Autowired
 | 
	
		
			
				|  |  | +	private SysMessageDao sysMessageDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	private static ThreadLocal<Set<Integer>> organIds = new ThreadLocal<Set<Integer>>(){
 | 
	
		
			
				|  |  |  		@Override
 | 
	
	
		
			
				|  | @@ -310,6 +313,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
	
		
			
				|  |  |  		if(StringUtils.isNotBlank(organIdsStr)){
 | 
	
		
			
				|  |  |  			organIds = Arrays.stream(organIdsStr.split(",")).map(Integer::new).collect(Collectors.toSet());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		Date date = new Date();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		List<IndexErrInfoDto> all = new ArrayList<>();
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -343,11 +347,33 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
	
		
			
				|  |  |  		three.setDesc(IndexErrorType.TEACHER_INFO.getMsg());
 | 
	
		
			
				|  |  |  		List<IndexErrInfoDto> threeChild = new ArrayList<>();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +		List<Long> attendanceError = indexBaseMonthDataDao.getAttendanceError(organIdsStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXCEPTION_ATTENDANCE, IndexErrorType.TEACHER_EXCEPTION_ATTENDANCE.getMsg(), attendanceError.size(), attendanceError));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Long> noAttendance = indexBaseMonthDataDao.getNoAttendance(organIdsStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_NOT_A_CLASS, IndexErrorType.TEACHER_NOT_A_CLASS.getMsg(), noAttendance.size(), noAttendance));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Long> teacherLeave = indexBaseMonthDataDao.queryTeacherLeave(organIdsStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_LEAVE, IndexErrorType.TEACHER_LEAVE.getMsg(),teacherLeave.size(), teacherLeave));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		String monthStr = DateUtil.format(date, DateUtil.ISO_YEAR_MONTH_FORMAT);
 | 
	
		
			
				|  |  | +		List<Long> lowTeacherSalary = indexBaseMonthDataDao.queryLowTeacherSalary(organIdsStr,monthStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW, IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW.getMsg(),lowTeacherSalary.size(), null));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Long> inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.INSPECTION_ITEM, IndexErrorType.INSPECTION_ITEM.getMsg(),inspectionItem.size(), inspectionItem));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Long> inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.INSPECTION_ITEM_PLAN, IndexErrorType.INSPECTION_ITEM_PLAN.getMsg(),inspectionItemPlan.size(), inspectionItemPlan));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		List<Long> studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
 | 
	
		
			
				|  |  | +		threeChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_VISIT, IndexErrorType.STUDENT_VISIT.getMsg(),studentVisit.size(), studentVisit));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  		three.setNum(threeChild.stream().mapToInt(IndexErrInfoDto::getNum).sum());
 | 
	
		
			
				|  |  |  		three.setResult(threeChild);
 | 
	
		
			
				|  |  |  		all.add(three);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		Map<String, Object> result = new HashMap<>();
 | 
	
		
			
				|  |  | +		Map<String, Object> result = new HashMap<>(2);
 | 
	
		
			
				|  |  |  		result.put("totalNum", all.stream().mapToInt(IndexErrInfoDto::getNum).sum());
 | 
	
		
			
				|  |  |  		result.put("data", all);
 | 
	
		
			
				|  |  |  		return result;
 |