From 2ae8bf126599f68ba1ca721ff2acc1dd4461e9a5 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 12 九月 2023 11:05:47 +0800
Subject: [PATCH] 1. 整合了飞羽环境、徐汇油烟及金山扬尘两个数据库; 2. 优化重构自动评估模块逻辑; 3. 新增监测数据自动化统; 4. 将自动统计应用于自动评估中;

---
 src/test/kotlin/cn/flightfeather/supervision/business/fume/AutoScoreTest.kt |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/src/test/kotlin/cn/flightfeather/supervision/business/fume/AutoScoreTest.kt b/src/test/kotlin/cn/flightfeather/supervision/business/fume/AutoScoreTest.kt
index 4b44db3..bfe6945 100644
--- a/src/test/kotlin/cn/flightfeather/supervision/business/fume/AutoScoreTest.kt
+++ b/src/test/kotlin/cn/flightfeather/supervision/business/fume/AutoScoreTest.kt
@@ -1,7 +1,9 @@
 package cn.flightfeather.supervision.business.fume
 
 import cn.flightfeather.supervision.business.storage.StAutoScore
+import cn.flightfeather.supervision.common.utils.Constant
 import cn.flightfeather.supervision.domain.ds1.mapper.ProblemlistMapper
+import cn.flightfeather.supervision.domain.ds1.mapper.SubtaskMapper
 import cn.flightfeather.supervision.domain.ds1.mapper.UserinfoMapper
 import cn.flightfeather.supervision.domain.ds2.mapper.LedgerSubTypeMapper
 import org.junit.Test
@@ -31,11 +33,27 @@
     @Autowired
     lateinit var problemlistMapper: ProblemlistMapper
 
+    @Autowired
+    lateinit var subtaskMapper: SubtaskMapper
+
     @Test
     fun go() {
-//        autoScore.go(2022, 3)
-        autoScore3.go(2022, 1, 2)
+//        val s = "abcdefg"
+//        val t = s.substring(0, s.length - 2)
+//        println(t)
+
+        autoScore.sceneType = Constant.ScenseType.TYPE1
+        autoScore.topTaskGrade("BdSm7KhSYWar3BSp")
+//        val subtask = subtaskMapper.selectByPrimaryKey("YoKxHlojS1wIlFoQ")
+//        autoScore.sceneGrade(subtask)
+//        autoScore.sceneGradeToFile(subtask)
+
+//        autoScore3.go(2022, 9, 1)
+
 //        val t = problemlistMapper.getStatisticalResult("310116", "2021-09-01 00:00:00", "2021-09-30 00:00:00", "1")
 //        println()
+
+//        val a = "01"
+//        println(a.toInt())
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3