package com.ycl.platform.domain.query;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.ycl.platform.base.AbsQuery;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Objects;
|
|
import org.springframework.lang.NonNull;
|
import jakarta.validation.constraints.NotBlank;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import lombok.experimental.Accessors;
|
import utils.DateUtils;
|
|
/**
|
* 考核结果查询
|
*
|
* @author xp
|
* @since 2024-03-07
|
*/
|
@Data
|
@Accessors(chain = true)
|
@ApiModel(value = "CheckResult查询", description = "考核结果查询")
|
public class CheckResultQuery extends AbsQuery {
|
|
/**
|
* 考核对象
|
*/
|
private String checkUnitName;
|
|
/**
|
* 考核频率
|
*/
|
private String frequency;
|
|
/**
|
* 考核范围
|
*/
|
private String examineRange;
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date start;
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date end;
|
|
public void setTime() {
|
if (Objects.nonNull(start)) {
|
start = DateUtils.getDayStart(start);
|
}
|
if (Objects.nonNull(end)) {
|
end = DateUtils.getDayEnd(end);
|
}
|
}
|
|
}
|