| | |
| | | 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 |
| | |
| | | ce.setNo(rows++); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(); |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |
| | | map.put("data", list); |
| | | |
| | | ExcelHelper.writeToTemplate(source, target, map); |
| | |
| | | ce.setNo(rows++); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(); |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |
| | | map.put("data", list); |
| | | |
| | | ExcelHelper.writeToTemplate(source, target, map); |
| | |
| | | ce.setM2(FileHelper.getSizes(ce.getSizes())); |
| | | } |
| | | |
| | | Map<String, List<CountEntity>> map = new HashMap<>(); |
| | | Map<String, List<CountEntity>> map = new HashMap<>(1); |
| | | map.put("data", list); |
| | | |
| | | ExcelHelper.writeToTemplate(source, target, map); |
| | |
| | | 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()); |