package com.prolog.cs.base.gsp.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description 不合格报损汇总表 
 * @Author Xiong  
 * @Date 2021-05-10 
 */
@Data
@ApiModel
public class GspUnqualifiedLossVO implements Serializable {
	private static final long serialVersionUID =  4191456615718865696L;

	@ApiModelProperty(value = "单据ID",required = true) 
	@NotBlank(message = "单据ID can not blank!") 
	private String id;

	@ApiModelProperty(value = "单据编号",required = true) 
	@NotBlank(message = "单据编号 can not blank!") 
	private String code;

	@ApiModelProperty(value = "仓配中心ID",required = true) 
	@NotBlank(message = "仓配中心ID can not blank!") 
	private String dcId;

	@ApiModelProperty(value = "仓ID",required = true) 
	@NotBlank(message = "仓ID can not blank!") 
	private String warehouseId;

	@ApiModelProperty(value = "货主id",required = true) 
	@NotBlank(message = "货主id can not blank!") 
	private String cargoOwnerId;

	@ApiModelProperty(value = "审核员") 
	private String auditOperator;

	@ApiModelProperty(value = "审核日期") 
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date auditDate;

	@ApiModelProperty(value = "审核意见") 
	private String auditText;

	@ApiModelProperty(value = "状态：10=初始 20=已审批 30=已驳回",required = true) 
	@NotNull(message = "状态：10=初始 20=已审批 30=已驳回 can not blank!") 
	private BigDecimal status;

	@ApiModelProperty(value = "数据来源",required = true) 
	@NotBlank(message = "数据来源 can not blank!") 
	private String source;

	@ApiModelProperty(value = "备注") 
	private String remark;

}
