From 79281ebb9bcc2cd6501a76a5f65b16e7d6edc631 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Thu, 14 Jan 2021 23:26:22 +0800
Subject: [PATCH] modify

---
 zq-erp/src/main/resources/mybatis/mapper/hive/SysBusinessDataDao.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysBusinessDataDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysBusinessDataDao.xml
index 3bb7a6c..fa920c7 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysBusinessDataDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysBusinessDataDao.xml
@@ -651,7 +651,7 @@
                 ) goodsCost,
                 (select sum(b.COUNT * IFNULL(c.price, 0)) from sys_order a
                     inner join sys_order_item b on a.ID=b.ORDER_ID
-                    inner join shopping_goods c on c.good_type != '家居产品'
+                    inner join shopping_goods c on c.good_type != '家居产品' and b.goods_id=c.id
                     where a.shop_id=34 and a.STATU in ('已付款', '欠款') and <![CDATA[ORDER_TIME > '2021-01-13 00:00:00' and ORDER_TIME < '2021-01-14 00:00:00']]>
                 ) otherCost
             from dual

--
Gitblit v1.9.1