|
@@ -63,6 +63,8 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
private StudentDao studentDao;
|
|
|
@Autowired
|
|
|
private SysEmployeePositionService employeePositionService;
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupCalenderRefundPeriodDao musicGroupCalenderRefundPeriodDao;
|
|
|
|
|
|
private static ThreadLocal<Set<Integer>> organIds = new ThreadLocal<Set<Integer>>(){
|
|
|
@Override
|
|
@@ -732,16 +734,12 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
params.put("tenantId", tenantId);
|
|
|
twoChild.add(new IndexErrInfoDto(IndexErrorType.HAS_FREE_COURSE_TIMES, IndexErrorType.HAS_FREE_COURSE_TIMES.getMsg(), musicGroupDao.countHasFreeCourseTimes(params), null));
|
|
|
|
|
|
- //乐团学员会员到期首页提醒
|
|
|
-// List<StudentRegistration> studentRegistrations = studentRegistrationDao.queryMemberEndAutoQuitMusic(null,educationUserId,organIdsStr);
|
|
|
-// IndexErrInfoDto noClassMusicGroupStudentInfo = new IndexErrInfoDto();
|
|
|
-// Set<String> musicGroupIds = studentRegistrations.stream().map(e -> e.getMusicGroupId()).collect(Collectors.toSet());
|
|
|
-// Set<Integer> userIds = studentRegistrations.stream().map(e -> e.getUserId()).collect(Collectors.toSet());
|
|
|
-// noClassMusicGroupStudentInfo.setErrorType(IndexErrorType.NO_MEMBER_STUDENT_INFO);
|
|
|
-// noClassMusicGroupStudentInfo.setNum(musicGroupIds.size());
|
|
|
-// noClassMusicGroupStudentInfo.setNum2(userIds.size());
|
|
|
-// noClassMusicGroupStudentInfo.setDesc(IndexErrorType.NO_MEMBER_STUDENT_INFO.getMsg());
|
|
|
-// twoChild.add(noClassMusicGroupStudentInfo);
|
|
|
+ //合作单位回款异常
|
|
|
+ Map<String, Object> params1 = new HashMap<>();
|
|
|
+ params1.put("organId", organIdsStr);
|
|
|
+ params1.put("errorType", "COOPERATION_PAYMENT_ERROR");
|
|
|
+ twoChild.add(new IndexErrInfoDto(IndexErrorType.COOPERATION_PAYMENT_ERROR, IndexErrorType.COOPERATION_PAYMENT_ERROR.getMsg(), musicGroupCalenderRefundPeriodDao.countCoopRefund(params1), null));
|
|
|
+
|
|
|
two.setNum(twoChild.stream().mapToInt(IndexErrInfoDto::getNum).sum());
|
|
|
two.setResult(twoChild);
|
|
|
all.add(two);
|
|
@@ -1126,6 +1124,13 @@ public class IndexBaseMonthDataServiceImpl extends BaseServiceImpl<Long, IndexBa
|
|
|
//乐团剩余时长未排课
|
|
|
List<String> musicGroupIds = musicGroupDao.queryHasSubCourseTimes(organIds,tenantId);
|
|
|
result.add(new IndexErrInfoDto(IndexErrorType.MUSIC_GROUP_HAS_COURSE_TIMES, IndexErrorType.MUSIC_GROUP_HAS_COURSE_TIMES.getMsg(),musicGroupIds.size(), null));
|
|
|
+
|
|
|
+ //合作单位回款提醒
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("organId", organIds);
|
|
|
+ params.put("errorType", "COOPERATION_PAYMENT_ALERT");
|
|
|
+ result.add(new IndexErrInfoDto(IndexErrorType.COOPERATION_PAYMENT_ERROR, IndexErrorType.COOPERATION_PAYMENT_ERROR.getMsg(), musicGroupCalenderRefundPeriodDao.countCoopRefund(params), null));
|
|
|
+
|
|
|
return result;
|
|
|
}
|
|
|
|