| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | @TableName("cust_wait_pakin") |
| | | public class WaitPakin implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 编号 |
| | | * 物料 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 托盘码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘码") |
| | | private String barcode; |
| | | |
| | | /** |
| | | * 物料编码 |
| | | */ |
| | | @ApiModelProperty(value= "物料编码") |
| | | @ApiModelProperty(value= "商品编号") |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 物料描述 |
| | | */ |
| | | @ApiModelProperty(value= "物料描述") |
| | | @ApiModelProperty(value= "商品名称") |
| | | private String maktx; |
| | | |
| | | /** |
| | | * 该字段是组托入库自动出发补空托盘标记 |
| | | * item_num |
| | | * 0:不需要补空托盘 |
| | | * 1:小托盘 |
| | | * 2:大托盘 |
| | | * 10:小托盘AGV任务下发成功 |
| | | * 20:大托盘AGV任务下发成功 |
| | | * 100:小托盘放货完成 |
| | | * 200:大托盘放货完成 |
| | | */ |
| | | @ApiModelProperty(value= "大小托盘") |
| | | @TableField("item_num") |
| | | private String itemNum; |
| | | /** |
| | | * agv状态 |
| | | * 0:无需调用AGV |
| | | * 1:等待调用AGV |
| | | * 2:AGV任务下发成功 |
| | | * 3:AGV任务完成 |
| | | * 4:给输送线下发入库指令 |
| | | */ |
| | | @ApiModelProperty(value= "agv状态") |
| | | @TableField("be_batch") |
| | | private Integer beBatch = 0; |
| | | |
| | | @ApiModelProperty(value= "发给AGV的任务号") |
| | | private String supp; |
| | | |
| | | @ApiModelProperty(value= "唯一码") |
| | | @TableField("supp_code") |
| | | private String suppCode; |
| | | |
| | | /** |
| | | * agv入库目标站点 |
| | | */ |
| | | @ApiModelProperty(value= "agv入库目标站点") |
| | | private String sku; |
| | | |
| | | // /** |
| | | // * 仓库号 |
| | | // */ |
| | | // @ApiModelProperty(value= "型号") |
| | | // private String type; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "条码") |
| | | private String color; |
| | | |
| | | // /** |
| | | // * 仓库号 |
| | | // */ |
| | | // @ApiModelProperty(value= "批号") |
| | | // private String supplier; |
| | | |
| | | // /** |
| | | // * 仓库号 |
| | | // */ |
| | | // @ApiModelProperty(value= "单据编号") |
| | | // private String warehouse; |
| | | |
| | | /** |
| | | * 仓库号 |
| | | */ |
| | | @ApiModelProperty(value= "品项数") |
| | | private String brand; |
| | | |
| | | /** |
| | | * 数量 |
| | |
| | | @ApiModelProperty(value= "数量") |
| | | private Double anfme; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @ApiModelProperty(value= "单位") |
| | | private String unit; |
| | | // /** |
| | | // * 单位 |
| | | // */ |
| | | // @ApiModelProperty(value= "单位") |
| | | // private String altme; |
| | | |
| | | /** |
| | | * 状态 |
| | | * 托盘条码 |
| | | */ |
| | | @ApiModelProperty(value= "托盘条码") |
| | | private String zpallet; |
| | | // |
| | | // /** |
| | | // * 用户ID |
| | | // */ |
| | | // @ApiModelProperty(value= "客户名称") |
| | | // private String bname; |
| | | |
| | | @ApiModelProperty(value= "库位号") |
| | | @TableField("loc_no") |
| | | private Date locNo; |
| | | |
| | | @ApiModelProperty(value= "状态") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value= "入出状态") |
| | | @TableField("io_status") |
| | | private String ioStatus; |
| | | |
| | | /** |
| | | * 备注 |
| | |
| | | @TableField("appe_user") |
| | | private Long appeUser; |
| | | |
| | | public WaitPakin() {} |
| | | |
| | | public WaitPakin(String barcode, String matnr, String maktx, Double anfme, String unit, String status, String memo, Date modiTime, Long modiUser, Date appeTime, Long appeUser) { |
| | | this.barcode = barcode; |
| | | this.matnr = matnr; |
| | | this.maktx = maktx; |
| | | this.anfme = anfme; |
| | | this.unit = unit; |
| | | this.status = status; |
| | | this.memo = memo; |
| | | this.modiTime = modiTime; |
| | | this.modiUser = modiUser; |
| | | this.appeTime = appeTime; |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | // WaitPakin waitPakin = new WaitPakin( |
| | | // null, // 托盘码 |
| | | // null, // 物料编码 |
| | | // null, // 物料描述 |
| | | // null, // 数量 |
| | | // null, // 单位 |
| | | // null, // 状态 |
| | | // null, // 备注 |
| | | // null, // 修改时间 |
| | | // null, // 修改人员 |
| | | // null, // 添加时间 |
| | | // null // 创建者 |
| | | // ); |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getBarcode() { |
| | | return barcode; |
| | | } |
| | | |
| | | public void setBarcode(String barcode) { |
| | | this.barcode = barcode; |
| | | } |
| | | |
| | | public String getMatnr() { |
| | | return matnr; |
| | | } |
| | | |
| | | public void setMatnr(String matnr) { |
| | | this.matnr = matnr; |
| | | } |
| | | |
| | | public String getMaktx() { |
| | | return maktx; |
| | | } |
| | | |
| | | public void setMaktx(String maktx) { |
| | | this.maktx = maktx; |
| | | } |
| | | |
| | | public Double getAnfme() { |
| | | return anfme; |
| | | } |
| | | |
| | | public void setAnfme(Double anfme) { |
| | | this.anfme = anfme; |
| | | } |
| | | |
| | | public String getUnit() { |
| | | return unit; |
| | | } |
| | | |
| | | public void setUnit(String unit) { |
| | | this.unit = unit; |
| | | } |
| | | |
| | | public String getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(String status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getMemo() { |
| | | return memo; |
| | | } |
| | | |
| | | public void setMemo(String memo) { |
| | | this.memo = memo; |
| | | } |
| | | |
| | | public Date getModiTime() { |
| | | return modiTime; |
| | | } |
| | | |
| | | public String getModiTime$(){ |
| | | if (Cools.isEmpty(this.modiTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime); |
| | | } |
| | | |
| | | public void setModiTime(Date modiTime) { |
| | | this.modiTime = modiTime; |
| | | } |
| | | |
| | | public Long getModiUser() { |
| | | return modiUser; |
| | | } |
| | | |
| | | public String getModiUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setModiUser(Long modiUser) { |
| | | this.modiUser = modiUser; |
| | | } |
| | | |
| | | public Date getAppeTime() { |
| | | return appeTime; |
| | | } |
| | | |
| | | public String getAppeTime$(){ |
| | |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public void setAppeTime(Date appeTime) { |
| | | this.appeTime = appeTime; |
| | | } |
| | | |
| | | public Long getAppeUser() { |
| | | return appeUser; |
| | | } |
| | | |
| | | public String getAppeUser$(){ |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public void setAppeUser(Long appeUser) { |
| | | this.appeUser = appeUser; |
| | | } |
| | | |
| | | |
| | | } |