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.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 BusinOutPlanAddBo implements Serializable {

    private static final long serialVersionUID = 1L;


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


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

    /**
     * 出库楼层
     */
    private Integer layer;

}
