From d60d905750e86e7dbcbf932ee2aa7bb835f879bc Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Wed, 04 Jun 2025 08:24:32 +0800 Subject: [PATCH] 1、PlatformCategory继承BaseEntity 2、调整PlatformCategoryView字段 3、完成queryPlatformCategory接口开发 --- 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