|  |  | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableField; | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
 |  |  | import com.baomidou.mybatisplus.mapper.EntityWrapper; | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.core.common.SpringUtils; | 
 |  |  | import com.zy.asrs.service.BasBoxTypeService; | 
 |  |  | import com.zy.common.utils.Synchro; | 
 |  |  | import io.swagger.annotations.ApiModelProperty; | 
 |  |  | import lombok.Data; | 
 |  |  | 
 |  |  |     @ApiModelProperty(value= "单位") | 
 |  |  |     private String unit; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "单价") | 
 |  |  |     @ApiModelProperty(value= "单价 长度") | 
 |  |  |     private Double price; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "sku") | 
 |  |  | 
 |  |  |     @ApiModelProperty(value= "长度") | 
 |  |  |     private Double length; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "体积") | 
 |  |  |     @ApiModelProperty(value= "体积  毛重") | 
 |  |  |     private Double volume; | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "三方编码") | 
 |  |  | 
 |  |  |  | 
 |  |  |     @ApiModelProperty(value= "备注") | 
 |  |  |     private String memo; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 卷信息ID | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "卷信息ID") | 
 |  |  |     @TableField("roll_up") | 
 |  |  |     private Long rollUp; | 
 |  |  |  | 
 |  |  |     public String getBeBatch$(){ | 
 |  |  |         if (null == this.beBatch){ return null; } | 
 |  |  | 
 |  |  |     public void sync(Object source) { | 
 |  |  |         Synchro.Copy(source, this); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public String getBrand$(){ | 
 |  |  |         BasBoxTypeService basBoxTypeService = SpringUtils.getBean(BasBoxTypeService.class); | 
 |  |  |         BasBoxType basBoxType = basBoxTypeService.selectOne(new EntityWrapper<BasBoxType>().eq("box_type", this.brand)); | 
 |  |  |         if (!Cools.isEmpty(basBoxType)){ | 
 |  |  |             return String.valueOf(basBoxType.getBoxSpecs()); | 
 |  |  |         } | 
 |  |  |         return this.brand; | 
 |  |  |     } | 
 |  |  | } |