| | |
| | | import java.io.File |
| | | import java.io.FileInputStream |
| | | import java.io.FileOutputStream |
| | | import java.io.OutputStream |
| | | import java.net.URLEncoder |
| | | import java.nio.charset.Charset |
| | | import java.nio.charset.StandardCharsets |
| | | import java.util.* |
| | | import javax.servlet.http.HttpServletResponse |
| | |
| | | ) |
| | | val dataSource = DataSource(config, dbMapper) |
| | | val t = when (mode) { |
| | | // //问题与整改跟踪汇总表 |
| | | // 0 -> ProDetailSummary(dataSource) |
| | | // //分街镇问题整改分析汇总表 |
| | | // 1 -> ProAnalysisSummary(dataSource) |
| | | // |
| | | // //规范性评估详情表 |
| | | // 2 -> ScoreDetailSummary(dataSource) |
| | | // //分街镇规范性分析表 |
| | | // 3 -> ScoreAnalysisSummary(dataSource) |
| | | // |
| | | // //问题与整改分类统计表 |
| | | // 4 -> ProTypeDetailSummary(dataSource) |
| | | // //问题与整改分类排名 |
| | | // 5 -> ProTypeRankSummary(dataSource) |
| | | // //月度主要或典型问题分析表 |
| | | // 6 -> ProTypeRankMainSummary(dataSource) |
| | | // //工地施工阶段问题分类分析表 |
| | | // 7 -> ProTypeStatusSummary(dataSource) |
| | | |
| | | 8 -> ReportOne(dataSource) |
| | | 9 -> ReportTwo(dataSource) |
| | | 10 -> ReportThree(dataSource) |
| | |
| | | val task = taskService.getByDistrictCode(config.districtCode, config.startTime)?.takeIf { it.isNotEmpty() }?.get(0) |
| | | config.topTaskGuid = task?.tguid ?: "" |
| | | val dataSource = mutableListOf<DataSource>() |
| | | config.sceneType = Constant.ScenseType.TYPE1.value.toInt() |
| | | config.sceneType = Constant.SceneType.TYPE1.value.toInt() |
| | | dataSource.add(DataSource(config, dbMapper)) |
| | | |
| | | // val config2 = config.copy(sceneType = Constant.ScenseType.TYPE2.value.toInt()) |