|
@@ -325,7 +325,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
if(CollectionUtils.isEmpty(vscps)){
|
|
if(CollectionUtils.isEmpty(vscps)){
|
|
vscps = new ArrayList<>();
|
|
vscps = new ArrayList<>();
|
|
for (Integer canBuyStudentId : canBuyStudentIds) {
|
|
for (Integer canBuyStudentId : canBuyStudentIds) {
|
|
- vscps.add(new VipGroupStudentCoursePrice(canBuyStudentId, vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getTotalPrice()));
|
|
|
|
|
|
+ vscps.add(new VipGroupStudentCoursePrice(canBuyStudentId, vipGroupApplyBaseInfoDto.getOnlineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getTotalPrice()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Teacher teacher = teacherService.get(vipGroupApplyBaseInfoDto.getUserId());
|
|
Teacher teacher = teacherService.get(vipGroupApplyBaseInfoDto.getUserId());
|
|
@@ -604,7 +604,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
if(CollectionUtils.isEmpty(vscps)){
|
|
if(CollectionUtils.isEmpty(vscps)){
|
|
vscps = new ArrayList<>();
|
|
vscps = new ArrayList<>();
|
|
for (Integer canBuyStudentId : canBuyStudentIds) {
|
|
for (Integer canBuyStudentId : canBuyStudentIds) {
|
|
- vscps.add(new VipGroupStudentCoursePrice(canBuyStudentId, vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getTotalPrice()));
|
|
|
|
|
|
+ vscps.add(new VipGroupStudentCoursePrice(canBuyStudentId, vipGroupApplyBaseInfoDto.getOnlineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice(), vipGroupApplyBaseInfoDto.getTotalPrice()));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Teacher teacher = teacherService.get(vipGroupApplyBaseInfoDto.getUserId());
|
|
Teacher teacher = teacherService.get(vipGroupApplyBaseInfoDto.getUserId());
|
|
@@ -3054,6 +3054,14 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
if(classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT)){
|
|
if(classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT)){
|
|
throw new BizException("当前学生已经是退学状态");
|
|
throw new BizException("当前学生已经是退学状态");
|
|
}
|
|
}
|
|
|
|
+ //退还活动购买
|
|
|
|
+ ActivityUserMapper activityUserMapper = activityUserMapperService.findByStudentId(vipGroup.getId(),studentId);
|
|
|
|
+ if(activityUserMapper != null){
|
|
|
|
+ HttpResponseResult result = groupClassService.quitActivityGive(activityUserMapper.getId(), returnFeeDto.getConfirmReturnActivityGive(), studentId);
|
|
|
|
+ if(result.getCode() != 200){
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
if(classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT_SCHOOL)){
|
|
if(classStudentMapperByUserIdAndClassGroupId.getStatus().equals(ClassGroupStudentStatusEnum.QUIT_SCHOOL)){
|
|
classStudentMapperByUserIdAndClassGroupId.setStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
classStudentMapperByUserIdAndClassGroupId.setStatus(ClassGroupStudentStatusEnum.QUIT);
|
|
@@ -3074,14 +3082,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
if(amount.compareTo(suplusCourseFee) > 0){
|
|
if(amount.compareTo(suplusCourseFee) > 0){
|
|
throw new BizException("学员最大可退费金额为{}元", suplusCourseFee.toString());
|
|
throw new BizException("学员最大可退费金额为{}元", suplusCourseFee.toString());
|
|
}
|
|
}
|
|
- //退还活动购买
|
|
|
|
- ActivityUserMapper activityUserMapper = activityUserMapperService.findByStudentId(vipGroup.getId(),studentId);
|
|
|
|
- if(activityUserMapper != null){
|
|
|
|
- HttpResponseResult result = groupClassService.quitActivityGive(activityUserMapper.getId(), returnFeeDto.getConfirmReturnActivityGive(), studentId);
|
|
|
|
- if(result.getCode() != 200){
|
|
|
|
- return result;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
sysUserCashAccountService.updateBalance(studentId, amount);
|
|
sysUserCashAccountService.updateBalance(studentId, amount);
|
|
SysUserCashAccount sysUserCashAccount = sysUserCashAccountService.get(studentId);
|
|
SysUserCashAccount sysUserCashAccount = sysUserCashAccountService.get(studentId);
|