|
@@ -401,6 +401,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
musicGroupPaymentCalender.setCreateTime(date);
|
|
musicGroupPaymentCalender.setCreateTime(date);
|
|
musicGroupPaymentCalender.setUpdateTime(date);
|
|
musicGroupPaymentCalender.setUpdateTime(date);
|
|
musicGroupPaymentCalender.setStatus(status);
|
|
musicGroupPaymentCalender.setStatus(status);
|
|
|
|
+ musicGroupPaymentCalender.setOrganId(musicGroup.getOrganId());
|
|
|
|
|
|
//缴费截止日期默认三天后
|
|
//缴费截止日期默认三天后
|
|
if (musicGroupPaymentCalender.getDeadlinePaymentDate() == null && payUserType == PayUserType.STUDENT) {
|
|
if (musicGroupPaymentCalender.getDeadlinePaymentDate() == null && payUserType == PayUserType.STUDENT) {
|
|
@@ -608,6 +609,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
musicGroupPaymentCalender.setCurrentTotalAmount(currentTotalAmount);
|
|
musicGroupPaymentCalender.setCurrentTotalAmount(currentTotalAmount);
|
|
musicGroupPaymentCalender.setOriginalTotalAmount(originalTotalAmount);
|
|
musicGroupPaymentCalender.setOriginalTotalAmount(originalTotalAmount);
|
|
musicGroupPaymentCalender.setStatus(status);
|
|
musicGroupPaymentCalender.setStatus(status);
|
|
|
|
+ musicGroupPaymentCalender.setOrganId(musicGroup.getOrganId());
|
|
|
|
|
|
if (musicGroupPaymentCalender.getStatus() != AUDITING) {
|
|
if (musicGroupPaymentCalender.getStatus() != AUDITING) {
|
|
if (date.after(musicGroupPaymentCalender.getStartPaymentDate())) {
|
|
if (date.after(musicGroupPaymentCalender.getStartPaymentDate())) {
|
|
@@ -1648,7 +1650,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
pageInfo.setTotal(count);
|
|
pageInfo.setTotal(count);
|
|
params.put("offset", pageInfo.getOffset());
|
|
params.put("offset", pageInfo.getOffset());
|
|
dataList = musicGroupPaymentCalenderDao.queryCalenderPage(params);
|
|
dataList = musicGroupPaymentCalenderDao.queryCalenderPage(params);
|
|
- List<Integer> organIdList = dataList.stream().map(e -> e.getOrganId()).collect(Collectors.toList());
|
|
|
|
|
|
+ Set<Integer> organIdList = dataList.stream().map(e -> e.getOrganId()).collect(Collectors.toSet());
|
|
Map<Integer, String> organNameMap = getMap("organization", "id_", "name_", organIdList, Integer.class, String.class);
|
|
Map<Integer, String> organNameMap = getMap("organization", "id_", "name_", organIdList, Integer.class, String.class);
|
|
List<Integer> operatorIds = dataList.stream().map(e -> e.getOperator()).collect(Collectors.toList());
|
|
List<Integer> operatorIds = dataList.stream().map(e -> e.getOperator()).collect(Collectors.toList());
|
|
operatorIds.removeAll(Collections.singleton(null));
|
|
operatorIds.removeAll(Collections.singleton(null));
|
|
@@ -1665,7 +1667,14 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
return pageInfo;
|
|
return pageInfo;
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
|
|
+ @Override
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
+ public String merge1(MusicGroupPaymentBaseCalender musicGroupPaymentBaseCalender) {
|
|
|
|
+ del(musicGroupPaymentBaseCalender.getCalenderId());
|
|
|
|
+ return create1(musicGroupPaymentBaseCalender);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
@Transactional(rollbackFor = Exception.class,isolation = Isolation.READ_COMMITTED)
|
|
@Transactional(rollbackFor = Exception.class,isolation = Isolation.READ_COMMITTED)
|
|
public boolean autoUpdateMusicGroupPaymentCalenderStatus() {
|
|
public boolean autoUpdateMusicGroupPaymentCalenderStatus() {
|
|
Date date = new Date();
|
|
Date date = new Date();
|
|
@@ -1741,11 +1750,11 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
//缴费项目中没有学生即可删除缴费项目
|
|
//缴费项目中没有学生即可删除缴费项目
|
|
List<MusicGroupPaymentCalenderDetail> musicGroupPaymentCalenderDetailList = musicGroupPaymentCalenderDetailDao.queryByCalenderId(id, null);
|
|
List<MusicGroupPaymentCalenderDetail> musicGroupPaymentCalenderDetailList = musicGroupPaymentCalenderDetailDao.queryByCalenderId(id, null);
|
|
if (musicGroupPaymentCalenderDetailList != null && musicGroupPaymentCalenderDetailList.size() > 0) {
|
|
if (musicGroupPaymentCalenderDetailList != null && musicGroupPaymentCalenderDetailList.size() > 0) {
|
|
- throw new BizException("缴费项目中已存在学员,不能删除");
|
|
|
|
|
|
+ throw new BizException("操作失败:缴费项目中已存在学员");
|
|
}
|
|
}
|
|
MusicGroupStudentClassAdjust byBatchNo = musicGroupStudentClassAdjustDao.findByBatchNo(calender.getBatchNo());
|
|
MusicGroupStudentClassAdjust byBatchNo = musicGroupStudentClassAdjustDao.findByBatchNo(calender.getBatchNo());
|
|
if(byBatchNo != null){
|
|
if(byBatchNo != null){
|
|
- throw new BizException("删除失败,班级调整的缴费项目不允许删除");
|
|
|
|
|
|
+ throw new BizException("操作失败:班级调整的缴费项目不支持");
|
|
}
|
|
}
|
|
|
|
|
|
if (calender.getPaymentType() == PaymentType.MUSIC_APPLY) {
|
|
if (calender.getPaymentType() == PaymentType.MUSIC_APPLY) {
|
|
@@ -1753,7 +1762,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
List<StudentPaymentOrder> studentPaymentOrderList = studentPaymentOrderDao.queryByDealStatus(calender.getMusicGroupId(), OrderTypeEnum.APPLY,
|
|
List<StudentPaymentOrder> studentPaymentOrderList = studentPaymentOrderDao.queryByDealStatus(calender.getMusicGroupId(), OrderTypeEnum.APPLY,
|
|
DealStatusEnum.ING);
|
|
DealStatusEnum.ING);
|
|
if (studentPaymentOrderList != null && studentPaymentOrderList.size() > 0) {
|
|
if (studentPaymentOrderList != null && studentPaymentOrderList.size() > 0) {
|
|
- throw new BizException("存在缴费中的学生,不能删除");
|
|
|
|
|
|
+ throw new BizException("操作失败:存在缴费中的学生");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|