| | |
| | | @Override |
| | | public List<InformationPlatform> getInformationPlatforms(Long companyId) { |
| | | if (companyId == null) { |
| | | companyId = SecurityUtils.getLoginUser().getUser().getCompanyId(); |
| | | companyId = SecurityUtils.getCompanyId(); |
| | | } |
| | | LambdaQueryWrapper<InformationPlatform> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(InformationPlatform::getCompanyId, companyId); |
| | |
| | | @Override |
| | | public int saveInformationPlatform(InformationPlatform informationPlatform) { |
| | | Long companyId = informationPlatform.getCompanyId(); |
| | | if (!companyId.equals(SecurityUtils.getLoginUser().getUser().getCompanyId())){ |
| | | if (!companyId.equals(SecurityUtils.getCompanyId())){ |
| | | throw new ApiException("无权操作!"); |
| | | } |
| | | |