‘linchangsheng’ 11 月之前
父節點
當前提交
641f0b3240

+ 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"));