|
@@ -21,8 +21,8 @@
|
|
|
statusCd,t.community_id,t.community_id communityId,t.community_name communityName,t.store_id,t.store_id storeId
|
|
statusCd,t.community_id,t.community_id communityId,t.community_name communityName,t.store_id,t.store_id storeId
|
|
|
from u_role_community t
|
|
from u_role_community t
|
|
|
<if test="staffId != null and staffId != ''">
|
|
<if test="staffId != null and staffId != ''">
|
|
|
- LEFT JOIN p_privilege_group role on t.role_id = role.pg_id and role.status_cd = '0'
|
|
|
|
|
- left join p_privilege_user pu on pu.p_id = role.pg_id and pu.privilege_flag = '1' and pu.status_cd = '0'
|
|
|
|
|
|
|
+ left join p_privilege_group pg on t.role_id = pg.pg_id and pg.status_cd = '0'
|
|
|
|
|
+ left join p_privilege_user pu on pu.p_id = pg.pg_id and pu.privilege_flag = '1' and pu.status_cd = '0'
|
|
|
</if>
|
|
</if>
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="staffId != null and staffId != ''">
|
|
<if test="staffId != null and staffId != ''">
|
|
@@ -81,8 +81,8 @@
|
|
|
select count(1) count
|
|
select count(1) count
|
|
|
from u_role_community t
|
|
from u_role_community t
|
|
|
<if test="staffId != null and staffId != ''">
|
|
<if test="staffId != null and staffId != ''">
|
|
|
- LEFT JOIN p_privilege_group role on t.role_id = role.pg_id and role.status_cd = '0'
|
|
|
|
|
- left join p_privilege_user pu on pu.p_id = role.pg_id and pu.privilege_flag = '1' and pu.status_cd = '0'
|
|
|
|
|
|
|
+ left join p_privilege_group pg on t.role_id = pg.pg_id and pg.status_cd = '0'
|
|
|
|
|
+ left join p_privilege_user pu on pu.p_id = pg.pg_id and pu.privilege_flag = '1' and pu.status_cd = '0'
|
|
|
</if>
|
|
</if>
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="staffId != null and staffId != ''">
|
|
<if test="staffId != null and staffId != ''">
|