|
@@ -565,7 +565,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
vipGroupApplyBaseInfoDto.setStatus(VipGroupStatusEnum.APPLYING);
|
|
vipGroupApplyBaseInfoDto.setStatus(VipGroupStatusEnum.APPLYING);
|
|
|
|
|
|
vipGroupApplyBaseInfoDto.setTotalPrice(costInfo.getOrDefault("totalPrice", ZERO));
|
|
vipGroupApplyBaseInfoDto.setTotalPrice(costInfo.getOrDefault("totalPrice", ZERO));
|
|
- vipGroupApplyBaseInfoDto.setTotalPrice(costInfo.getOrDefault("originalTotalPrice", ZERO));
|
|
|
|
|
|
+ vipGroupApplyBaseInfoDto.setOriginalTotalPrice(costInfo.getOrDefault("originalTotalPrice", ZERO));
|
|
if (CollectionUtils.isEmpty(vscps)) {
|
|
if (CollectionUtils.isEmpty(vscps)) {
|
|
vscps = new ArrayList<>();
|
|
vscps = new ArrayList<>();
|
|
for (Integer canBuyStudentId : canBuyStudentIds) {
|
|
for (Integer canBuyStudentId : canBuyStudentIds) {
|
|
@@ -3835,7 +3835,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
|
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupStudentNum(classGroup.getId());
|
|
Integer studentNum = classGroupStudentMapperDao.countClassGroupStudentNum(classGroup.getId());
|
|
if (studentNum > 0) {
|
|
if (studentNum > 0) {
|
|
- throw new BizException("无法停止课程,需要全部学员退学后,才能停止,请先操作学员退学。");
|
|
|
|
|
|
+ throw new BizException("无法关闭课程,需要全部学员退学后,才能关闭,请先操作学员退学。");
|
|
}
|
|
}
|
|
|
|
|
|
List<Map<Integer, BigDecimal>> maps = vipGroupDao.countSurplusCourseFee(vipGroupId);
|
|
List<Map<Integer, BigDecimal>> maps = vipGroupDao.countSurplusCourseFee(vipGroupId);
|
|
@@ -3866,7 +3866,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderDao.findByStudentVipGroup(vipGroupId, userId,
|
|
StudentPaymentOrder studentPaymentOrder = studentPaymentOrderDao.findByStudentVipGroup(vipGroupId, userId,
|
|
DealStatusEnum.SUCCESS.getCode(),orderType);
|
|
DealStatusEnum.SUCCESS.getCode(),orderType);
|
|
if (null == studentPaymentOrder) {
|
|
if (null == studentPaymentOrder) {
|
|
- throw new BizException("无法停止课程,需要全部学员退学后,才能停止,请先操作学员退学。");
|
|
|
|
|
|
+ throw new BizException("无法关闭课程,需要全部学员退学后,才能关闭,请先操作学员退学。");
|
|
}
|
|
}
|
|
// sysUserCashAccountService.updateBalance(userId.intValue(),studentSurplusClassFees.get(userId));
|
|
// sysUserCashAccountService.updateBalance(userId.intValue(),studentSurplusClassFees.get(userId));
|
|
// SysUserCashAccount sysUserCashAccount = sysUserCashAccountService.get(userId.intValue());
|
|
// SysUserCashAccount sysUserCashAccount = sysUserCashAccountService.get(userId.intValue());
|