From 3e2159e45e12b2b8af058b68eafeaf082cf3fe85 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 15 九月 2022 09:30:31 +0800
Subject: [PATCH] 2022.9.15 1. 根据微信小程序前端需求,添加各对应后台逻辑

---
 src/main/kotlin/cn/flightfeather/supervision/common/score/AutoScore.kt |    9 +++------
 1 files changed, 3 insertions(+), 6 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 d0305c5..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,8 +94,8 @@
     }
 
     fun go(_year: Int? = null, _month: Int? = null) {
-        val fileName = "姹戒慨鑷姩璇勫垎-${DateUtil().DateToString(Date(), "yyyy-MM-ddhhmmss")}.xls"
-        val filePath = "E:\\宸ヤ綔\\寮�鍙慭\椋炵窘鐜app\\鑷姩璇勫垎\\姹戒慨\\$fileName"
+        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))
 
         getScoreItem()
@@ -103,11 +103,8 @@
         val userList = userinfoMapper.selectByExample(Example(Userinfo::class.java).apply {
             createCriteria().andEqualTo("usertypeid", UserType.Enterprise.value.toByte())
                 // FIXME: 2021/4/28 鍦烘櫙绫诲瀷 
-//                    姹戒慨绫诲瀷
                 .andEqualTo("extension2", SCENE_TYPE.value.toString())
                 .andEqualTo("isenable", true)
-//            椁愰ギ绫诲瀷
-//                .andEqualTo("extension2", SCENE_TYPE.value.toString())
 //            orderBy("workno")
         })
 
@@ -150,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