| | |
| | | import cn.flightfeather.supervision.business.report.DataSource |
| | | import cn.flightfeather.supervision.common.utils.Constant |
| | | import cn.flightfeather.supervision.common.utils.ExcelUtil |
| | | import kotlin.math.round |
| | | |
| | | class ProTypeRankMainSummary(dataSource: DataSource) : ProTypeRankSummary(dataSource) { |
| | | override val templateName: String = "月度主要或典型问题分析表" |
| | |
| | | override fun formatTable(summarys: MutableList<Summary>) { |
| | | //排名靠前的max个问题被认定为主要或典型问题 |
| | | val max = when (dataSource.config.sceneType.toString()) { |
| | | Constant.ScenseType.TYPE1.value -> 5 |
| | | Constant.SceneType.TYPE1.value -> 5 |
| | | else -> 4 |
| | | } |
| | | |