From 274bc2d0f7fe8fe7525196e4d7d6ece1cafe2c6c Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期日, 04 二月 2024 17:32:14 +0800 Subject: [PATCH] 1. 新增静安50分制评估结果转换逻辑; 2. 新增根据坐标圆心和半径查询范围内场景逻辑; --- src/main/kotlin/cn/flightfeather/supervision/domain/ds2/repository/ComplaintAndPunishmentRep.kt | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/main/kotlin/cn/flightfeather/supervision/domain/ds2/repository/ComplaintAndPunishmentRep.kt b/src/main/kotlin/cn/flightfeather/supervision/domain/ds2/repository/ComplaintAndPunishmentRep.kt index 3c60c11..a5f7ef2 100644 --- a/src/main/kotlin/cn/flightfeather/supervision/domain/ds2/repository/ComplaintAndPunishmentRep.kt +++ b/src/main/kotlin/cn/flightfeather/supervision/domain/ds2/repository/ComplaintAndPunishmentRep.kt @@ -6,6 +6,8 @@ import cn.flightfeather.supervision.lightshare.vo.ComplaintVo import cn.flightfeather.supervision.lightshare.vo.PunishmentVo import org.springframework.stereotype.Repository +import java.time.LocalDateTime +import java.time.format.DateTimeFormatter import java.util.* /** @@ -30,6 +32,12 @@ return findComplaint(tzUserIdList, s, e) } + fun findComplaint(tzUserIdList: List<String?>, sTime: LocalDateTime?, eTime: LocalDateTime?): List<ComplaintVo?> { + val s = sTime?.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) + val e = eTime?.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) + return findComplaint(tzUserIdList, s, e) + } + fun findComplaint(tzUserIdList: List<String?>, sTime: String?, eTime: String?): List<ComplaintVo?> { return complaintMapper.findComplaint(tzUserIdList, sTime, eTime) } @@ -44,6 +52,12 @@ return findPunishment(tzUserIdList, s, e) } + fun findPunishment(tzUserIdList: List<String?>, sTime: LocalDateTime?, eTime: LocalDateTime?): List<PunishmentVo?> { + val s = sTime?.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) + val e = eTime?.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) + return findPunishment(tzUserIdList, s, e) + } + fun findPunishment(tzUserIdList: List<String?>, sTime: String?, eTime: String?): List<PunishmentVo?> { return punishmentMapper.findPunishment(tzUserIdList, sTime, eTime) } -- Gitblit v1.9.3