package com.shkj.wms.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 出入库计划对象
 *
 * @author lch
 * @date 2023-06-02
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class BusinInPlanAddBo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 模具条码集合
     */
    @NotEmpty(message = "模具条码不得为空")
    private List<String> moldBarcodeList;


    /**
     * 托盘编码
     */
    @NotBlank(message = "托盘编码不得为空")
    private String containerCode;

    /**
     * 确认后继续呼叫托盘入库 1是 其他不是
     */
    private String isCall;


    /**
     * 模具类型
     */
    private String moldType;

    /**
     * 计划出入库时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date planTime;
}
