|
@@ -276,20 +276,26 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
-
|
|
|
- if (musicGroupPaymentCalender.getPaymentType() == MUSIC_APPLY) {
|
|
|
- int countAuditReject = musicGroupPaymentCalenderDao.countAuditReject(musicGroupPaymentCalender.getMusicGroupId(),null);
|
|
|
- if(countAuditReject == 0){
|
|
|
- if (musicGroup.getStatus() != MusicGroupStatusEnum.DRAFT) {
|
|
|
- throw new BizException("创建失败:缴费项目类型不匹配");
|
|
|
- }
|
|
|
+
|
|
|
+ if (musicGroupPaymentCalender.getPaymentType() == MUSIC_APPLY) {
|
|
|
+ int countAuditReject = musicGroupPaymentCalenderDao.countAuditReject(musicGroupPaymentCalender.getMusicGroupId(),null);
|
|
|
+ if(countAuditReject == 0){
|
|
|
+ if (musicGroup.getStatus() != MusicGroupStatusEnum.DRAFT) {
|
|
|
+ throw new BizException("创建失败:缴费项目类型不匹配");
|
|
|
+ }
|
|
|
+ if(musicGroupPaymentCalender.getStatus() != PaymentCalenderStatusEnum.AUDITING){
|
|
|
musicGroup.setStatus(MusicGroupStatusEnum.AUDIT);
|
|
|
- musicGroup.setUpdateTime(date);
|
|
|
|
|
|
- musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(草稿 -> 审核中)", sysUser.getId(), ""));
|
|
|
- musicGroupDao.update(musicGroup);
|
|
|
+ musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(草稿 -> 基础信息审核中)", sysUser.getId(), ""));
|
|
|
+ }else{
|
|
|
+ musicGroup.setStatus(MusicGroupStatusEnum.FEE_AUDIT);
|
|
|
+
|
|
|
+ musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(草稿 -> 费用审核中)", sysUser.getId(), ""));
|
|
|
}
|
|
|
+ musicGroup.setUpdateTime(date);
|
|
|
+ musicGroupDao.update(musicGroup);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -487,19 +493,26 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if (musicGroupPaymentCalender.getPaymentType() == MUSIC_APPLY) {
|
|
|
- int countAuditReject = musicGroupPaymentCalenderDao.countAuditReject(musicGroupPaymentCalender.getMusicGroupId(),musicGroupPaymentCalender.getId());
|
|
|
- if(countAuditReject == 0){
|
|
|
- if (musicGroup.getStatus() != MusicGroupStatusEnum.DRAFT) {
|
|
|
- throw new BizException("创建失败:缴费项目类型不匹配");
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (musicGroupPaymentCalender.getPaymentType() == MUSIC_APPLY) {
|
|
|
+ int countAuditReject = musicGroupPaymentCalenderDao.countAuditReject(musicGroupPaymentCalender.getMusicGroupId(),null);
|
|
|
+ if(countAuditReject == 0){
|
|
|
+ if (musicGroup.getStatus() != MusicGroupStatusEnum.DRAFT) {
|
|
|
+ throw new BizException("创建失败:缴费项目类型不匹配");
|
|
|
+ }
|
|
|
+ if(musicGroupPaymentCalender.getStatus() != PaymentCalenderStatusEnum.AUDITING){
|
|
|
musicGroup.setStatus(MusicGroupStatusEnum.AUDIT);
|
|
|
- musicGroup.setUpdateTime(date);
|
|
|
|
|
|
- musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(草稿 -> 审核中)", sysUser.getId(), ""));
|
|
|
- musicGroupDao.update(musicGroup);
|
|
|
+ musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(草稿 -> 基础信息审核中)", sysUser.getId(), ""));
|
|
|
+ }else{
|
|
|
+ musicGroup.setStatus(MusicGroupStatusEnum.FEE_AUDIT);
|
|
|
+
|
|
|
+ musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(草稿 -> 费用审核中)", sysUser.getId(), ""));
|
|
|
}
|
|
|
+ musicGroup.setUpdateTime(date);
|
|
|
+ musicGroupDao.update(musicGroup);
|
|
|
}
|
|
|
}
|
|
|
|