package thyyxxk.webserver.entity.reports.deptperiodreport;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class QueryDeptEarnParam {
    @NotNull(message = "开始日期不能为空。")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date start;
    @NotNull(message = "结束日期不能为空。")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date end;
    @NotEmpty(message = "要查询的科室不能为空。")
    private List<String> depts;
    private String deptCode;
    private String doctorCode;
    private String inpatientNo;
    private Integer admissTimes;
}
