瀏覽代碼

Merge remote-tracking branch 'origin/dev' into dev

wangming 2 周之前
父節點
當前提交
bafbfb88b9
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      yami-shop-service/src/main/resources/mapper/UserMapper.xml

+ 2 - 0
yami-shop-service/src/main/resources/mapper/UserMapper.xml

@@ -136,6 +136,7 @@
         SUM(CASE WHEN points_type = 3 THEN points ELSE 0 END))  from tz_points_record 	where user_id =  a.user_id  and channel_id = a.channel_id),0) used -- 已消耗积分
         FROM tz_user a
         <where>
+            a.`status` = 1 and
             a.channel_id in (SELECT id FROM tz_channel)
             <if test="po.channelIdList != null and !po.channelIdList.isEmpty()">
                 and a.channel_id  in
@@ -228,6 +229,7 @@
                                        SUM(CASE WHEN points_type = 3 THEN points ELSE 0 END))  from tz_points_record 	where user_id =  a.user_id  and channel_id = a.channel_id),0) used -- 已消耗积分
         FROM tz_user a
         <where>
+            a.`status` = 1 and
             a.channel_id in (SELECT id FROM tz_channel)
             <if test="po.channelIdList != null and !po.channelIdList.isEmpty()">
                 and a.channel_id  in