package com.yunfeiyun.agmp.fms.domain.resvo;

import com.yunfeiyun.agmp.common.enums.DictTypeEnums;
import com.yunfeiyun.agmp.common.utils.DictUtils;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class WmsFinishGoodsStockSumInfoResVo {

    /**农产品信息*/
    private String finishgoodscode;
    /**库存总量*/
    private BigDecimal stockAmountSum;
    /**单位*/
    private String goodsUnit;
    /**规格*/
    private String goodsSpec;
    /**仓库名称*/
    private String warehouseName;
    /**仓库标识*/
    private String warehouseId;
    /**最后入库时间*/
    private String latestStorageTime;

    public String getFinishgoodsName(){
        return DictUtils.getDictLabel(DictTypeEnums.AGM_MPP_PRODUCT.getCode(),this.finishgoodscode);
    }

    public String getGoodsUnitContent(){
        return DictUtils.getDictLabel(DictTypeEnums.WMS_GOODS_UNIT.getCode(),this.goodsUnit);
    }

}
