소스 검색

活动排课

zouxuan 3 년 전
부모
커밋
68601e78c4
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

+ 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();