From e699f1f9957a71426d67669c49214509d89fa26b Mon Sep 17 00:00:00 2001 From: zhc077 <565291854> Date: Wed, 21 Jun 2023 18:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96=206.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/task/controller/TaskController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java index b0bcf94..27e08ad 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java @@ -53,6 +53,7 @@ public class TaskController extends JeecgController { private ITaskService taskService; private static final String ADMIN = "admin"; + private static final String FORMAT = "yyyy/MM/dd HH:mm:ss"; @Resource private IProjectxService iProjectxService; @@ -94,8 +95,8 @@ public class TaskController extends JeecgController { } IPage pageList = taskService.page(page, queryWrapper); pageList.getRecords().stream().forEach(e -> { - String startDate = DateUtils.date2Str(e.getStartTime(), new SimpleDateFormat("yyyy/MM/dd hh:mm:ss")); - String endDate = DateUtils.date2Str(e.getExpectedEndTime(), new SimpleDateFormat("yyyy/MM/dd hh:mm:ss")); + String startDate = DateUtils.date2Str(e.getStartTime(), new SimpleDateFormat(FORMAT)); + String endDate = DateUtils.date2Str(e.getExpectedEndTime(), new SimpleDateFormat(FORMAT)); String startEndTime = startDate + "-" + endDate; e.setStartEndTime(startEndTime); Projectx projectx = iProjectxService.getById(e.getProjectId());