32 lines
1010 B
Java
32 lines
1010 B
Java
package com.zhgd.xmgl.entity;
|
||
|
||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||
import io.swagger.annotations.ApiModelProperty;
|
||
import lombok.Data;
|
||
import org.springframework.format.annotation.DateTimeFormat;
|
||
|
||
import java.util.Date;
|
||
|
||
/**
|
||
* 请求对象
|
||
*/
|
||
@Data
|
||
public class BaseRequest extends PageQO {
|
||
/*
|
||
<if test="dto.queryStartTime != null">
|
||
and cpi.update_date >= #{dto.queryStartTime}
|
||
</if>
|
||
<if test="dto.queryEndTime != null">
|
||
and cpi.update_date <![CDATA[<=]]> concat(#{dto.queryEndTime},' 23:59:59')
|
||
</if>
|
||
*/
|
||
@ApiModelProperty(value = "查询开始时间,格式:2023-05-22")
|
||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||
private Date queryStartTime;
|
||
@ApiModelProperty(value = "查询结束时间,格式:2023-05-22")
|
||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||
private Date queryEndTime;
|
||
}
|