From e2af8608c0d243c6ec061791197fd446b4401b8a Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 25 十二月 2024 13:37:01 +0800
Subject: [PATCH] 1.统计报表-历史合伙人可查 2.小程序-花店:分类按照售罄放到最下面 3.小程序-合伙人:质检按照仓库排序
---
src/main/resources/mapper/statisticsAnalysis/SalesStatisticsAnalysisMapper.xml | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/statisticsAnalysis/SalesStatisticsAnalysisMapper.xml b/src/main/resources/mapper/statisticsAnalysis/SalesStatisticsAnalysisMapper.xml
index 757a74a..099e184 100644
--- a/src/main/resources/mapper/statisticsAnalysis/SalesStatisticsAnalysisMapper.xml
+++ b/src/main/resources/mapper/statisticsAnalysis/SalesStatisticsAnalysisMapper.xml
@@ -31,6 +31,7 @@
o.id orderId,
o.order_no,
o.payment_time,
+ c.parent_name flowerCategoryName,
CONCAT(o.customer_province, ' ', o.customer_city, ' ', o.customer_region, ' ', o.customer_address) AS address,
COALESCE((SELECT oic.num FROM t_order_item_check oic WHERE oic.order_item_id = oi.id AND oic.type = 'replace'),
0) replaceNum,
@@ -44,6 +45,7 @@
LEFT JOIN t_supplier_info si ON si.id = oi.supplier_id
LEFT JOIN t_order o ON oi.order_id = o.id
LEFT JOIN t_flower f on oi.flower_id = f.id
+ LEFT JOIN t_flower_category c on c.id = f.category
<include refid="flowerSaleWhere"></include>
</sql>
@@ -59,6 +61,9 @@
</if>
<if test="dto.registerTel!=null and dto.registerTel!=''">
AND si.contact_tel LIKE CONCAT('%',#{dto.registerTel}, '%')
+ </if>
+ <if test="dto.contactTel!=null and dto.contactTel!=''">
+ AND si.contact_tel LIKE CONCAT('%',#{dto.contactTel}, '%')
</if>
<if test="dto.stationId != null">
AND oi.station_id = #{dto.stationId}
@@ -88,6 +93,9 @@
<if test="dto.createEndDate != null">
AND o.payment_time < #{dto.createEndDate}
</if>
+ <if test="dto.orderField !=null and dto.orderField !=''">
+ order by ${dto.orderField} ${dto.orderType}
+ </if>
</sql>
--
Gitblit v1.9.3