package com.prolog.upcloud.base.wh.operate.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author wujunjie
 * @desc 移库信息
 */
@Data
@ApiModel
public class WmsMoveSaveVO {
    /**
     * 仓库ID
     */
    @ApiModelProperty(value = "仓库ID")
    @NotBlank(message = "{required}")
    private String warehouseId;

    @ApiModelProperty(value = "货主id")
    @NotBlank(message = "{required}")
    private String cargoOwnerId;

    /**
     * 移入建筑物
     */
    @ApiModelProperty(value = "移入建筑物")
    private String moveInBldg;

    /**
     * 移出建筑物
     */
    @ApiModelProperty(value = "移出建筑物")
    private String moveOutBldg;

    /**
     * 手动单号
     */
    @ApiModelProperty(value = "手动单号")
    private String customBillNum;

    /**
     * 库工ID
     */
    @ApiModelProperty(value = "库工ID")
    @NotBlank(message = "{required}")
    private String warehouseWorkerId;

    @ApiModelProperty(value = "部门ID")
    private String departmentId;

    @ApiModelProperty(value = "备注")
    @Length(max = 255,message = "{noMoreThan}")
    private String comments;

    @ApiModelProperty(value = "移库明细")
    private List<@Valid WmsMoveDetailVO> moveDetails;
}
