|
@@ -31,6 +31,7 @@ import com.ym.mec.biz.dal.dao.*;
|
|
|
import com.ym.mec.biz.dal.dto.*;
|
|
|
import com.ym.mec.biz.dal.entity.*;
|
|
|
import com.ym.mec.biz.service.*;
|
|
|
+import com.ym.mec.common.service.IdGeneratorService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -162,6 +163,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
private MusicGroupPaymentCalenderDao musicGroupPaymentCalenderDao;
|
|
|
@Autowired
|
|
|
private MusicGroupPaymentCalenderService musicGroupPaymentCalenderService;
|
|
|
+ @Autowired
|
|
|
+ private IdGeneratorService idGeneratorService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Integer, ClassGroup> getDAO() {
|
|
@@ -3283,11 +3286,14 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if(classGroupIds == null || classGroupIds.size() == 0){
|
|
|
throw new BizException("参数校验失败");
|
|
|
}
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
MusicGroup musicGroup = musicGroupDao.findByClassGroupId(classGroupIds.get(0));
|
|
|
- //生成缴费记录
|
|
|
+
|
|
|
+ //生成缴费记录,同一个批次
|
|
|
+ MusicGroupPaymentCalender.PaymentCalenderStatusEnum status = null;
|
|
|
List<MusicGroupPaymentCalenderDto> paymentCalenderDtos = mergeClassSplitClassAffirmDto.getMusicGroupPaymentCalenderDtos();
|
|
|
if(paymentCalenderDtos != null && paymentCalenderDtos.size() > 0){
|
|
|
- MusicGroupPaymentCalender.PaymentCalenderStatusEnum status = null;
|
|
|
+ String batchNo = idGeneratorService.generatorId() + "";
|
|
|
for (MusicGroupPaymentCalenderDto calenderDto : paymentCalenderDtos) {
|
|
|
if(status != null && status != AUDITING){
|
|
|
List<MusicGroupPaymentCalenderCourseSettings> musicGroupPaymentCalenderCourseSettingsList = calenderDto.getMusicGroupPaymentCalenderCourseSettingsList();
|
|
@@ -3310,6 +3316,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if(status != null && status == AUDITING){
|
|
|
calenderDto.setStatus(AUDITING);
|
|
|
}
|
|
|
+ //指定批次
|
|
|
+ calenderDto.setBatchNo(batchNo);
|
|
|
musicGroupPaymentCalenderService.create(calenderDto);
|
|
|
}
|
|
|
}
|
|
@@ -3322,6 +3330,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
//冻结所选班级的课程
|
|
|
courseScheduleDao.batchUpdateLockByClassGroupIds(classGroupIds,1);
|
|
|
//保存学员应该增加的课程时长
|
|
|
+ //记录申请信息
|
|
|
+
|
|
|
return null;
|
|
|
}
|
|
|
}
|