From db033597433fa6e6a5793567d9e1c45f09841797 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期二, 15 十月 2024 15:36:47 +0800
Subject: [PATCH] 1.1

---
 src/main/resources/mapper/report/OrderReportMapper.xml |    6 ++----
 src/main/resources/application-test.yml                |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index 2128ba9..5253122 100644
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -3,7 +3,7 @@
     active: test,swagger
   datasource:
     type: com.alibaba.druid.pool.DruidDataSource
-    url: jdbc:mysql://47.99.58.211:3306/flower?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&allowMultiQueries=true
+    url: jdbc:mysql://47.99.58.211:3306/flower4?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&allowMultiQueries=true
     username: root
     password: Hmy@2024!*@&
     druid:
diff --git a/src/main/resources/mapper/report/OrderReportMapper.xml b/src/main/resources/mapper/report/OrderReportMapper.xml
index 9cd635b..93ffbf0 100644
--- a/src/main/resources/mapper/report/OrderReportMapper.xml
+++ b/src/main/resources/mapper/report/OrderReportMapper.xml
@@ -229,7 +229,7 @@
         IFNULL(sum(order_lack_num),0) as order_lack_num,
         IFNULL(sum(order_num)-sum(order_lack_num),0) as real_sale_num
         from (
-        select t2.payment_date,t2.id,t2.order_no,t2.create_by,ci.partner_id,p.name as partner_name,r2.* from (
+        select t2.payment_date,t2.id,t2.order_no,t2.create_by,t2.partner_id,p.name as partner_name,r2.* from (
             SELECT t.*,
             CASE
             WHEN t.payment_time > DATE(t.payment_time) + INTERVAL 17 HOUR THEN DATE(t.payment_time) + INTERVAL 1 DAY
@@ -242,10 +242,8 @@
             )t2
             left join  ( <include refid="baseSqlWithDate"></include> ) r2
             on t2.id = r2.order_id
-            left join t_customer_info ci
-            on t2.create_by=ci.user_id
             left join t_partner_info p
-            on ci.partner_id=p.id
+            on t2.partner_id=p.id
         )t3
         where t3.partner_id is not null
         <if test="dto.paymentDateStart != null">

--
Gitblit v1.9.3