Browse Source

测试部署

tags/24080901
PoffyZhang 1 year ago
parent
commit
a972471cea
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java

+ 2
- 2
pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/NoticeManage.java View File

@@ -325,10 +325,10 @@ public class NoticeManage {
* @param wrapper * @param wrapper
*/ */
private void permissionsWrapper(LambdaQueryWrapper<Notice> wrapper,UserFullInfoDTO user) { private void permissionsWrapper(LambdaQueryWrapper<Notice> wrapper,UserFullInfoDTO user) {
wrapper.eq(Notice::getPermissions,NoticePermissionsEnum.SUPER.getCode())
wrapper.and(q3 -> q3.eq(Notice::getPermissions,NoticePermissionsEnum.SUPER.getCode())
.or(q1 -> q1.eq(Notice::getPermissions,NoticePermissionsEnum.REGION.getCode()) .or(q1 -> q1.eq(Notice::getPermissions,NoticePermissionsEnum.REGION.getCode())
.eq(Notice::getPermissionsValue,user.getRegionCode())) .eq(Notice::getPermissionsValue,user.getRegionCode()))
.or(q2 -> q2.eq(Notice::getPermissions,NoticePermissionsEnum.ORG.getCode()) .or(q2 -> q2.eq(Notice::getPermissions,NoticePermissionsEnum.ORG.getCode())
.eq(Notice::getPermissionsValue,user.getEmpPosUnitCode()));
.eq(Notice::getPermissionsValue,user.getEmpPosUnitCode())));
} }
} }

Loading…
Cancel
Save