|
@@ -168,6 +168,8 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
private MusicGroupPaymentCalenderService musicGroupPaymentCalenderService;
|
|
private MusicGroupPaymentCalenderService musicGroupPaymentCalenderService;
|
|
@Autowired
|
|
@Autowired
|
|
private MusicGroupStudentClassAdjustDao musicGroupStudentClassAdjustDao;
|
|
private MusicGroupStudentClassAdjustDao musicGroupStudentClassAdjustDao;
|
|
|
|
+ @Autowired
|
|
|
|
+ private MusicGroupPaymentCalenderDetailDao musicGroupPaymentCalenderDetailDao;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public BaseDAO<Integer, ClassGroup> getDAO() {
|
|
public BaseDAO<Integer, ClassGroup> getDAO() {
|
|
@@ -3454,9 +3456,15 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
if (CollectionUtils.isEmpty(studentIds)) {
|
|
if (CollectionUtils.isEmpty(studentIds)) {
|
|
throw new BizException("学员列表不可为空");
|
|
throw new BizException("学员列表不可为空");
|
|
}
|
|
}
|
|
- SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
|
|
|
|
MusicGroup musicGroup = musicGroupDao.findByClassGroupId(classGroupIds.get(0));
|
|
MusicGroup musicGroup = musicGroupDao.findByClassGroupId(classGroupIds.get(0));
|
|
|
|
+ //获取欠费学员列表
|
|
|
|
+ List<Integer> noPaymentUserIds = musicGroupPaymentCalenderDetailDao.queryNoPaymentUserIds(musicGroup.getId(), new ArrayList<>(studentIds));
|
|
|
|
+ if(noPaymentUserIds.size() > 0){
|
|
|
|
+ throw new BizException("操作失败:有欠费的学员不允许创建缴费");
|
|
|
|
+ }
|
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
|
+
|
|
//生成缴费记录,同一个批次
|
|
//生成缴费记录,同一个批次
|
|
MusicGroupPaymentCalender.PaymentCalenderStatusEnum status = null;
|
|
MusicGroupPaymentCalender.PaymentCalenderStatusEnum status = null;
|
|
List<MusicGroupPaymentCalenderDto> paymentCalenderDtos = mergeClassSplitClassAffirmDto.getMusicGroupPaymentCalenderDtos();
|
|
List<MusicGroupPaymentCalenderDto> paymentCalenderDtos = mergeClassSplitClassAffirmDto.getMusicGroupPaymentCalenderDtos();
|