|
@@ -3007,7 +3007,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
if (classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT)) {
|
|
|
throw new BizException("当前学生已经是退学状态");
|
|
|
}
|
|
|
- BigDecimal amount = returnFeeDto.getAmount();
|
|
|
+ /*BigDecimal amount = returnFeeDto.getAmount();
|
|
|
if (!classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT_SCHOOL)) {
|
|
|
if (Objects.isNull(amount)) {
|
|
|
throw new BizException("请确定退费金额");
|
|
@@ -3017,12 +3017,10 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
if (amount.compareTo(suplusCourseFee) > 0) {
|
|
|
throw new BizException("学员最大可退费金额为{}元", suplusCourseFee.toString());
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
GroupType groupType = GroupType.VIP;
|
|
|
- ReturnFeeEnum returnFeeEnum = ReturnFeeEnum.VIP;
|
|
|
if("LIVE".equals(vipGroup.getGroupType())){
|
|
|
groupType = GroupType.LIVE;
|
|
|
- returnFeeEnum = ReturnFeeEnum.LIVE;
|
|
|
}
|
|
|
|
|
|
if (classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT_SCHOOL)) {
|
|
@@ -3035,17 +3033,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
return BaseController.succeed();
|
|
|
}
|
|
|
|
|
|
- //记录日志
|
|
|
- SysUserCashAccountLog sysUserCashAccountLog = new SysUserCashAccountLog();
|
|
|
- sysUserCashAccountLog.setUserId(studentId);
|
|
|
- sysUserCashAccountLog.setGroupType(groupType);
|
|
|
- sysUserCashAccountLog.setOrganId(vipGroup.getOrganId());
|
|
|
- sysUserCashAccountLog.setGroupId(vipGroupId.toString());
|
|
|
- sysUserCashAccountLog.setAmount(amount);
|
|
|
- sysUserCashAccountLog.setReturnFeeType(returnFeeEnum);
|
|
|
- sysUserCashAccountLog.setComment(groupType.getDesc() + "退学");
|
|
|
- sysUserCashAccountLogDao.insert(sysUserCashAccountLog);
|
|
|
-
|
|
|
classStudentMapperByUserIdAndClassGroupId.setStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
|
classGroupStudentMapperDao.update(classStudentMapperByUserIdAndClassGroupId);
|
|
|
|