riku
2022-06-09 9867f6d5c5bccfe52b878c344c536905dd6b309e
src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
@@ -105,6 +105,7 @@
                // FIXME: 2021/4/28 场景类型 
//                    汽修类型
                .andEqualTo("extension2", SCENE_TYPE.value.toString())
                .andEqualTo("isenable", true)
//            餐饮类型
//                .andEqualTo("extension2", SCENE_TYPE.value.toString())
//            orderBy("workno")
@@ -166,7 +167,8 @@
                it.realname,
                SCENE_TYPE,
                year,
                month
                month,
                now
            )
            var score = 0
@@ -280,21 +282,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()