|
@@ -2,6 +2,7 @@ package com.ym.mec.student.controller;
|
|
|
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
|
+import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDetailDao;
|
|
import com.ym.mec.biz.dal.dao.MusicGroupStudentFeeDao;
|
|
import com.ym.mec.biz.dal.dao.MusicGroupStudentFeeDao;
|
|
import com.ym.mec.biz.dal.dto.RegisterPayDto;
|
|
import com.ym.mec.biz.dal.dto.RegisterPayDto;
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
@@ -50,6 +51,8 @@ public class MusicGroupController extends BaseController {
|
|
private MusicGroupStudentFeeDao musicGroupStudentFeeDao;
|
|
private MusicGroupStudentFeeDao musicGroupStudentFeeDao;
|
|
@Autowired
|
|
@Autowired
|
|
private StudentPaymentOrderDetailService studentPaymentOrderDetailService;
|
|
private StudentPaymentOrderDetailService studentPaymentOrderDetailService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private MusicGroupPaymentCalenderDetailDao musicGroupPaymentCalenderDetailDao;
|
|
|
|
|
|
@ApiOperation("获取学生所在乐团列表")
|
|
@ApiOperation("获取学生所在乐团列表")
|
|
@GetMapping(value = "/queryUserMusicGroups")
|
|
@GetMapping(value = "/queryUserMusicGroups")
|
|
@@ -153,6 +156,10 @@ public class MusicGroupController extends BaseController {
|
|
if (musicGroupStudentFee.getPaymentStatus() != PaymentStatus.NON_PAYMENT) {
|
|
if (musicGroupStudentFee.getPaymentStatus() != PaymentStatus.NON_PAYMENT) {
|
|
throw new BizException("已缴费");
|
|
throw new BizException("已缴费");
|
|
}
|
|
}
|
|
|
|
+ MusicGroupPaymentCalenderDetail userLastCalenderDetail = musicGroupPaymentCalenderDetailDao.getUserLastCalenderDetail(musicGroupId, userId);
|
|
|
|
+ if(userLastCalenderDetail == null){
|
|
|
|
+ throw new BizException("当前续费时间已截止,请联系指导老师");
|
|
|
|
+ }
|
|
|
|
|
|
BigDecimal amount = musicGroupStudentFee.getTemporaryCourseFee();
|
|
BigDecimal amount = musicGroupStudentFee.getTemporaryCourseFee();
|
|
if (amount == null || amount.doubleValue() == 0) {
|
|
if (amount == null || amount.doubleValue() == 0) {
|
|
@@ -194,7 +201,11 @@ public class MusicGroupController extends BaseController {
|
|
return failed(HttpStatus.CONTINUE, "您有待支付的订单");
|
|
return failed(HttpStatus.CONTINUE, "您有待支付的订单");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return succeed(musicGroupService.renew(musicGroupId, userId, isUseBalancePayment));
|
|
|
|
|
|
+ MusicGroupPaymentCalenderDetail userLastCalenderDetail = musicGroupPaymentCalenderDetailDao.getUserLastCalenderDetail(musicGroupId, userId);
|
|
|
|
+ if(userLastCalenderDetail == null){
|
|
|
|
+ throw new BizException("当前续费时间已截止,请联系指导老师");
|
|
|
|
+ }
|
|
|
|
+ return succeed(musicGroupService.renew(musicGroupId, userId, isUseBalancePayment));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "退团")
|
|
@ApiOperation(value = "退团")
|