From 497475defd5d0ebf90ae6a8e2b080a16d78043ab Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 23 九月 2022 17:49:34 +0800
Subject: [PATCH] 2022.9.23

---
 src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt |    4 ++--
 1 files changed, 2 insertions(+), 2 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 0cd255f..93e80a8 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt
@@ -94,7 +94,7 @@
     }
 
     fun go(_year: Int? = null, _month: Int? = null) {
-        val fileName = "${SCENE_TYPE.des}鑷姩璇勫垎-${DateUtil().DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls"
+        val fileName = "${SCENE_TYPE.des}鑷姩璇勫垎-${DateUtil.DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls"
         val filePath = "E:\\宸ヤ綔\\寮�鍙慭\椋炵窘鐜app\\鑷姩璇勫垎\\${SCENE_TYPE.des}\\$fileName"
         val out = FileOutputStream(File(filePath))
 
@@ -147,7 +147,7 @@
         val now = LocalDate.now()
         val year = _year ?: now.year
         val month = _month ?: now.monthValue
-        val sMonth = DateUtil().getStartMonthByPeriod(month, 3) ?: 1
+        val sMonth = DateUtil.getStartMonthByPeriod(month, 3) ?: 1
         val eMonth = sMonth + 2
         val period = "${year}/$sMonth-$eMonth"
 

--
Gitblit v1.9.3