‘linchangsheng’ преди 11 месеца
родител
ревизия
641f0b3240
променени са 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

@@ -221,7 +221,7 @@ public class PayOrderLogic {
             num = num.add(workerOrderItem.getNum());
         }
 
-        if (workerOrderBuy.getServicePrice() != null){
+        if (workerOrderBuy.getServicePrice() != null && workerOrderBuy.getServicePrice().doubleValue() > 0){
 
             totalAmount = totalAmount.add(workerOrderBuy.getServicePrice());
 
@@ -237,7 +237,7 @@ public class PayOrderLogic {
         }
 
 
-        if (workerOrderBuy.getOtherPrice() != null){
+        if (workerOrderBuy.getOtherPrice() != null && workerOrderBuy.getServicePrice().doubleValue() > 0){
 
             totalAmount = totalAmount.add(workerOrderBuy.getOtherPrice());
             BigDecimal workerOtherProceAmount = workerOrderBuy.getOtherPrice().multiply(Convert.toBigDecimal("0.006"));