|
@@ -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();
|
|
@@ -4216,10 +4215,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
BigDecimal discount = null;
|
|
|
if(Objects.nonNull(vipGroupActivity)){
|
|
|
discount = vipGroupActivity.getDiscount().divide(new BigDecimal(100), CommonConstants.DECIMAL_PLACE, BigDecimal.ROUND_DOWN);
|
|
|
- surplusCoursesPrice = surplusCoursesPrice.multiply(discount).setScale(CommonConstants.DECIMAL_FINAL_PLACE,BigDecimal.ROUND_HALF_UP);
|
|
|
+ surplusCoursesPrice = surplusCoursesPrice.multiply(discount).setScale(0,BigDecimal.ROUND_CEILING);
|
|
|
}
|
|
|
|
|
|
- sysUserCashAccountService.subtractFromCourseBalanceAndBalance(studentId,surplusCoursesPrice,PlatformCashAccountDetailTypeEnum.PAY_FEE, "后台添加学员金额扣减");
|
|
|
+ sysUserCashAccountService.subtractFromCourseBalanceAndBalance(studentId,surplusCoursesPrice.setScale(0,BigDecimal.ROUND_CEILING),PlatformCashAccountDetailTypeEnum.PAY_FEE, "后台添加学员金额扣减");
|
|
|
|
|
|
List<CourseScheduleStudentPayment> courseScheduleStudentPayments = new ArrayList<>();
|
|
|
|