| | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | @ApiModelProperty(value= "商品名称") |
| | | private String maktx; |
| | | |
| | | @ApiModelProperty(value= "批号") |
| | | @ApiModelProperty(value= "序列码") |
| | | private String batch; |
| | | |
| | | @ApiModelProperty(value= "单据编号") |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 物料类型{1:单品,2:高频,3:混放} |
| | | */ |
| | | @ApiModelProperty(value= "物料类型") |
| | | @TableField("mat_type") |
| | | private Integer matType; |
| | | |
| | | @ApiModelProperty(value= "客户信息ID") |
| | | private Long owner; |
| | | |
| | | public String getOwner$(){ |
| | | LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); |
| | | LocOwner locOwner = service.selectById(this.owner); |
| | | if (!Cools.isEmpty(locOwner)){ |
| | | return String.valueOf(locOwner.getOwner()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getBeBatch$(){ |
| | | if (null == this.beBatch){ return null; } |
| | | switch (this.beBatch){ |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getMatType$() { |
| | | if (this.matType == null) { |
| | | return ""; |
| | | } |
| | | switch (this.matType) { |
| | | case 1: |
| | | return "单品"; |
| | | case 2: |
| | | return "高频"; |
| | | case 3: |
| | | return "混放"; |
| | | default: |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | } |