commit
This commit is contained in:
+6
-5
@@ -118,11 +118,12 @@ public class MemberInfoPageForm extends PageForm {
|
|||||||
|
|
||||||
// 权限判断
|
// 权限判断
|
||||||
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
if (!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name(), RoleConstant.SCHOOL_UNION_ADMIN.name())) {
|
||||||
SqlExpressionGroup seg = new SqlExpressionGroup();
|
// 分工会主席只能查看本人所在单位会员,避免无分工会人员被 unionId 空值兜底查出。
|
||||||
seg.or(prefix + "unionId", "=", SecurityUtil.getUnionId());
|
if (AuthUtil.hasRole(RoleConstant.BRANCH_UNION_CHAIRMAN.name())) {
|
||||||
seg.or(prefix + "unionId", "is", null);
|
cnd.and(prefix + "unitId", "=", SecurityUtil.getUnitId());
|
||||||
seg.or(prefix + "unionId", "=", "");
|
} else {
|
||||||
cnd.and(seg);
|
cnd.and(prefix + "unionId", "=", SecurityUtil.getUnionId());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
cnd.andEX(prefix + "unionId", "=", this.getUnionId());
|
cnd.andEX(prefix + "unionId", "=", this.getUnionId());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user