From 39eca08f6d0f47337ba9dc51e0d7e63247607da4 Mon Sep 17 00:00:00 2001 From: renzexin Date: Fri, 23 Aug 2024 10:06:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/controller/WrkProjectController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chushang-modules/chushang-module-inspection/inspection-service/src/main/java/com/chushang/inspection/project/controller/WrkProjectController.java b/chushang-modules/chushang-module-inspection/inspection-service/src/main/java/com/chushang/inspection/project/controller/WrkProjectController.java index 79c2aee..3fa2cb5 100644 --- a/chushang-modules/chushang-module-inspection/inspection-service/src/main/java/com/chushang/inspection/project/controller/WrkProjectController.java +++ b/chushang-modules/chushang-module-inspection/inspection-service/src/main/java/com/chushang/inspection/project/controller/WrkProjectController.java @@ -64,6 +64,8 @@ public class WrkProjectController { public AjaxResult list(WrkProject project) { CommonParam commonParam = CommonParam.buildPageRequest(); + List createTimes = project.getCreateTimes(); + project.setCreateTimes(extendTimeRange(createTimes, " 00:00:00", " 23:59:59")); PageResult pageResult = projectService.pageList(project, commonParam); return AjaxResult.success(pageResult); } @@ -292,4 +294,13 @@ public class WrkProjectController { // + private List extendTimeRange(List timeList, String prefix, String suffix) { + if (timeList != null && timeList.size() >= 2) { + String startTime = timeList.get(0) + prefix; + String endTime = timeList.get(1) + suffix; + timeList.set(0, startTime); + timeList.set(1, endTime); + } + return timeList; + } }