From 53ce8de426561e7a43847afda23b5e24e6f76c4e Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期一, 19 一月 2026 17:29:55 +0800
Subject: [PATCH] 2026.1.19 1. 新增可配置的台账提交期限 2. 新增可配置的自巡查承诺
---
src/main/kotlin/cn/flightfeather/supervision/common/score/item/ScoreItem_9.kt | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/common/score/item/ScoreItem_9.kt b/src/main/kotlin/cn/flightfeather/supervision/common/score/item/ScoreItem_9.kt
index f88c426..0d84c0e 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/score/item/ScoreItem_9.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/common/score/item/ScoreItem_9.kt
@@ -9,6 +9,7 @@
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import tk.mybatis.mapper.entity.Example
+import java.time.LocalDate
import java.time.LocalDateTime
import java.time.ZoneId
import java.util.*
@@ -46,9 +47,12 @@
* 绾夸笂鍩硅鏈鍒版垨绛炬敹鏂囦欢 -3鍒�
*/
private fun condition1(): Boolean {
+ val startTime = LocalDate.of(info.year, sMonth, 1).atStartOfDay(ZoneId.systemDefault())
+ val lastTime = LocalDate.of(info.year, eMonth, 1).plusMonths(1).atStartOfDay(ZoneId.systemDefault())
val signs = signatureMapper.selectByExample(Example(Signature::class.java).apply {
createCriteria().andEqualTo("msParticipantid", info.userId)
.andEqualTo("msIssignin", false)
+ .andBetween("msCreatedate", startTime, lastTime)
})
return signs.isNotEmpty()
}
--
Gitblit v1.9.3