管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-21 60a470582d8ddf5d45441d6f73bdac235ecfc40f
src/main/java/com/lf/server/service/sys/ReportService.java
@@ -35,17 +35,17 @@
    DownloadService downloadService;
    @Override
    public Integer selectCount(String name) {
    public Integer selectCount(String name, String code) {
        name = StringHelper.getLikeStr(name);
        return reportMapper.selectCount(name);
        return reportMapper.selectCount(name, code);
    }
    @Override
    public List<ReportEntity> selectByPage(String name, Integer limit, Integer offset) {
    public List<ReportEntity> selectByPage(String name, String code, Integer limit, Integer offset) {
        name = StringHelper.getLikeStr(name);
        return reportMapper.selectByPage(name, limit, offset);
        return reportMapper.selectByPage(name, code, limit, offset);
    }
    @Override
@@ -289,6 +289,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file) {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(6);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());