ソースを参照

优化权限bug

java110 3 年 前
コミット
0d38102254
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      java110-db/src/main/resources/mapper/center/PrivilegeDAOImplMapper.xml

+ 2 - 2
java110-db/src/main/resources/mapper/center/PrivilegeDAOImplMapper.xml

@@ -170,7 +170,7 @@
     </update>
 
     <select id="queryPrivilegeUsers" parameterType="map" resultType="map">
-        select t.user_id userId
+        select distinct t.user_id userId
         from p_privilege_user t
         INNER JOIN p_privilege p on t.p_id = p.p_id and p.status_cd = '0'
         where t.privilege_flag = '0'
@@ -182,7 +182,7 @@
             and t.store_id = #{storeId}
         </if>
         union ALL
-        select t.user_id userId
+        select distinct t.user_id userId
         from p_privilege_user t
         inner join p_privilege_group pg on t.p_id = pg.pg_id and pg.status_cd = '0' and pg.pg_id != '600201904002'
         inner join p_privilege_rel pr on pg.pg_id = pr.pg_id and pr.status_cd ='0'