From 8ff260150ad8f2804b62dd649e93cefb04e349df Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 27 九月 2024 16:25:04 +0800
Subject: [PATCH] 1.财务报表-订单统计-按日

---
 src/main/java/com/mzl/flower/dto/request/report/QueryOrderDTO.java |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/mzl/flower/dto/request/report/QueryOrderDTO.java b/src/main/java/com/mzl/flower/dto/request/report/QueryOrderDTO.java
index da07577..f35960b 100644
--- a/src/main/java/com/mzl/flower/dto/request/report/QueryOrderDTO.java
+++ b/src/main/java/com/mzl/flower/dto/request/report/QueryOrderDTO.java
@@ -5,20 +5,24 @@
 import lombok.Data;
 import org.springframework.format.annotation.DateTimeFormat;
 
+import javax.validation.constraints.NotNull;
 import java.time.LocalDate;
+import java.time.LocalDateTime;
 
 @Data
 public class QueryOrderDTO {
 
     @ApiModelProperty(value = "开始时间")
-    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")
-    @DateTimeFormat
-    private LocalDate startDate;
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @NotNull(message = "开始时间不能为空")
+    private LocalDateTime startDate;
 
     @ApiModelProperty(value = "结束时间")
-    @JsonFormat(pattern="yyyy-MM-dd" ,timezone="GMT+8")
-    @DateTimeFormat
-    private LocalDate endDate;
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss" ,timezone="GMT+8")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @NotNull(message = "结束时间不能为空")
+    private LocalDateTime endDate;
 
     @ApiModelProperty(value = "合伙人id")
     private Long partnerId;

--
Gitblit v1.9.3