|  | @@ -418,66 +418,93 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  | -	public Boolean hasIndexErrData(String organIdsStr) {
 | 
	
		
			
				|  |  | +	public Map<String,Boolean> hasIndexErrData(String organIdsStr) {
 | 
	
		
			
				|  |  | +		Map<String,Boolean> resultMap = new HashMap<>();
 | 
	
		
			
				|  |  |  		Set<Integer> organIds = null;
 | 
	
		
			
				|  |  |  		if(StringUtils.isNotBlank(organIdsStr)){
 | 
	
		
			
				|  |  |  			organIds = Arrays.stream(organIdsStr.split(",")).map(Integer::new).collect(Collectors.toSet());
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		Date date = new Date();
 | 
	
		
			
				|  |  | +		boolean flag = false;
 | 
	
		
			
				|  |  |  		int countLessThenThreeClassGroupNum = indexBaseMonthDataDao.countLessThenThreeClassGroupNum(organIds);
 | 
	
		
			
				|  |  |  		if(countLessThenThreeClassGroupNum > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +			flag = true;
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> errInspection = indexBaseMonthDataDao.queryErrInspection(organIds);
 | 
	
		
			
				|  |  | -		if(errInspection.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> errInspection = indexBaseMonthDataDao.queryErrInspection(organIds);
 | 
	
		
			
				|  |  | +			if(errInspection.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  		Date firstDayOfMonth = DateUtil.getFirstDayOfMonth(DateUtil.addMonths(date, -1));
 | 
	
		
			
				|  |  | -		int countNoPaymentStudentNum = indexBaseMonthDataDao.countNoPaymentStudentNum(organIds);
 | 
	
		
			
				|  |  | -		if(countNoPaymentStudentNum > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			int countNoPaymentStudentNum = indexBaseMonthDataDao.countNoPaymentStudentNum(organIds);
 | 
	
		
			
				|  |  | +			if(countNoPaymentStudentNum > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> quitGroupNum = indexBaseMonthDataDao.queryApplyForQuitGroupNum(organIds);
 | 
	
		
			
				|  |  | -		if(quitGroupNum.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> quitGroupNum = indexBaseMonthDataDao.queryApplyForQuitGroupNum(organIds);
 | 
	
		
			
				|  |  | +			if(quitGroupNum.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> attendanceInfo = indexBaseMonthDataDao.queryStudentAttendanceInfo(organIds, StudentAttendanceStatusEnum.TRUANT.getCode(),firstDayOfMonth);
 | 
	
		
			
				|  |  | -		if(attendanceInfo.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> attendanceInfo = indexBaseMonthDataDao.queryStudentAttendanceInfo(organIds, StudentAttendanceStatusEnum.TRUANT.getCode(),firstDayOfMonth);
 | 
	
		
			
				|  |  | +			if(attendanceInfo.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> attendanceInfo1 = indexBaseMonthDataDao.queryStudentAttendanceInfo(organIds, StudentAttendanceStatusEnum.LEAVE.getCode(),null);
 | 
	
		
			
				|  |  | -		if(attendanceInfo1.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> attendanceInfo1 = indexBaseMonthDataDao.queryStudentAttendanceInfo(organIds, StudentAttendanceStatusEnum.LEAVE.getCode(),null);
 | 
	
		
			
				|  |  | +			if(attendanceInfo1.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> attendanceError = indexBaseMonthDataDao.getAttendanceError(organIdsStr,firstDayOfMonth);
 | 
	
		
			
				|  |  | -		if(attendanceError.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> attendanceError = indexBaseMonthDataDao.getAttendanceError(organIdsStr,firstDayOfMonth);
 | 
	
		
			
				|  |  | +			if(attendanceError.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> noAttendance = indexBaseMonthDataDao.getNoAttendance(organIdsStr,firstDayOfMonth);
 | 
	
		
			
				|  |  | -		if(noAttendance.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> noAttendance = indexBaseMonthDataDao.getNoAttendance(organIdsStr,firstDayOfMonth);
 | 
	
		
			
				|  |  | +			if(noAttendance.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> teacherLeave = indexBaseMonthDataDao.queryTeacherLeave(organIdsStr);
 | 
	
		
			
				|  |  | -		if(teacherLeave.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> teacherLeave = indexBaseMonthDataDao.queryTeacherLeave(organIdsStr);
 | 
	
		
			
				|  |  | +			if(teacherLeave.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		String monthStr = DateUtil.format(date, DateUtil.ISO_YEAR_MONTH_FORMAT);
 | 
	
		
			
				|  |  | -		List<Long> lowTeacherSalary = indexBaseMonthDataDao.queryLowTeacherSalary(organIdsStr,monthStr);
 | 
	
		
			
				|  |  | -		if(lowTeacherSalary.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			String monthStr = DateUtil.format(date, DateUtil.ISO_YEAR_MONTH_FORMAT);
 | 
	
		
			
				|  |  | +			List<Long> lowTeacherSalary = indexBaseMonthDataDao.queryLowTeacherSalary(organIdsStr,monthStr);
 | 
	
		
			
				|  |  | +			if(lowTeacherSalary.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
 | 
	
		
			
				|  |  | -		if(inspectionItem.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
 | 
	
		
			
				|  |  | +			if(inspectionItem.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
 | 
	
		
			
				|  |  | -		if(inspectionItemPlan.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
 | 
	
		
			
				|  |  | +			if(inspectionItemPlan.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		List<Long> studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
 | 
	
		
			
				|  |  | -		if(studentVisit.size() > 0){
 | 
	
		
			
				|  |  | -			return true;
 | 
	
		
			
				|  |  | +		if(!flag){
 | 
	
		
			
				|  |  | +			List<Long> studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
 | 
	
		
			
				|  |  | +			if(studentVisit.size() > 0){
 | 
	
		
			
				|  |  | +				flag = true;
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		resultMap.put("indexErrData",flag);
 | 
	
		
			
				|  |  |  		SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  |  		if (sysUser == null) {
 | 
	
		
			
				|  |  |  			throw new BizException("用户信息获取失败");
 | 
	
	
		
			
				|  | @@ -492,9 +519,11 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
 | 
	
		
			
				|  |  |  		if(musicGroupIds.size() > 0){
 | 
	
		
			
				|  |  |  			List<Long> calenderIds = musicGroupPaymentCalenderDao.queryEndIds(configValue1, format,musicGroupIds);
 | 
	
		
			
				|  |  |  			if(calenderIds.size() > 0){
 | 
	
		
			
				|  |  | -				return true;
 | 
	
		
			
				|  |  | +				resultMap.put("indexErrData",true);
 | 
	
		
			
				|  |  | +			}else {
 | 
	
		
			
				|  |  | +				resultMap.put("remindMatterData",false);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | -		return false;
 | 
	
		
			
				|  |  | +		return resultMap;
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  }
 |