From 9867f6d5c5bccfe52b878c344c536905dd6b309e Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 09 六月 2022 08:48:06 +0800
Subject: [PATCH] 1. 接口文档自动输出

---
 src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt b/src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
index d100e3a..d0305c5 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
+++ b/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()

--
Gitblit v1.9.3