| | |
| | | private void generateReport(String source, String target, ReportEntity re) { |
| | | if (StaticData.S1.equals(re.getType())) { |
| | | switch (re.getCode()) { |
| | | case "countOperates ": |
| | | case "countOperates": |
| | | createCountOperatesWord(source, target); |
| | | break; |
| | | case "countSizes": |
| | |
| | | } |
| | | } else { |
| | | switch (re.getCode()) { |
| | | case "countOperates ": |
| | | case "countOperates": |
| | | createCountOperatesExcel(source, target); |
| | | break; |
| | | case "countSizes": |
| | |
| | | private DownloadEntity getDownloadEntity(UserEntity ue, String file) { |
| | | DownloadEntity de = new DownloadEntity(); |
| | | de.setName(FileHelper.getFileName(file)); |
| | | // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告 |
| | | // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告 |
| | | de.setType(6); |
| | | de.setSizes(FileHelper.sizeToMb(new File(file).length())); |
| | | de.setDepid(ue.getDepid()); |