|
@@ -467,9 +467,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender.getId(),list2,musicGroup,false);
|
|
|
}
|
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
|
- int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
|
- musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
|
- musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
|
|
|
+ this.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender,true);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1044,9 +1042,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
musicGroupPaymentCalenderDetailService.batchAdd(musicGroupPaymentCalender,musicGroupPaymentCalenderDto.getMusicGroupPaymentCalenderStudentDetails());
|
|
|
}
|
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
|
- int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
|
- musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
|
- musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
|
|
|
+ this.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender,true);
|
|
|
}
|
|
|
|
|
|
//课程费用列表
|
|
@@ -1109,6 +1105,20 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
return batchNo;
|
|
|
}
|
|
|
|
|
|
+ //将0元未缴费学员缴费状态更新为已缴费
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void updateNoPaymentAndZeroPaymentStatus(MusicGroupPaymentCalender musicGroupPaymentCalender,Boolean updateFlag){
|
|
|
+ if(musicGroupPaymentCalender.getCurrentTotalAmount().compareTo(BigDecimal.ZERO) == 0){
|
|
|
+ int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
|
+ if(j > 0){
|
|
|
+ musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
|
+ if(updateFlag){
|
|
|
+ musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public boolean makesureSchoolePaid(Long id, String memo) {
|
|
|
MusicGroupPaymentCalender musicGroupPaymentCalender = musicGroupPaymentCalenderDao.get(id);
|
|
@@ -1536,8 +1546,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
for (MusicGroupPaymentCalender musicGroupPaymentCalender : musicGroupPaymentCalenders) {
|
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
|
- int j = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender.getId());
|
|
|
- musicGroupPaymentCalender.setActualNum((musicGroupPaymentCalender.getActualNum()==null?0:musicGroupPaymentCalender.getActualNum()) + j);
|
|
|
+ this.updateNoPaymentAndZeroPaymentStatus(musicGroupPaymentCalender,false);
|
|
|
}
|
|
|
musicGroupPaymentCalenderDao.batchUpdate(musicGroupPaymentCalenders);
|
|
|
if (calender.getPaymentType() == ADD_STUDENT){
|
|
@@ -1724,8 +1733,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
mgpc.setUpdateTime(date);
|
|
|
mgpc.setStatus(PaymentCalenderStatusEnum.OVER);
|
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
|
- int i = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(mgpc.getId());
|
|
|
- mgpc.setActualNum((mgpc.getActualNum()==null?0:mgpc.getActualNum()) + i);
|
|
|
+ this.updateNoPaymentAndZeroPaymentStatus(mgpc,false);
|
|
|
updateMusicGroupPaymentCalenderList.add(mgpc);
|
|
|
//如果是进行中加学员,将报名表状态改为NORMAL
|
|
|
if(mgpc.getPaymentType() == MusicGroupPaymentCalender.PaymentType.ADD_STUDENT){
|
|
@@ -1744,8 +1752,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
mgpc.setUpdateTime(date);
|
|
|
mgpc.setStatus(PaymentCalenderStatusEnum.OPEN);
|
|
|
//将0元未缴费学员缴费状态更新为已缴费
|
|
|
- int i = musicGroupPaymentCalenderDetailDao.updateNoPaymentAndZeroPaymentStatus(mgpc.getId());
|
|
|
- mgpc.setActualNum((mgpc.getActualNum()==null?0:mgpc.getActualNum()) + i);
|
|
|
+ this.updateNoPaymentAndZeroPaymentStatus(mgpc,false);
|
|
|
updateMusicGroupPaymentCalenderList.add(mgpc);
|
|
|
if(mgpc.getPayUserType() == STUDENT){
|
|
|
//推送待续费通知
|