zouxuan 3 lat temu
rodzic
commit
68601e78c4

+ 1 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -1314,7 +1314,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 		applyBaseInfo.setCourseStartDate(firstCourseSchedule.getStartClassTime());
 		//课程结束时间为排课的最后一节课的结束时间
 		applyBaseInfo.setCoursesExpireDate(latestCourseSchedule.getEndClassTime());
-
+		applyBaseInfo.setStudentNum(studentIdList.size());
 		applyBaseInfo.setPaymentExpireDate(DateUtil.getLastSecondWithDay(applyBaseInfo.getPaymentExpireDate()));
 
 		vipGroupDao.insert(applyBaseInfo);
@@ -1377,7 +1377,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 			applyBaseInfo.setOfflineTeacherSalary(costInfo.get("offlineTeacherSalary"));
 		}
 		applyBaseInfo.setTotalPrice(costInfo.get("totalPrice"));
-		vipGroupDao.update(applyBaseInfo);
 
 		//创建班级老师关联记录
 		ClassGroupTeacherMapper classGroupTeacherMapper=new ClassGroupTeacherMapper();