|
|
@@ -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()))); |
|
|
|
} |
|
|
|
} |