From d9a222758671cf5584e93eaddeebf7f10e61c926 Mon Sep 17 00:00:00 2001 From: huangjin <huangjin@lucahealthcare.com> Date: Fri, 25 Oct 2024 15:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=94=9F=E6=95=88=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/luca/pilot/entity/PlanModule.java | 2 +- src/main/java/com/luca/pilot/service/impl/PlanServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/luca/pilot/entity/PlanModule.java b/src/main/java/com/luca/pilot/entity/PlanModule.java index 90dd8c7..765fe69 100644 --- a/src/main/java/com/luca/pilot/entity/PlanModule.java +++ b/src/main/java/com/luca/pilot/entity/PlanModule.java @@ -29,7 +29,7 @@ public class PlanModule { private String siteName; private Long planId; private String planCode; - private String planEffectiveDate; + private LocalDateTime planEffectiveDate; private Integer planDuration; /** diff --git a/src/main/java/com/luca/pilot/service/impl/PlanServiceImpl.java b/src/main/java/com/luca/pilot/service/impl/PlanServiceImpl.java index 93dc226..497f7c2 100644 --- a/src/main/java/com/luca/pilot/service/impl/PlanServiceImpl.java +++ b/src/main/java/com/luca/pilot/service/impl/PlanServiceImpl.java @@ -152,7 +152,7 @@ public class PlanServiceImpl implements PlanService { if (Objects.nonNull(plan)) { planMoudle.setPlanId(plan.getId()); planMoudle.setPlanCode(plan.getNumber()); - planMoudle.setPlanEffectiveDate(parseTimeFromDate(plan.getEffectiveDate())); + planMoudle.setPlanEffectiveDate(plan.getEffectiveDate().atStartOfDay()); planMoudle.setPlanDuration(plan.getDays()); } -- GitLab