|
@@ -163,15 +163,21 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
throw new BizException("[临时加课]不支持多周期缴费");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ MusicGroup musicGroup = musicGroupDao.getLocked(musicGroupId);
|
|
|
+ if (musicGroup == null) {
|
|
|
+ throw new BizException("乐团查询失败,请检查参数");
|
|
|
+ }
|
|
|
if (paymentType == PaymentType.ADD_STUDENT) {
|
|
|
//获取缴费状态在审核中或者已拒绝的缴费项目的学员
|
|
|
Integer userId = Integer.parseInt(musicGroupPaymentCalenderDto.getStudentIds());
|
|
|
- //该学员是否在其他的会员团
|
|
|
- boolean hasMemberGroup = studentRegistrationDao.checkHasMemberGroup(musicGroupId,userId);
|
|
|
- if(hasMemberGroup){
|
|
|
- throw new BizException("操作失败:该学员已在其他系统收费团");
|
|
|
+ if(musicGroup.getCourseViewType() == CourseViewTypeEnum.MEMBER_FEE){
|
|
|
+ //该学员是否在其他的会员团
|
|
|
+ boolean hasMemberGroup = studentRegistrationDao.checkHasMemberGroup(musicGroupId,userId);
|
|
|
+ if(hasMemberGroup){
|
|
|
+ throw new BizException("操作失败:该学员已在其他系统收费团");
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
String studentIds = musicGroupPaymentCalenderDao.queryCalenderStudentIds(musicGroupId,null);
|
|
|
if(StringUtils.isNotEmpty(studentIds)){
|
|
|
if(studentIds.contains(userId.toString())){
|
|
@@ -184,12 +190,6 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- MusicGroup musicGroup = musicGroupDao.getLocked(musicGroupId);
|
|
|
-
|
|
|
- if (musicGroup == null) {
|
|
|
- throw new BizException("乐团查询失败,请检查参数");
|
|
|
- }
|
|
|
-
|
|
|
if (musicGroup.getStatus() != MusicGroupStatusEnum.PROGRESS && musicGroup.getStatus() != MusicGroupStatusEnum.PRE_BUILD_FEE) {
|
|
|
throw new BizException("创建缴费失败:已存在缴费项目");
|
|
|
}
|