| | |
| | | import cn.flightfeather.supervision.domain.ds1.entity.SceneMixingPlant |
| | | import cn.flightfeather.supervision.domain.ds1.entity.SceneStorageYard |
| | | import cn.flightfeather.supervision.domain.ds1.entity.SceneWharf |
| | | import kotlin.math.round |
| | | import cn.flightfeather.supervision.business.report.bean.BaseTemplateResult |
| | | import cn.flightfeather.supervision.business.report.bean.ProAnalysisSummaryResult |
| | | |
| | | /** |
| | | * 分街镇问题整改分析汇总表 |
| | | */ |
| | | class ProAnalysisSummary(dataSource: DataSource) : BaseTemplate(dataSource) { |
| | | override var resultObjects: MutableList<BaseTemplateResult> = mutableListOf(ProAnalysisSummaryResult()) |
| | | override val cols: List<BaseCols> = listOf(ColInspectionInfo(), ColTotalGrade(), ColStrategy()) |
| | | |
| | | override val templateName: String = "分街镇问题整改分析汇总表" |
| | | |
| | | override fun execute() { |
| | | override fun genData() { |
| | | //数据源重置 |
| | | dataSource.reset() |
| | | |
| | |
| | | districtMap[k]?.apply { |
| | | sceneCount++ |
| | | val status = when (dataSource.config.sceneType.toString()) { |
| | | Constant.ScenseType.TYPE1.value -> { |
| | | Constant.SceneType.TYPE1.value -> { |
| | | (rowData.baseScene as SceneConstructionSite?)?.csStatus |
| | | } |
| | | Constant.ScenseType.TYPE2.value -> { |
| | | Constant.SceneType.TYPE2.value -> { |
| | | (rowData.baseScene as SceneWharf?)?.getwStatus() |
| | | } |
| | | Constant.ScenseType.TYPE3.value -> { |
| | | Constant.SceneType.TYPE3.value -> { |
| | | (rowData.baseScene as SceneMixingPlant?)?.mpStatus |
| | | } |
| | | Constant.ScenseType.TYPE14.value -> { |
| | | Constant.SceneType.TYPE14.value -> { |
| | | (rowData.baseScene as SceneStorageYard?)?.syStatus |
| | | } |
| | | else -> "" |