From f83092193c8cb1782a918caaa56866f8f97a91f8 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期日, 29 十二月 2024 14:58:19 +0800
Subject: [PATCH] 1.行政区划对接-高德 2.行政区划对接-腾讯
---
src/main/resources/mapper/customer/CustomerMapper.xml | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/customer/CustomerMapper.xml b/src/main/resources/mapper/customer/CustomerMapper.xml
index 8fbff9f..7b2ee84 100644
--- a/src/main/resources/mapper/customer/CustomerMapper.xml
+++ b/src/main/resources/mapper/customer/CustomerMapper.xml
@@ -9,7 +9,8 @@
c.*,
p.name as partnerName,
u.nick_name,
- u.tel
+ u.tel,
+ (select count(o.id) from t_order o where o.create_by = c.user_id and o.deleted=0 and o.status_backend not in ('PENDING','CANCEL','REFUND')) as orderNum
FROM
t_customer_info c
LEFT JOIN t_user u ON c.user_id = u.id left join t_partner_info p on c.partner_id = p.id where c.deleted = 0
@@ -40,6 +41,9 @@
<if test="dto.partnerUserId != null and dto.partnerUserId != ''">
and c.partner_user_id = #{dto.partnerUserId}
</if>
+ <if test="dto.isEnabled!=null">
+ AND c.is_enabled = #{dto.isEnabled}
+ </if>
order by c.create_time desc
</select>
<select id="getCurrentCustomer" resultType="com.mzl.flower.dto.response.customer.CustomerDTO"
--
Gitblit v1.9.3