|
@@ -163,17 +163,6 @@ public class SporadicChargeInfoImpl extends BaseServiceImpl<Integer, SporadicCha
|
|
|
return true;
|
|
|
}
|
|
|
if (studentPaymentOrder.getStatus() == DealStatusEnum.CLOSE || studentPaymentOrder.getStatus() == DealStatusEnum.FAILED) {
|
|
|
- if (info.getMaxAmount() != null && info.getPaidAmount().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- List<SporadicChargeInfo> activeInfos = sporadicChargeInfoDao.getOrganActiveInfo(info.getOrganId(), 12);
|
|
|
- for (SporadicChargeInfo activeInfo : activeInfos) {
|
|
|
- activeInfo.setPaidAmount(activeInfo.getPaidAmount().subtract(studentPaymentOrder.getActualAmount()));
|
|
|
- activeInfo.setUpdateTime(new Date());
|
|
|
- int update = sporadicChargeInfoDao.update(activeInfo);
|
|
|
- if (update <= 0) {
|
|
|
- throw new BizException("已收金额更新失败,请重试");
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
if (info.getOrganId().equals(42) && info.getChargeType().equals(SporadicChargeTypeEnum.LEVEL)) {
|
|
|
degreeRegistrationService.updateStatus(studentPaymentOrder.getUserId(), 0, studentPaymentOrder.getOrderNo());
|
|
|
return true;
|