|
@@ -1383,6 +1383,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
|
|
|
BigDecimal surplusCourseFee = courseScheduleStudentPaymentDao.countSurplusCourseFee(classGroup.getId(), studentId);
|
|
|
|
|
|
+ if(Objects.isNull(surplusCourseFee)){
|
|
|
+ surplusCourseFee=new BigDecimal(0);
|
|
|
+ }
|
|
|
+
|
|
|
Map<String, Object> pauseInfos = new HashMap<>();
|
|
|
//学生剩余课时
|
|
|
List<StudentCourseInfoDto> userSurplusCourseInfoByGroup = courseScheduleDao.findUserSurplusCourseInfoByGroup(GroupType.VIP, vipGroupId.toString(), studentId);
|
|
@@ -1417,7 +1421,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
}
|
|
|
|
|
|
int studentCourseNum = classGroupStudentMapperDao.countClassGroupNormalStudentNum(classGroup.getId());
|
|
|
- if(studentCourseNum<=0){
|
|
|
+ if(studentCourseNum<=0&&classGroup.getStudentNum().equals(classGroup.getExpectStudentNum())){
|
|
|
vipGroup.setStatus(VipGroupStatusEnum.PAUSE);
|
|
|
if(!CollectionUtils.isEmpty(courseScheduleIds)){
|
|
|
courseScheduleTeacherSalaryDao.batchDeleteByCourseScheduleIds(courseScheduleIds);
|