| | |
| | | |
| | | @Override |
| | | public List<InformationPlatform> getInformationPlatforms(Long companyId) { |
| | | if (companyId == null) { |
| | | companyId = SecurityUtils.getCompanyId(); |
| | | } |
| | | |
| | | LambdaQueryWrapper<InformationPlatform> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(InformationPlatform::getCompanyId, companyId); |
| | | if (companyId != null){ |
| | | queryWrapper.eq(InformationPlatform::getCompanyId, companyId); |
| | | } |
| | | queryWrapper.eq(InformationPlatform::getDelFlag, UserConstant.ENABLE); |
| | | queryWrapper.orderByDesc(InformationPlatform::getCreateTime); |
| | | |
| | |
| | | |
| | | @Override |
| | | public int saveInformationPlatform(InformationPlatform informationPlatform) { |
| | | Long companyId = informationPlatform.getCompanyId(); |
| | | if (!companyId.equals(SecurityUtils.getCompanyId())){ |
| | | throw new ApiException("无权操作!"); |
| | | } |
| | | // Long companyId = informationPlatform.getCompanyId(); |
| | | // if (!companyId.equals(SecurityUtils.getCompanyId())){ |
| | | // throw new ApiException("无权操作!"); |
| | | // } |
| | | |
| | | if (informationPlatform.getId() != null){ |
| | | informationPlatform.setUpdateTime(LocalDateTime.now()); |