| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import com.zy.asrs.service.NodeService; |
| | | import com.zy.system.entity.Host; |
| | | import com.zy.system.entity.User; |
| | |
| | | public class ManLocDetl implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * uuid |
| | | */ |
| | | @ApiModelProperty(value= "uuid") |
| | | @TableId(value = "uuid", type = IdType.ID_WORKER_STR) |
| | | @TableField("uuid") |
| | | private String uuid; |
| | | |
| | | /** |
| | | * 所属项目 |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 拥有者 |
| | | */ |
| | | @ApiModelProperty(value= "拥有者 1: 杰克 ") |
| | | private Integer owner; |
| | | |
| | | /** |
| | | * 货物形态:0:代采、1:仓储 |
| | | */ |
| | | @ApiModelProperty(value= "货物形态:0:代采、1:仓储") |
| | | private Integer payment; |
| | | |
| | | /** |
| | | * uuid时间戳 |
| | | */ |
| | | @ApiModelProperty(value= "uuid") |
| | | @TableId(value = "uuid", type = IdType.ID_WORKER_STR) |
| | | @TableField("uuid") |
| | | private String uuid; |
| | | |
| | | public ManLocDetl() {} |
| | | |
| | | public ManLocDetl(Long hostId, String locNo,Long nodeId,String zpallet,Double anfme,String matnr,String maktx,String name,String specs,String model,String batch,String unit,String barcode,Long docId,String docNum,String custName,Integer itemNum,Integer count,Double weight,Integer status,Long createBy,Date createTime,Long updateBy,Date modiTime,String memo,String uuid) { |
| | | public ManLocDetl(Long hostId, String locNo,Long nodeId,String zpallet,Double anfme,String matnr,String maktx,String name,String specs,String model,String batch,String unit,String barcode,Long docId,String docNum,String custName,Integer itemNum,Integer count,Double weight,Integer status,Long createBy,Date createTime,Long updateBy,Date modiTime,String memo,int owner ,int payment,String uuid) { |
| | | this.hostId = hostId; |
| | | this.nodeId = nodeId; |
| | | this.zpallet = zpallet; |
| | |
| | | this.updateBy = updateBy; |
| | | this.modiTime = modiTime; |
| | | this.memo = memo; |
| | | this.owner = owner; |
| | | this.payment = payment; |
| | | this.uuid = uuid; |
| | | } |
| | | |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | 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 getPayment$(){ |
| | | if (null == this.payment){ return null; } |
| | | switch (this.payment){ |
| | | case 1: |
| | | return "仓储"; |
| | | case 0: |
| | | return "代采"; |
| | | default: |
| | | return String.valueOf(this.payment); |
| | | } |
| | | } |
| | | |
| | | public String getHostId$(){ |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.selectById(this.hostId); |