Ver código fonte

fixed 售后订单判断金额

fushengqian 2 meses atrás
pai
commit
a4e9dd54d6

+ 2 - 2
fuint-application/src/main/java/com/fuint/common/service/impl/RefundServiceImpl.java

@@ -616,8 +616,8 @@ public class RefundServiceImpl extends ServiceImpl<MtRefundMapper, MtRefund> imp
             throw new BusinessCheckException("该售后订单已存在,请查询售后订单列表!");
         }
 
-        if (new BigDecimal(refundAmount).compareTo(orderInfo.getPayAmount()) > 0) {
-            throw new BusinessCheckException("退款金额不能大于实际支付金额!");
+        if (new BigDecimal(refundAmount).compareTo(orderInfo.getAmount()) > 0) {
+            throw new BusinessCheckException("退款金额不能大于订单总金额!");
         }
 
         // 创建售后订单