bug: 政策法规资料权限问题修改
This commit is contained in:
+2
-2
@@ -158,8 +158,8 @@ public class SarLawsInformationServiceImpl extends ServiceImpl<SarLawsInformatio
|
|||||||
// 查询有权限的资料ID
|
// 查询有权限的资料ID
|
||||||
LambdaQueryWrapper<SarLawsInformationAuth> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<SarLawsInformationAuth> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(SarLawsInformationAuth::getUserId, userId);
|
wrapper.eq(SarLawsInformationAuth::getUserId, userId);
|
||||||
wrapper.eq(SarLawsInformationAuth::getAuthType, "viewableBy");
|
wrapper.and(each -> each.eq(SarLawsInformationAuth::getAuthType, "viewableBy")
|
||||||
wrapper.or().eq(SarLawsInformationAuth::getAuthType, "createAndApproveBy");
|
.or().eq(SarLawsInformationAuth::getAuthType, "createAndApproveBy"));
|
||||||
wrapper.select(SarLawsInformationAuth::getLawsInformationId);
|
wrapper.select(SarLawsInformationAuth::getLawsInformationId);
|
||||||
List<SarLawsInformationAuth> informationAuthList = authService.list(wrapper);
|
List<SarLawsInformationAuth> informationAuthList = authService.list(wrapper);
|
||||||
if (informationAuthList.size() > 0) {
|
if (informationAuthList.size() > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user