package com.bonus.canteen.core.supply.purchase.domain.param;

import com.bonus.canteen.core.supply.purchase.domain.bo.DrpMaterialInquiryDetailCommitDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class DrpMaterialInquiryCommitDTO {
   @ApiModelProperty("货品招标单号")
   private String materialInquiryId;
   @ApiModelProperty("货品招标标题")
   private @NotBlank(
   message = "货品招标标题不能为空!"
) String materialInquiryTitle;
   @ApiModelProperty("报价开始时间")
   private LocalDateTime startTime;
   @ApiModelProperty("报价结束时间")
   private LocalDateTime endTime;
   @ApiModelProperty("招标开始时间")
   private LocalDateTime tenderStartTime;
   @ApiModelProperty("招标结束时间")
   private LocalDateTime tenderEndTime;
   @ApiModelProperty("招标预算")
   private Long tenderBudget;
   @ApiModelProperty("资金来源")
   private String fundingSource;
   @ApiModelProperty("招标类型，1邀请 2公开")
   private Integer tenderType;
   @ApiModelProperty("中标价格有效期开始")
   private LocalDateTime bidValidityStartTime;
   @ApiModelProperty("中标价格有效期结束")
   private LocalDateTime bidValidityEndTime;
   @ApiModelProperty("联系人")
   private String linkMan;
   @ApiModelProperty("联系电话")
   private String linkPhone;
   @ApiModelProperty("备注")
   private String remark;
   @ApiModelProperty("询价供应商")
   private @Size(
   min = 1,
   message = "询价供应商不能为空!"
) List<Long> inquirySupplierIdList;
   @ApiModelProperty("询价货品明细")
   private @Size(
   min = 1,
   message = "询价货品明细不能为空!"
) List<DrpMaterialInquiryDetailCommitDTO> detailList;
   @ApiModelProperty("提交状态1 待提交 2已提交")
   private Integer status;
   @ApiModelProperty("公告")
   private String announcement;
   @ApiModelProperty("交货时间")
   private LocalDate deliveryTime;
   @ApiModelProperty("区域-省")
   private String regionProvince;
   @ApiModelProperty("区域-市")
   private String regionCity;
   @ApiModelProperty("区域-区")
   private String regionDistrict;
   @ApiModelProperty("详细地址")
   private String address;
   @ApiModelProperty("区域ID")
   private Long areaId;
}
