| | |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.service.impl.BaseServiceImpl; |
| | | import com.sandu.ximon.admin.param.IpVolumeFileParam; |
| | | import com.sandu.ximon.admin.param.ReceiveParam; |
| | | import com.sandu.ximon.admin.security.SecurityUtils; |
| | | import com.sandu.ximon.dao.domain.IpVolumeFile; |
| | | import com.sandu.ximon.dao.mapper.IpVolumeFileMapper; |
| | |
| | | file.setClientId(clientService.getClientId()); |
| | | } |
| | | file.setFileName(fileParam.getFileName()); |
| | | file.setFileSize(fileParam.getFileSizeIp()); |
| | | file.setFileUrl(fileParam.getFileUrl()); |
| | | file.setOriginSize(fileParam.getOriginSize()); |
| | | return save(file); |
| | | } |
| | |
| | | } |
| | | |
| | | public LambdaQueryWrapper<IpVolumeFile> listFile(BaseConditionVO baseConditionVO, String keyword) { |
| | | LambdaQueryWrapper<IpVolumeFile> wrapper = Wrappers.lambdaQuery(IpVolumeFile.class).eq(IpVolumeFile::getClientId, clientService.getClientId()); |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize()); |
| | | LambdaQueryWrapper<IpVolumeFile> wrapper = Wrappers.lambdaQuery(IpVolumeFile.class).eq(IpVolumeFile::getClientId, clientService.getClientId()); |
| | | if (keyword.isEmpty()) { |
| | | return wrapper; |
| | | } else { |