|  | @@ -238,28 +238,28 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |              throw new BizException("请登录");
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        if (musicGroup.getStatus() != MusicGroupStatusEnum.PROGRESS && musicGroup.getStatus() != MusicGroupStatusEnum.PRE_BUILD_FEE) {
 | 
	
		
			
				|  |  | -            throw new BizException("创建缴费失败:已存在缴费项目");
 | 
	
		
			
				|  |  | +        if (musicGroup.getStatus() != MusicGroupStatusEnum.DRAFT) {
 | 
	
		
			
				|  |  | +            throw new BizException("只有‘草稿’状态才能创建报名缴费");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 所有缴费项目已完成排课才能创建下一个缴费项目
 | 
	
		
			
				|  |  | -        String orignBatchNo = musicGroupPaymentStudentCourseDetailDao.getUnUseBatchNoWithStudentAndCourseTypeAndCourseMinutes(musicGroupId, null, null, null);
 | 
	
		
			
				|  |  | +        /*String orignBatchNo = musicGroupPaymentStudentCourseDetailDao.getUnUseBatchNoWithStudentAndCourseTypeAndCourseMinutes(musicGroupId, null, null, null);
 | 
	
		
			
				|  |  |          if (!musicGroupPaymentBaseCalender.getConfirmCreate() && StringUtils.isNoneBlank(orignBatchNo)) {
 | 
	
		
			
				|  |  |              TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
 | 
	
		
			
				|  |  | -            return BaseController.failed(HttpStatus.MULTI_STATUS,"当前乐团存在未排课的缴费项目,请再次确认操作");
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +            return BaseController.failed(HttpStatus.MULTI_STATUS, "当前乐团存在未排课的缴费项目,请再次确认操作");
 | 
	
		
			
				|  |  | +        }*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 不是进行中,只能创建一次缴费
 | 
	
		
			
				|  |  | -        if (musicGroup.getStatus() != MusicGroupStatusEnum.PROGRESS) {
 | 
	
		
			
				|  |  | +        /*if (musicGroup.getStatus() != MusicGroupStatusEnum.PROGRESS) {
 | 
	
		
			
				|  |  |              List<MusicGroupPaymentCalender> list = musicGroupPaymentCalenderDao.findByMusicGroupId(musicGroupId);
 | 
	
		
			
				|  |  |              if (list.size() > 0) {
 | 
	
		
			
				|  |  |                  throw new BizException("创建失败,已经存在缴费信息");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        }*/
 | 
	
		
			
				|  |  |          //进行中加学员拓展信息
 | 
	
		
			
				|  |  |          CalenderAddStudent calenderAddStudent = musicGroupPaymentBaseCalender.getCalenderAddStudent();
 | 
	
		
			
				|  |  |          MusicGroupPaymentCalender musicGroupPaymentCalender = new MusicGroupPaymentCalender();
 | 
	
		
			
				|  |  |          //判断缴费项目类型
 | 
	
		
			
				|  |  | -        if (musicGroup.getStatus() == MusicGroupStatusEnum.PRE_BUILD_FEE) {
 | 
	
		
			
				|  |  | +        if (musicGroup.getStatus() == MusicGroupStatusEnum.DRAFT) {
 | 
	
		
			
				|  |  |              musicGroupPaymentBaseCalender.setPaymentType(MUSIC_APPLY);
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              if (calenderAddStudent != null && calenderAddStudent.getStudentIds() != null) {
 | 
	
	
		
			
				|  | @@ -300,8 +300,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |                  .add(repairActualAmount)
 | 
	
		
			
				|  |  |                  .add(activityActualAmount).setScale(0, BigDecimal.ROUND_HALF_UP);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        PaymentCalenderStatusEnum status;
 | 
	
		
			
				|  |  | -        if (musicGroupPaymentBaseCalender.getPayUserType() == SCHOOL) {
 | 
	
		
			
				|  |  | +        PaymentCalenderStatusEnum status = PaymentCalenderStatusEnum.DRAFT;
 | 
	
		
			
				|  |  | +        /*if (musicGroupPaymentBaseCalender.getPayUserType() == SCHOOL) {
 | 
	
		
			
				|  |  |              status = AUDITING;
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |              //计算项目原现价
 | 
	
	
		
			
				|  | @@ -320,10 +320,11 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |                          .add(activityCurrentAmount).setScale(0, BigDecimal.ROUND_HALF_UP);
 | 
	
		
			
				|  |  |                  status = actualTotalAmount.compareTo(currentTotalAmount) == 0 ? NO : AUDITING;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        }*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          Date date = new Date();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        musicGroupPaymentCalender.setIsShowSalePrice(musicGroupPaymentBaseCalender.getIsShowSalePrice());
 | 
	
		
			
				|  |  |          musicGroupPaymentCalender.setDeadlinePaymentDate(musicGroupPaymentBaseCalender.getDeadlinePaymentDate());
 | 
	
		
			
				|  |  |          musicGroupPaymentCalender.setMemo(musicGroupPaymentBaseCalender.getMemo());
 | 
	
		
			
				|  |  |          musicGroupPaymentCalender.setMusicGroupId(musicGroupId);
 | 
	
	
		
			
				|  | @@ -340,7 +341,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |          musicGroupPaymentCalender.setOrganId(musicGroup.getOrganId());
 | 
	
		
			
				|  |  |          musicGroupPaymentCalender.setPaymentItemShowState(musicGroupPaymentBaseCalender.getPaymentItemShowState());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        if (musicGroupPaymentCalender.getStatus() != AUDITING) {
 | 
	
		
			
				|  |  | +        /*if (musicGroupPaymentCalender.getStatus() != AUDITING) {
 | 
	
		
			
				|  |  |              if (date.after(musicGroupPaymentCalender.getStartPaymentDate())) {
 | 
	
		
			
				|  |  |                  musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.OPEN);
 | 
	
		
			
				|  |  |              } else if (date.after(musicGroupPaymentCalender.getDeadlinePaymentDate())) {
 | 
	
	
		
			
				|  | @@ -348,7 +349,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.NO);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +        }*/
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 设置批次号
 | 
	
		
			
				|  |  |          String batchNo = idGeneratorService.generatorId() + "";
 | 
	
	
		
			
				|  | @@ -403,15 +404,9 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 如果是报名,需要修改乐团状态
 | 
	
		
			
				|  |  |          if (musicGroupPaymentBaseCalender.getPaymentType() == MUSIC_APPLY) {
 | 
	
		
			
				|  |  | -            if (status != AUDITING) {
 | 
	
		
			
				|  |  | -                musicGroup.setStatus(MusicGroupStatusEnum.APPLY);
 | 
	
		
			
				|  |  | -                // 记录操作日志
 | 
	
		
			
				|  |  | -                musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(创建缴费中 -> 报名中)", sysUser.getId(), ""));
 | 
	
		
			
				|  |  | -            } else {
 | 
	
		
			
				|  |  | -                musicGroup.setStatus(MusicGroupStatusEnum.FEE_AUDIT);
 | 
	
		
			
				|  |  | -                // 记录操作日志
 | 
	
		
			
				|  |  | -                musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功(创建缴费 -> 费用审核中)", sysUser.getId(), ""));
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +        	// 记录操作日志
 | 
	
		
			
				|  |  | +            musicGroupBuildLogDao.insert(new MusicGroupBuildLog(musicGroupId, "报名缴费项目创建成功", sysUser.getId(), ""));
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  |              musicGroup.setUpdateTime(date);
 | 
	
		
			
				|  |  |              musicGroupDao.update(musicGroup);
 | 
	
		
			
				|  |  |          }
 |