1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package cn.flightfeather.supervision.business.report.cols
 
import cn.flightfeather.supervision.business.report.BaseCols
import cn.flightfeather.supervision.business.report.DataSource
import cn.flightfeather.supervision.common.utils.ExcelUtil
 
class ColTown(chooseIndexList: List<Int> = emptyList()) : BaseCols(chooseIndexList) {
    override fun onHeads(dataSource: DataSource): MutableList<MutableList<ExcelUtil.MyCell>> {
        return mutableListOf(mutableListOf(ExcelUtil.MyCell("街镇/工业区")))
    }
 
    override fun onOneRow(rowData: DataSource.RowData): List<Any> {
        return listOf(rowData.scene?.townname ?: "")
    }
}