소스 검색

fixed 售后订单判断金额

fushengqian 2 달 전
부모
커밋
a4e9dd54d6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      fuint-application/src/main/java/com/fuint/common/service/impl/RefundServiceImpl.java

+ 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("退款金额不能大于订单总金额!");
         }
 
         // 创建售后订单