|
@@ -405,14 +405,14 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
int lowTeacherSalary = indexBaseMonthDataDao.queryLowTeacherSalary(organIdsStr,monthStr);
|
|
|
threeChild.add(new IndexErrInfoDto(IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW, IndexErrorType.TEACHER_EXPECT_SALARY_BE_LOW.getMsg(),lowTeacherSalary, null));
|
|
|
|
|
|
- List<Long> inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
|
|
|
- threeChild.add(new IndexErrInfoDto(IndexErrorType.INSPECTION_ITEM, IndexErrorType.INSPECTION_ITEM.getMsg(),inspectionItem.size(), inspectionItem));
|
|
|
+ int inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
|
|
|
+ threeChild.add(new IndexErrInfoDto(IndexErrorType.INSPECTION_ITEM, IndexErrorType.INSPECTION_ITEM.getMsg(),inspectionItem, null));
|
|
|
|
|
|
- List<Long> inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
|
|
|
- threeChild.add(new IndexErrInfoDto(IndexErrorType.INSPECTION_ITEM_PLAN, IndexErrorType.INSPECTION_ITEM_PLAN.getMsg(),inspectionItemPlan.size(), inspectionItemPlan));
|
|
|
+ int inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
|
|
|
+ threeChild.add(new IndexErrInfoDto(IndexErrorType.INSPECTION_ITEM_PLAN, IndexErrorType.INSPECTION_ITEM_PLAN.getMsg(),inspectionItemPlan, null));
|
|
|
|
|
|
- List<Long> studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
|
|
|
- threeChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_VISIT, IndexErrorType.STUDENT_VISIT.getMsg(),studentVisit.size(), studentVisit));
|
|
|
+ int studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
|
|
|
+ threeChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_VISIT, IndexErrorType.STUDENT_VISIT.getMsg(),studentVisit, null));
|
|
|
|
|
|
three.setNum(threeChild.stream().mapToInt(IndexErrInfoDto::getNum).sum());
|
|
|
three.setResult(threeChild);
|
|
@@ -528,20 +528,20 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
}
|
|
|
if(!flag3){
|
|
|
- List<Long> inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
|
|
|
- if(inspectionItem.size() > 0){
|
|
|
+ int inspectionItem = indexBaseMonthDataDao.queryInspectionItem(organIdsStr);
|
|
|
+ if(inspectionItem > 0){
|
|
|
flag3 = true;
|
|
|
}
|
|
|
}
|
|
|
if(!flag3){
|
|
|
- List<Long> inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
|
|
|
- if(inspectionItemPlan.size() > 0){
|
|
|
+ int inspectionItemPlan = indexBaseMonthDataDao.queryInspectionItemPlan(organIdsStr);
|
|
|
+ if(inspectionItemPlan > 0){
|
|
|
flag3 = true;
|
|
|
}
|
|
|
}
|
|
|
if(!flag3){
|
|
|
- List<Long> studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
|
|
|
- if(studentVisit.size() > 0){
|
|
|
+ int studentVisit = indexBaseMonthDataDao.queryStudentVisit(organIdsStr);
|
|
|
+ if(studentVisit > 0){
|
|
|
flag3 = true;
|
|
|
}
|
|
|
}
|