package com.wms_main.model.dto.request.ycwms;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.wms_main.repository.utils.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class StockReq {

    @JsonProperty("location")
    private String location;

    @JsonProperty("vehicleNo")
    private String vehicleNo;

    @JsonProperty("goodsId")
    private String goodsId;

    @JsonProperty("specification")
    private String specification;

    @JsonProperty("goodsBarCode")
    private String goodsBarCode;

    @JsonProperty("xsfbillno")
    private String xsfbillno;

    @JsonProperty("xsfseq")
    private Integer xsfseq;

    @JsonProperty("neibubianhao")
    private String neibubianhao;


    public boolean empty() {
        return StringUtils.isEmpty(location)
                && StringUtils.isEmpty(vehicleNo)
                && StringUtils.isEmpty(goodsId)
                && StringUtils.isEmpty(specification)
                && StringUtils.isEmpty(goodsBarCode)
                && StringUtils.isEmpty(xsfbillno)
                && xsfseq == null
                && StringUtils.isEmpty(neibubianhao);
    }

}
