1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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")));
    }
 
}