riku
2021-12-10 98d774555f6207ac07dbfb9c542b1b489839b827
src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
@@ -280,21 +280,17 @@
                }
            } ?: 0
            // 写入数据库
//            if (r > 0) {
//                evaluationList.forEach { el -> evaluationMapper.insert(el) }
//                itemevaluationList.forEach { il -> itemevaluationMapper.insert(il) }
                for (e in evaluationList) {
                    if (e.ertype?.toInt()?.equals(0) == true) {
                        finalScore(e, year, eMonth, period)
                        break
                    }
                }
//            for (e in evaluationList) {
//                if (e.ertype?.toInt()?.equals(0) == true) {
//                    finalScore(e, year, eMonth, period)
//                    break
//                }
//            }
        }
        // 写入文档
//        ExcelUtil.write2(emptyList(), contents, workbook)
//        workbook.write(out)
        ExcelUtil.write2(emptyList(), contents, workbook)
        workbook.write(out)
        workbook.close()
        out.flush()
        out.close()