|
@@ -842,13 +842,20 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
two.setDesc(IndexErrorType.STUDENT_INFO.getMsg());
|
|
|
List<IndexErrInfoDto> twoChild = new ArrayList<>();
|
|
|
tasks = new ArrayList<>();
|
|
|
+ Date now = new Date();
|
|
|
//学员请假异常提醒(只提醒本月的异常)
|
|
|
tasks.add(() -> {
|
|
|
int studentErrorLeave = 0;
|
|
|
String studentErrorLeaveNum = sysTenantConfigService.getTenantConfigValue(SysConfigService.STUDENT_ERROR_LEAVE_NUM, tenantId);
|
|
|
if (StringUtils.isNotEmpty(studentErrorLeaveNum)) {
|
|
|
- String format1 = DateUtil.format(new Date(), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
- studentErrorLeave = indexBaseMonthDataDao.countStudentErrorLeave(organIdList, format1, classGroupIdList, Integer.parseInt(studentErrorLeaveNum), tenantId);
|
|
|
+ String firstDay = DateUtil.format(DateUtil.getFirstDayOfMonth(now), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
+ String lastDay = DateUtil.format(DateUtil.getLastDayOfMonth(now), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
+ studentErrorLeave = indexBaseMonthDataDao.countStudentErrorLeave(organIdList,
|
|
|
+ firstDay,
|
|
|
+ lastDay,
|
|
|
+ classGroupIdList,
|
|
|
+ Integer.parseInt(studentErrorLeaveNum),
|
|
|
+ tenantId);
|
|
|
}
|
|
|
twoChild.add(new IndexErrInfoDto(IndexErrorType.STUDENT_ERROR_LEAVE,studentErrorLeave));
|
|
|
});
|
|
@@ -1318,8 +1325,14 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
int studentErrorLeave = 0;
|
|
|
String studentErrorLeaveNum = sysTenantConfigService.getTenantConfigValue(SysConfigService.STUDENT_ERROR_LEAVE_NUM, tenantId);
|
|
|
if(StringUtils.isNotEmpty(studentErrorLeaveNum)){
|
|
|
- String format1 = DateUtil.format(new Date(), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
- studentErrorLeave = indexBaseMonthDataDao.countStudentErrorLeave(organIds, format1, classGroupIds,Integer.parseInt(studentErrorLeaveNum), tenantId);
|
|
|
+ String firstDay = DateUtil.format(DateUtil.getFirstDayOfMonth(date), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
+ String lastDay = DateUtil.format(DateUtil.getLastDayOfMonth(date), DateUtil.ISO_YEAR_MONTH_FORMAT);
|
|
|
+ studentErrorLeave = indexBaseMonthDataDao.countStudentErrorLeave(organIds,
|
|
|
+ firstDay,
|
|
|
+ lastDay,
|
|
|
+ classGroupIds,
|
|
|
+ Integer.parseInt(studentErrorLeaveNum),
|
|
|
+ tenantId);
|
|
|
}
|
|
|
if(studentErrorLeave > 0){
|
|
|
flag2 = true;
|