|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 仓库号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value= "规格") | 
|---|
|  |  |  | private String lgnum; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 仓库号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @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 String unit; | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|