src/main/kotlin/cn/flightfeather/supervision/business/report/BaseTemplateMulti.kt
@@ -81,6 +81,7 @@ val c = mutableListOf<Array<Any>>() head.forEach { h.add(it.toTypedArray()) } contents.forEach { c.add(it.toTypedArray()) } if (c.isNotEmpty() && c[0].isNotEmpty()) { val index = c[0][0] //按照第一列进行排序 if (index is Int) { @@ -94,6 +95,7 @@ } else { c.sortBy { it[0].toString() } } } return Pair(h, c) @@ -112,6 +114,7 @@ contents.forEach { c.add(it.toTypedArray()) } if (c.isNotEmpty() && c[0].isNotEmpty()) { val index = c[0][0] //按照第一列进行排序 if (index is Int) { @@ -127,6 +130,7 @@ it[0].toString() } } } return Pair(h, c) } }