Commit b1ed401c authored by chenzhao's avatar chenzhao

权限修改 区域公司赋值

parent ae9c512c
...@@ -77,7 +77,7 @@ public class UserLimitsAdvice { ...@@ -77,7 +77,7 @@ public class UserLimitsAdvice {
stdUserEmpower.setAmosOrgCode(Arrays.asList(userUnitInformationDto.getAmosUnitOrgCode())); stdUserEmpower.setAmosOrgCode(Arrays.asList(userUnitInformationDto.getAmosUnitOrgCode()));
if (org.contains(ROLEFLAGADMIN)){ if (org.contains(ROLEFLAGADMIN)){
LambdaQueryWrapper<RegionalCompanies> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<RegionalCompanies> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(RegionalCompanies::getUnitId,userUnitInformationDto!=null?userUnitInformationDto.getAmosUnitInfoId():null); queryWrapper.eq(RegionalCompanies::getUnitInfoId,userUnitInformationDto!=null?userUnitInformationDto.getAmosUnitInfoId():null);
queryWrapper.eq(BaseEntity::getIsDelete,0); queryWrapper.eq(BaseEntity::getIsDelete,0);
List<RegionalCompanies> regionalCompanies = regionalCompaniesMapper.selectList(queryWrapper); List<RegionalCompanies> regionalCompanies = regionalCompaniesMapper.selectList(queryWrapper);
List<String> regionalCompaniesCodes = regionalCompanies.stream().map(RegionalCompanies::getRegionalCompaniesCode).collect(Collectors.toList()); List<String> regionalCompaniesCodes = regionalCompanies.stream().map(RegionalCompanies::getRegionalCompaniesCode).collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment