Przeglądaj źródła

fix 临时班排课冲突检测,时间重合
explame: 10:00-11:00 11:00-12:00

周箭河 5 lat temu
rodzic
commit
aa2516533f

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/MusicGroupServiceImpl.java

@@ -264,11 +264,11 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
         if (chargeInfo == null) {
             throw new BizException("支付项不存在");
         }
-        BigDecimal amount = sporadicPayDto.getAmount();
+        BigDecimal amount = chargeInfo.getAmount();
         if(chargeInfo.getDiscountAmount() != null && chargeInfo.getDiscountAmount().compareTo(BigDecimal.ZERO)>0){
             amount = amount.subtract(chargeInfo.getDiscountAmount());
         }
-        if (!(amount.compareTo(chargeInfo.getAmount()) == 0)) {
+        if (!(amount.compareTo(sporadicPayDto.getAmount()) == 0)) {
             throw new BizException("订单金额异常");
         }