|
@@ -2056,6 +2056,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ Date now = new Date();
|
|
|
+
|
|
|
classGroup.setTotalClassTimes(totalClassTimes);
|
|
|
classGroup.setCurrentClassTimes(currentClassTimes);
|
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupStudentNum(classGroupId);
|
|
@@ -2067,7 +2069,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
vipGroup.setStatus(VipGroupStatusEnum.PROGRESS);
|
|
|
}
|
|
|
if(currentClassTimes>=totalClassTimes
|
|
|
- &&vipGroup.getStatus().equals(VipGroupStatusEnum.PROGRESS)){
|
|
|
+ &&vipGroup.getStatus().equals(VipGroupStatusEnum.PROGRESS)
|
|
|
+ &&vipGroup.getCoursesExpireDate().after(now)){
|
|
|
vipGroup.setStatus(VipGroupStatusEnum.FINISHED);
|
|
|
}
|
|
|
vipGroupDao.update(vipGroup);
|