Kaynağa Gözat

违规广告 入库+发微信消息

zhaoxian 1 yıl önce
ebeveyn
işleme
4c0de36d1f

+ 6 - 5
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/mapper/xml/MailLogMapper.xml

@@ -78,13 +78,13 @@
     <select id="getIllegalWChatId" resultType="com.alibaba.fastjson.JSONObject">
         select t.*
         from (
-                 select wexin_name,wexin_id, corp_id
+                 select wexin_name, wexin_id, corp_id, 1 as 'orders'
                  from ctop_corp_wexin_user
                  where user_id = (select ctop_user_allocation.user_id
                                   from ctop_user_allocation
                                   where account_id = #{accountId} limit 1)
         union all
-        select wexin_name,wexin_id, corp_id
+        select wexin_name, wexin_id, corp_id, 2 as 'orders'
         from ctop_corp_wexin_user
         where user_id = (select leader_id
                          from sys_user
@@ -93,10 +93,11 @@
                                      WHERE account_id = #{accountId}
             LIMIT 1))
         union all
-        select wexin_name,wexin_id, corp_id
+        select wexin_name, wexin_id, corp_id, 3 as 'orders'
         from ctop_corp_wexin_user
-        where user_id = #{userId})  t
-        group by t.wexin_id
+        where user_id = 'b07f2bdd0f914f1dab2b4e841764911f')  t
+        GROUP BY t.wexin_id
+        ORDER BY t.orders
     </select>
 
     <select id="getUserNameByUserId" resultType="java.lang.String">