package com.sifang.modules.supply.warehouse.request;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

public class InventoryOrderReq implements Serializable {

    private String id;

    @NotBlank(message = "盘点仓库不能为空")
    private String warehouseId;

    @NotBlank(message = "盘点对象不能为空")
    private String inventoryType;

    private String img;

    private String remarks;

    @Valid
    @NotEmpty(message = "盘点明细不能为空")
    private List<InventoryOrderDetailReq> details;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getInventoryType() {
        return inventoryType;
    }

    public void setInventoryType(String inventoryType) {
        this.inventoryType = inventoryType;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public List<InventoryOrderDetailReq> getDetails() {
        return details;
    }

    public void setDetails(List<InventoryOrderDetailReq> details) {
        this.details = details;
    }

    @Override
    public String toString() {
        return "InventoryOrderReq{" +
                "id='" + id + '\'' +
                ", warehouseId='" + warehouseId + '\'' +
                ", inventoryType='" + inventoryType + '\'' +
                ", img='" + img + '\'' +
                ", remarks='" + remarks + '\'' +
                ", details=" + details +
                '}';
    }
}
