|  | @@ -3652,12 +3652,11 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |          MusicGroup musicGroup = musicGroupDao.findByClassGroupId(classGroupIds.get(0));
 | 
	
		
			
				|  |  |          //生成缴费记录,同一个批次
 | 
	
		
			
				|  |  |          MusicGroupPaymentCalender.PaymentCalenderStatusEnum status = null;
 | 
	
		
			
				|  |  | -        String batchNo = null;
 | 
	
		
			
				|  |  |          List<MusicGroupPaymentCalenderDto> paymentCalenderDtos = mergeClassSplitClassAffirmDto.getMusicGroupPaymentCalenderDtos();
 | 
	
		
			
				|  |  | +        StringBuffer batchNos = new StringBuffer();
 | 
	
		
			
				|  |  |          if(paymentCalenderDtos != null && paymentCalenderDtos.size() > 0){
 | 
	
		
			
				|  |  | -            batchNo = idGeneratorService.generatorId() + "";
 | 
	
		
			
				|  |  |              for (MusicGroupPaymentCalenderDto calenderDto : paymentCalenderDtos) {
 | 
	
		
			
				|  |  | -                if(status == null || status != AUDITING){
 | 
	
		
			
				|  |  | +                if(status != null && status != AUDITING){
 | 
	
		
			
				|  |  |                      List<MusicGroupPaymentCalenderCourseSettings> musicGroupPaymentCalenderCourseSettingsList = calenderDto.getMusicGroupPaymentCalenderCourseSettingsList();
 | 
	
		
			
				|  |  |                      for (MusicGroupPaymentCalenderCourseSettings courseSettings : musicGroupPaymentCalenderCourseSettingsList) {
 | 
	
		
			
				|  |  |                          OrganizationCourseUnitPriceSettings defaultUnitPrice = organizationCourseUnitPriceSettingsDao.queryByOrganIdAndCourseTypeAndChargeType(
 | 
	
	
		
			
				|  | @@ -3676,18 +3675,17 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              //创建缴费项目
 | 
	
		
			
				|  |  |              for (MusicGroupPaymentCalenderDto calenderDto : paymentCalenderDtos) {
 | 
	
		
			
				|  |  | -                if(status != null && status == AUDITING){
 | 
	
		
			
				|  |  | -                    calenderDto.setStatus(AUDITING);
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                //指定批次
 | 
	
		
			
				|  |  | -                calenderDto.setBatchNo(batchNo);
 | 
	
		
			
				|  |  |                  musicGroupPaymentCalenderService.create(calenderDto);
 | 
	
		
			
				|  |  | +                if(batchNos.length() > 0){
 | 
	
		
			
				|  |  | +                    batchNos.append(",");
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                batchNos.append(calenderDto.getBatchNo());
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          //记录申请信息
 | 
	
		
			
				|  |  |          MusicGroupStudentClassAdjust musicGroupStudentClassAdjust = new MusicGroupStudentClassAdjust();
 | 
	
		
			
				|  |  | -        musicGroupStudentClassAdjust.setBatchNo(batchNo);
 | 
	
		
			
				|  |  | +        musicGroupStudentClassAdjust.setBatchNo(batchNos.toString());
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setMusicGroupId(musicGroup.getId());
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setOperatorId(sysUser.getId());
 | 
	
		
			
				|  |  |          musicGroupStudentClassAdjust.setNewClassGroupJson(JSON.toJSONString(classGroup4MixDtos));
 |