xucaiqin 2 месяцев назад
Родитель
Сommit
7590c32086
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      sckw-modules/sckw-system/src/main/resources/mapper/KwsEnterpriseDao.xml

+ 2 - 3
sckw-modules/sckw-system/src/main/resources/mapper/KwsEnterpriseDao.xml

@@ -273,11 +273,10 @@
     </select>
     </select>
 
 
     <select id="findManageInfoByEntIdBeforeApproval" resultType="java.lang.Long">
     <select id="findManageInfoByEntIdBeforeApproval" resultType="java.lang.Long">
-        select distinct
-                        f.role_id roleId
+        select distinct r.id roleId
         from kws_enterprise a
         from kws_enterprise a
                  LEFT JOIN kws_user d ON a.phone = d.account and d.del_flag = 0
                  LEFT JOIN kws_user d ON a.phone = d.account and d.del_flag = 0
-                 left join kws_user_role f on f.user_id = d.id and f.del_flag = 0
+                 left join kws_role r on r.ent_id = a.id and r.del_flag = 0
         where a.del_flag = 0
         where a.del_flag = 0
           and d.is_main = 1
           and d.is_main = 1
           and d.system_type = 2
           and d.system_type = 2