From eb706a988e747b624fda0d44e0aaf6a4ee5e20eb Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Thu, 26 May 2022 11:27:03 +0800
Subject: [PATCH] fix saveOrder zkPrice is null

---
 zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysOrderServiceHelper.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysOrderServiceHelper.java b/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysOrderServiceHelper.java
index c8662ae..b6d2ebe 100644
--- a/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysOrderServiceHelper.java
+++ b/zq-erp/src/main/java/com/matrix/system/hive/service/imp/SysOrderServiceHelper.java
@@ -202,7 +202,7 @@
      */
     private boolean isGiftMoneyPay(SysOrder order) {
         BusParameterSettings giftiIsfree = busParameterSettingsDao.selectCompanyParamByCode(AppConstance.SHOP_MANAGE_GIFTISFREE, order.getCompanyId());
-        if (giftiIsfree.getParamValue().equals("是")) {
+        if (BooleanEnum.TRUE.getValue() == giftiIsfree.getIntParamValue()) {
             return order.getFlows().stream().allMatch(item -> SysOrderFlow.IS_GIFT_Y.equals(item.getIsGift())
                     && item.getAmount().doubleValue() > 0D);
         } else {
@@ -628,6 +628,10 @@
         for (SysOrderItem item : sysOrder.getItems()) {
             ShoppingGoods shoppingGoods = shoppingGoodsDao.selectById(item.getGoodsId());
             item.setType(shoppingGoods.getGoodType());
+            if (item.getZkPrice() == null) {
+                item.setZkPrice(shoppingGoods.getSealPice());
+            }
+
             if (item.getZkPrice() == 0) {
                 item.setIsFree(Dictionary.FLAG_YES);
             }

--
Gitblit v1.9.1