From efb6f9d656f72c3016d738f079c92de021b9f14f Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期三, 04 十二月 2024 10:04:41 +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