Ver código fonte

测试部署

tags/24080901
PoffyZhang 1 ano atrás
pai
commit
a972471cea
1 arquivos alterados com 2 adições e 2 exclusões
  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 Ver arquivo

@@ -325,10 +325,10 @@ public class NoticeManage {
* @param wrapper
*/
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())
.eq(Notice::getPermissionsValue,user.getRegionCode()))
.or(q2 -> q2.eq(Notice::getPermissions,NoticePermissionsEnum.ORG.getCode())
.eq(Notice::getPermissionsValue,user.getEmpPosUnitCode()));
.eq(Notice::getPermissionsValue,user.getEmpPosUnitCode())));
}
}

Carregando…
Cancelar
Salvar