‘linchangsheng’ 9 달 전
부모
커밋
056c06bf3b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/order/PayOrderLogic.java

+ 2 - 2
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/order/PayOrderLogic.java

@@ -222,7 +222,7 @@ public class PayOrderLogic {
 
         if (workerOrderBuy.getServicePrice() != null){
 
-            totalAmount.add(workerOrderBuy.getServicePrice());
+            totalAmount = totalAmount.add(workerOrderBuy.getServicePrice());
 
             BigDecimal workerServiceProceAmount = workerOrderBuy.getServicePrice().multiply(Convert.toBigDecimal("0.006"));
 
@@ -238,7 +238,7 @@ public class PayOrderLogic {
 
         if (workerOrderBuy.getOtherPrice() != null){
 
-            totalAmount.add(workerOrderBuy.getOtherPrice());
+            totalAmount = totalAmount.add(workerOrderBuy.getOtherPrice());
             BigDecimal workerOtherProceAmount = workerOrderBuy.getOtherPrice().multiply(Convert.toBigDecimal("0.006"));