package com.mzl.flower.dto.request.report; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import javax.validation.constraints.NotNull; import java.time.LocalDate; @Data public class QuerySupplierDTO { @ApiModelProperty(value = "供应商id") private Long supplierId; @ApiModelProperty(value = "下单开始日期") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") @NotNull(message = "下单日期不能为空") private LocalDate startDate; @ApiModelProperty(value = "下单结束日期") @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd") @NotNull(message = "下单日期不能为空") private LocalDate endDate; }