| | |
| | | import cn.flightfeather.supervision.business.report.BaseCols |
| | | import cn.flightfeather.supervision.business.report.BaseTemplate |
| | | import cn.flightfeather.supervision.business.report.DataSource |
| | | import cn.flightfeather.supervision.business.report.bean.BaseTemplateResult |
| | | import cn.flightfeather.supervision.business.report.bean.ProTypeStatusSummaryResult |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.common.utils.ExcelUtil |
| | | import cn.flightfeather.supervision.domain.ds1.entity.SceneConstructionSite |
| | | import kotlin.math.round |
| | | |
| | | class ProTypeStatusSummary(dataSource: DataSource) : BaseTemplate(dataSource) { |
| | | override val cols: List<BaseCols> = listOf() |
| | | override var resultObjects: MutableList<BaseTemplateResult> = mutableListOf(ProTypeStatusSummaryResult()) |
| | | override val templateName: String = "工地施工阶段问题分类分析表" |
| | | |
| | | @Throws(Exception::class) |
| | | override fun execute() { |
| | | if (dataSource.config.sceneType.toString() != Constant.ScenseType.TYPE1.value) { |
| | | throw IllegalStateException("${templateName}只能针对工地进行分析,当前传入场景类型编号为${dataSource.config.sceneType}") |
| | | override fun genData() { |
| | | if (dataSource.config.sceneType.toString() != Constant.SceneType.TYPE1.value) { |
| | | // throw IllegalStateException("${templateName}只能针对工地进行分析,当前传入场景类型编号为${dataSource.config.sceneType}") |
| | | println("sadas") |
| | | } |
| | | |
| | | dataSource.reset() |