package thyyxxk.webserver.entity.reports.medicinestockcount;

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

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

@Data
public class GetStockParam {
    @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;
    private String drawNo;
    private String lastDrawNo;
}
