2023-08-17 18:10:07 +08:00
|
|
|
|
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">
|
2023-08-18 13:41:48 +08:00
|
|
|
|
and cpi.update_date <![CDATA[<=]]> concat(date_format(#{dto.queryEndTime},'%Y-%m-%d'),' 23:59:59')
|
2023-08-17 18:10:07 +08:00
|
|
|
|
</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;
|
|
|
|
|
|
}
|