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

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

@Data
public class SpmOrderResVo {
   /**订单标识*/
   private String orderId;
   /**订单编号*/
   private String orderNo;
   /**订单状态*/
   private String orderStatus;
   /**农产品信息*/
   private String finishgoodscode;
   /**销售数量*/
   private Integer orderGoodscount;
   /**货物单位*/
   private String goodsUnit;
   /**客户姓名*/
   private String orderConsigneerealname;
   /**客户联系方式*/
   private String orderConsigneetelphone;
   /**收货地址*/
   private String orderConsigneeaddress;
   /**已关联溯源码数量*/
   private Integer orderTracecodenum;
   /**发货方式*/
   private Integer orderSendtype;

   private String orderCreateddate;

   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);
   }
}
