package com.oying.modules.pc.category.domain.dto;
|
|
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
|
**/
|
@Data
|
public class PlatformCategoryQueryCriteria {
|
|
@ApiModelProperty(value = "模糊查询")
|
private String blurry;
|
|
@ApiModelProperty(value = "是否启用", example = "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;
|
|
@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")));
|
}
|
|
}
|