|
@@ -81,11 +81,12 @@ public class SubjectServiceImpl extends BaseServiceImpl<Integer, Subject> implem
|
|
|
Map<Integer, Integer> payNumMap = JSONObject.parseObject(JSONObject.toJSONString(MapUtil.convertIntegerMap(studentRegistrationDao.countPayNum(musicGroupId))), HashMap.class);
|
|
|
subApplyDetail.forEach(detail -> {
|
|
|
Integer num = payNumMap.get(detail.getSubjectId());
|
|
|
- detail.setPayNum(num == null ? 0 : num);
|
|
|
if (!musicGroup.getCourseViewType().equals(CourseViewTypeEnum.CLOUD_TEACHER)) {
|
|
|
- num = applyNum.get(detail.getSubjectId());
|
|
|
- detail.setApplyStudentNum(num == null ? 0 : num);
|
|
|
+ detail.setPayNum(num == null ? 0 : num);
|
|
|
}
|
|
|
+ num = applyNum.get(detail.getSubjectId());
|
|
|
+ detail.setApplyStudentNum(num == null ? 0 : num);
|
|
|
+
|
|
|
});
|
|
|
return subApplyDetail;
|
|
|
}
|