From 6628d3f8eb5725d41abc882356c47046ba23626e Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Thu, 10 Jul 2025 18:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/CaseplatformCaseService.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sa-admin/src/main/java/net/lab1024/sa/admin/module/business/caseplatformcase/service/CaseplatformCaseService.java b/sa-admin/src/main/java/net/lab1024/sa/admin/module/business/caseplatformcase/service/CaseplatformCaseService.java index f655513..a25d54b 100644 --- a/sa-admin/src/main/java/net/lab1024/sa/admin/module/business/caseplatformcase/service/CaseplatformCaseService.java +++ b/sa-admin/src/main/java/net/lab1024/sa/admin/module/business/caseplatformcase/service/CaseplatformCaseService.java @@ -128,6 +128,15 @@ public class CaseplatformCaseService { return ResponseDTO.ok(SmartPageUtil.emptyResult(page)); } } + + // 时间处理 + if (queryForm.getExamineTime() != null && queryForm.getExamineTime().size() == 2) { + LocalDateTime start = queryForm.getExamineTime().get(0).withHour(0).withMinute(0).withSecond(0).withNano(0); + LocalDateTime end = queryForm.getExamineTime().get(1).withHour(23).withMinute(59).withSecond(59).withNano(999_999_999); + queryForm.getExamineTime().set(0, start); + queryForm.getExamineTime().set(1, end); + } + List list = caseplatformCaseDao.queryPage(page, queryForm, provList); PageResult pageResult = SmartPageUtil.convert2PageResult(page, list); return ResponseDTO.ok(pageResult); @@ -637,6 +646,15 @@ public class CaseplatformCaseService { return ResponseDTO.ok(SmartPageUtil.emptyResult(page)); } } + + // 时间处理 + if (queryForm.getCreateTime() != null && queryForm.getCreateTime().size() == 2) { + LocalDateTime start = queryForm.getCreateTime().get(0).withHour(0).withMinute(0).withSecond(0).withNano(0); + LocalDateTime end = queryForm.getCreateTime().get(1).withHour(23).withMinute(59).withSecond(59).withNano(999_999_999); + queryForm.getCreateTime().set(0, start); + queryForm.getCreateTime().set(1, end); + } + List list = caseplatformAcAppDao.queryPage(page, queryForm, provList); PageResult pageResult = SmartPageUtil.convert2PageResult(page, list); return ResponseDTO.ok(pageResult);