From 6e0a83c55db4bae4d23a4c281946bda1d610f678 Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Sat, 14 Jun 2025 12:32:31 +0800 Subject: [PATCH] 补充前次提交的遗漏内容,前次提交SHA:a6f4dd --- oying-system/src/main/java/com/oying/modules/pc/category/domain/dto/PlatformCategoryQueryCriteria.java | 31 +++++++++++++++++++++++++------ 1 files changed, 25 insertions(+), 6 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/category/domain/dto/PlatformCategoryQueryCriteria.java b/oying-system/src/main/java/com/oying/modules/pc/category/domain/dto/PlatformCategoryQueryCriteria.java index 3ed3ef2..ee3126f 100644 --- a/oying-system/src/main/java/com/oying/modules/pc/category/domain/dto/PlatformCategoryQueryCriteria.java +++ b/oying-system/src/main/java/com/oying/modules/pc/category/domain/dto/PlatformCategoryQueryCriteria.java @@ -1,17 +1,32 @@ package com.oying.modules.pc.category.domain.dto; -import lombok.Data; +import com.oying.utils.DateUtil; import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; + +import java.time.LocalDateTime; /** -* @author lzp -* @date 2025-04-30 -**/ + * @author lzp + * @date 2025-04-30 + **/ @Data -public class PlatformCategoryQueryCriteria{ +public class PlatformCategoryQueryCriteria { + + @ApiModelProperty(value = "模糊查询") + private String blurry; @ApiModelProperty(value = "是否启用", example = "1") - private Integer active = 1; + private Integer active; + + @ApiModelProperty(value = "开始时间", example = "2025-06-03 00:00:00") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime createStart; + + @ApiModelProperty(value = "结束时间", example = "2025-06-03 23:59:59") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private LocalDateTime createEnd; @ApiModelProperty(value = "页码", example = "1") private Integer page = 1; @@ -19,4 +34,8 @@ @ApiModelProperty(value = "每页数据量", example = "10") private Integer size = 10; + public static void main(String[] args) { + System.out.println(DateUtil.getTimeStamp(DateUtil.parseLocalDateTimeFormat("2025-04-30 18:21:22", "yyyy-MM-dd HH:mm:ss"))); + } + } -- Gitblit v1.9.3