From 08e115615290920b4e759f1a38495bae00cc95c5 Mon Sep 17 00:00:00 2001 From: gaowdong Date: Fri, 4 Jul 2025 15:30:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E6=9F=A5=E8=AF=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/domain/param/OrderQueryParam.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/domain/param/OrderQueryParam.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/domain/param/OrderQueryParam.java index 6b88f97..6e37f6f 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/domain/param/OrderQueryParam.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/order/domain/param/OrderQueryParam.java @@ -143,4 +143,32 @@ public class OrderQueryParam implements Serializable this.encryptedCustSearchValue = SM4EncryptUtils.sm4Encrypt(custSearchInfo); } } + + public LocalDateTime getStartDateTime() { + if (this.startDateTime == null) { + this.startDateTime = LocalDateTime.now().minusDays(7); + } + return startDateTime; + } + + public LocalDateTime getEndDateTime() { + if (this.endDateTime == null) { + this.endDateTime = LocalDateTime.now().plusDays(7); + } + return endDateTime; + } + + public LocalDate getStartDate() { + if (this.startDate == null) { + this.startDate = LocalDate.now().minusDays(7); + } + return startDate; + } + + public LocalDate getEndDate() { + if (this.endDate == null) { + this.endDate = LocalDate.now().plusDays(7); + } + return endDate; + } }