From 3b72e7e83d94b5d78d28f068570facbdcd4036bb Mon Sep 17 00:00:00 2001 From: Cui Zhi Feng <cuizf@fengyuntec.com> Date: 星期二, 29 十月 2024 11:35:02 +0800 Subject: [PATCH] 统计 订单量 供应商数量 全部用户量 售后订单数量 --- src/main/resources/mapper/point/CustomerPointDetailMapper.xml | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/point/CustomerPointDetailMapper.xml b/src/main/resources/mapper/point/CustomerPointDetailMapper.xml index 6e4689e..6c228fb 100644 --- a/src/main/resources/mapper/point/CustomerPointDetailMapper.xml +++ b/src/main/resources/mapper/point/CustomerPointDetailMapper.xml @@ -32,6 +32,9 @@ and p.record_date <= #{lastYear} ]]> </if> + <if test="userId!=null and userId!=''"> + and p.user_id = #{userId} + </if> GROUP BY p.user_id, p.customer_id -- Gitblit v1.9.3