|
@@ -485,6 +485,9 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
two.setErrorType(IndexErrorType.STUDENT_INFO);
|
|
|
two.setDesc(IndexErrorType.STUDENT_INFO.getMsg());
|
|
|
List<IndexErrInfoDto> twoChild = new ArrayList<>();
|
|
|
+ //学员请假异常提醒(获取前两个月的)
|
|
|
+ String format1 = DateUtil.format(DateUtil.addMonths(new Date(), -1), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
+ twoChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_ERROR_LEAVE, IndexErrorType.STUDENT_ERROR_LEAVE.getMsg(), indexBaseMonthDataDao.countStudentErrorLeave(organIds,format1,classGroupIds), null));
|
|
|
|
|
|
//未缴费学员数
|
|
|
twoChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_ARREARAGE, IndexErrorType.STUDENT_ARREARAGE.getMsg(), indexBaseMonthDataDao.countNoPaymentStudentNum(organIds,educationUserId,0), Arrays.asList(educationUserId)));
|
|
@@ -824,6 +827,7 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
List<Integer> userRole = employeeDao.queryUserRole(sysUser.getId());
|
|
|
Integer educationUserId = null;
|
|
|
if (!sysUser.getIsSuperAdmin() && userRole.size() == 1 && userRole.contains(SysUserRole.EDUCATIONAL_TEACHER)) {
|
|
|
+ //获取教务老师关联的班级列表
|
|
|
educationUserId = sysUser.getId();
|
|
|
}
|
|
|
//获取关联的乐团列表
|
|
@@ -848,10 +852,6 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
//未缴费学员数
|
|
|
result.add(new IndexErrInfoDto(IndexErrorType.STUDENT_NOT_PAYMENT, IndexErrorType.STUDENT_NOT_PAYMENT.getMsg(), indexBaseMonthDataDao.countNoPaymentStudentNum(organIdSet,educationUserId, 1), Arrays.asList(educationUserId)));
|
|
|
|
|
|
- //学员请假异常提醒(获取前两个月的)
|
|
|
- String format1 = DateUtil.format(DateUtil.addMonths(date, -1), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
- result.add(new IndexErrInfoDto(IndexErrorType.STUDENT_ERROR_LEAVE, IndexErrorType.STUDENT_ERROR_LEAVE.getMsg(), indexBaseMonthDataDao.countStudentErrorLeave(organIdSet,format1), null));
|
|
|
-
|
|
|
String monthStr = DateUtil.format(date, DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
//全职未离职老师
|
|
|
//预计课酬较低
|
|
@@ -902,6 +902,14 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
resultMap.put("musicPatrol",flag1);
|
|
|
boolean flag2 = false;
|
|
|
if(!flag2){
|
|
|
+ //学员请假异常提醒(获取前两个月的)
|
|
|
+ String format1 = DateUtil.format(DateUtil.addMonths(date, -1), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
+ int studentErrorLeaveNum = indexBaseMonthDataDao.countStudentErrorLeave(organIds,format1,classGroupIds);
|
|
|
+ if(studentErrorLeaveNum > 0){
|
|
|
+ flag2 = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!flag2){
|
|
|
List<Long> quitGroupNum = indexBaseMonthDataDao.queryApplyForQuitGroupNum(organIds,educationUserId);
|
|
|
if(quitGroupNum.size() > 0){
|
|
|
flag2 = true;
|
|
@@ -1004,14 +1012,6 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
}
|
|
|
}
|
|
|
if(!flag5){
|
|
|
- //学员请假异常提醒(获取前两个月的)
|
|
|
- String format1 = DateUtil.format(DateUtil.addMonths(date, -1), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
- int studentErrorLeaveNum = indexBaseMonthDataDao.countStudentErrorLeave(organIds,format1);
|
|
|
- if(studentErrorLeaveNum > 0){
|
|
|
- flag5 = true;
|
|
|
- }
|
|
|
- }
|
|
|
- if(!flag5){
|
|
|
int countNoPaymentStudentNum = indexBaseMonthDataDao.countNoPaymentStudentNum(organIds,educationUserId, 1);
|
|
|
if(countNoPaymentStudentNum > 0){
|
|
|
flag5 = true;
|