| | |
| | | package com.sandu.ximon.admin.service; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alipay.service.schema.util.StringUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | |
| | | //排序方式 |
| | | String orderBy = orderByResult + " " + orderBySeq; |
| | | |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize(), orderBy); |
| | | if (baseConditionVO != null) { |
| | | PageHelper.startPage(baseConditionVO.getPageNo(), baseConditionVO.getPageSize(), orderBy); |
| | | } |
| | | List<IpVolumeFile> list = list(wrapper); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | public List<IpVolumeFile> listFiles() { |
| | | public List<IpVolumeFile> listFiles(String keyword) { |
| | | LambdaQueryWrapper<IpVolumeFile> wrapper = Wrappers.lambdaQuery(IpVolumeFile.class); |
| | | |
| | | //不是超管 |
| | |
| | | file.eq(IpVolumeFile::getUserId, SecurityUtils.getUserId()); |
| | | }); |
| | | } |
| | | if (keyword != null && !StringUtil.isEmpty(keyword)) { |
| | | wrapper.like(IpVolumeFile::getFileName, keyword); |
| | | } |
| | | return list(wrapper); |
| | | } |
| | | |