From 39e336d0448d9ac5cbbc31f2cce77897248d3bc1 Mon Sep 17 00:00:00 2001 From: yang <1175@qq.com> Date: Tue, 8 Oct 2024 20:17:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=88=E4=BE=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xboe/module/boecase/service/impl/CasesServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/boecase/service/impl/CasesServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/module/boecase/service/impl/CasesServiceImpl.java index 8ec57200..56a53aab 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/boecase/service/impl/CasesServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/boecase/service/impl/CasesServiceImpl.java @@ -1299,8 +1299,8 @@ public class CasesServiceImpl implements ICasesService { pageSize = 10; } - LocalDateTime startTime = month.withDayOfMonth(1); - LocalDateTime endTime = month.plusMonths(1).withDayOfMonth(1).withMinute(0); + LocalDateTime startTime = month.withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0); + LocalDateTime endTime = YearMonth.from(month).atEndOfMonth().atTime(23, 59, 59); List> popularityOfMajor = casesRankDao.findPopularityOfMajor(pageSize, startTime, endTime, majorId); List caseIdList = popularityOfMajor.stream().map(map -> map.get("caseId").toString()).collect(Collectors.toList());