瀏覽代碼

用户列表可以根据筛选条件统计

marxjaw 3 月之前
父節點
當前提交
f20e785eb2
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      yt-app/app-service/src/main/resources/mapper/dyz/AdRecordMapper.xml

+ 12 - 0
yt-app/app-service/src/main/resources/mapper/dyz/AdRecordMapper.xml

@@ -216,6 +216,18 @@
         from yt_dyz_ad_record ar
         join yt_dyz_user au on ar.user_id = au.user_id
         <where>
+            <if test="userId != null and userId !=''">
+                and ar.user_id = #{userId}
+            </if>
+            <if test="nickName != null and nickName !=''">
+                and au.nick_name like concat('%',#{nickName},'%')
+            </if>
+            <if test="ditchId != null">
+                and au.ditch_id = #{ditchId}
+            </if>
+            <if test="userStatus != null">
+                and au.user_status = #{userStatus}
+            </if>
             <if test="appIds != null and appIds != ''">
                 and ar.app_id in
                 <foreach collection="appIds.split(',')" separator="," item="item" open="(" close=")">