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 org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
@TableName("asr_plt_barcode")
|
@Data
|
public class PltBarcode implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 条码
|
*/
|
@ApiModelProperty(value= "条码")
|
@TableId(value = "barcode", type = IdType.INPUT)
|
private String barcode;
|
|
/**
|
* 单据编号
|
*/
|
@ApiModelProperty(value= "单据编号")
|
@TableId(value = "bill_no", type = IdType.INPUT)
|
@TableField("bill_no")
|
private String billNo;
|
|
/**
|
* 序号
|
*/
|
@ApiModelProperty(value= "序号")
|
@TableId(value = "seq_no", type = IdType.INPUT)
|
@TableField("seq_no")
|
private Integer seqNo;
|
|
/**
|
* 单据类型 1: 采购入库 2: 生产入库 3: 调拨入库 4: 销售退回入库 5: 其他入库
|
*/
|
@ApiModelProperty(value= "单据类型 1: 采购入库 2: 生产入库 3: 调拨入库 4: 销售退回入库 5: 其他入库 ")
|
@TableField("bill_type")
|
private Integer billType;
|
|
/**
|
* 物料编码
|
*/
|
@ApiModelProperty(value= "物料编码")
|
@TableField("mat_no")
|
private String matNo;
|
|
/**
|
* 物料名称
|
*/
|
@ApiModelProperty(value= "物料名称")
|
@TableField("mat_name")
|
private String matName;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value= "数量")
|
private Double qty;
|
|
/**
|
* 总数量
|
*/
|
@ApiModelProperty(value= "总数量")
|
@TableField("all_qty")
|
private Double allQty;
|
|
/**
|
* 库位号
|
*/
|
@ApiModelProperty(value= "库位号")
|
@TableField("loc_no")
|
private String locNo;
|
|
/**
|
* 规格
|
*/
|
@ApiModelProperty(value= "规格")
|
private String specs;
|
|
/**
|
* 单位
|
*/
|
@ApiModelProperty(value= "单位")
|
private String unit;
|
|
/**
|
* 尺寸
|
*/
|
@ApiModelProperty(value= "尺寸")
|
private String size;
|
|
/**
|
* 颜色
|
*/
|
@ApiModelProperty(value= "颜色")
|
private String color;
|
|
/**
|
* 单重
|
*/
|
@ApiModelProperty(value= "单重")
|
private Double weight;
|
/**
|
* 总重
|
*/
|
@ApiModelProperty(value= "总重量")
|
@TableField("all_weight")
|
private Double allWeight;
|
/**
|
* 来源
|
*/
|
@ApiModelProperty(value="来源")
|
private String source;
|
/**
|
* 批号
|
*/
|
@ApiModelProperty(value = "批号")
|
private String supplier;
|
/**
|
* 供应商
|
*/
|
@ApiModelProperty(value = "供应商")
|
private String vendor;
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
// @ApiModelProperty(value= "批号")
|
// private String supplier;
|
|
/**
|
* ERP连线 0: 非连线 1: ERP连线
|
*/
|
@ApiModelProperty(value= "ERP连线 0: 非连线 1: ERP连线 ")
|
@TableField("link_erp")
|
private Integer linkErp;
|
|
/**
|
* 完成状态 0: 待处理 1: 入库中 2: 入库完成 3: 取消入库
|
*/
|
@ApiModelProperty(value= "完成状态 0: 待处理 1: 入库中 2: 入库完成 3: 取消入库 ")
|
@TableField("io_status")
|
private Integer ioStatus;
|
|
/**
|
* 完成时间
|
*/
|
@ApiModelProperty(value= "完成时间")
|
@TableField("io_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date ioTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("modi_user")
|
private Long modiUser;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("modi_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date modiTime;
|
|
/**
|
* 建档人员
|
*/
|
@ApiModelProperty(value= "建档人员")
|
@TableField("appe_user")
|
private Long appeUser;
|
|
/**
|
* 建档时间
|
*/
|
@ApiModelProperty(value= "建档时间")
|
@TableField("appe_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date appeTime;
|
|
/**
|
* 单箱数量
|
*/
|
@ApiModelProperty(value = "单箱数量")
|
@TableField("qty_box")
|
private Double qtyBox;
|
|
public PltBarcode() {}
|
|
public PltBarcode(String barcode,Double allQty,Double qtyBox,String source,String supplier,String vendor,Double allWeight,String billNo,Integer seqNo,Integer billType,String matNo,String matName,Double qty,String locNo,String specs,String unit,String size,String color,Double weight,String memo,Integer linkErp,Integer ioStatus,Date ioTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime) {
|
this.barcode = barcode;
|
this.billNo = billNo;
|
this.seqNo = seqNo;
|
this.billType = billType;
|
this.matNo = matNo;
|
this.matName = matName;
|
this.qty = qty;
|
this.locNo = locNo;
|
this.specs = specs;
|
this.unit = unit;
|
this.size = size;
|
this.color = color;
|
this.weight = weight;
|
this.memo = memo;
|
this.linkErp = linkErp;
|
this.ioStatus = ioStatus;
|
this.ioTime = ioTime;
|
this.modiUser = modiUser;
|
this.modiTime = modiTime;
|
this.appeUser = appeUser;
|
this.appeTime = appeTime;
|
this.allQty=allQty;
|
this.allWeight=allWeight;
|
this.source=source;
|
this.supplier=supplier;
|
this.vendor=vendor;
|
this.qtyBox=qtyBox;
|
}
|
|
// PltBarcode pltBarcode = new PltBarcode(
|
// null, // 条码[非空]
|
// null, // 单据编号[非空]
|
// null, // 序号[非空]
|
// null, // 单据类型
|
// null, // 物料编码[非空]
|
// null, // 物料名称[非空]
|
// null, // 数量
|
// null, // 库位号
|
// null, // 规格
|
// null, // 单位
|
// null, // 尺寸
|
// null, // 颜色
|
// null, // 单重
|
// null, // 备注
|
// null, // ERP连线
|
// null, // 完成状态
|
// null, // 完成时间
|
// null, // 修改人员
|
// null, // 修改时间
|
// null, // 建档人员
|
// null // 建档时间
|
// );
|
|
public String getBarcode() {
|
return barcode;
|
}
|
|
public void setBarcode(String barcode) {
|
this.barcode = barcode;
|
}
|
|
public double getAllWeight(){return allWeight;}
|
|
public void setAllWeight(Double allweight){this.allWeight=allweight;}
|
|
public Double getAllQty(){return allQty;}
|
|
public void setAllQty(Double allqty){this.allQty=allqty;}
|
|
public String getBillNo() {
|
return billNo;
|
}
|
|
public void setBillNo(String billNo) {
|
this.billNo = billNo;
|
}
|
|
public Integer getSeqNo() {
|
return seqNo;
|
}
|
|
public void setSeqNo(Integer seqNo) {
|
this.seqNo = seqNo;
|
}
|
|
public Integer getBillType() {
|
return billType;
|
}
|
|
public String getBillType$(){
|
if (null == this.billType){ return null; }
|
switch (this.billType){
|
case 1:
|
return "采购入库";
|
case 2:
|
return "生产入库";
|
case 3:
|
return "调拨入库";
|
case 4:
|
return "销售退回入库";
|
case 5:
|
return "其他入库";
|
default:
|
return String.valueOf(this.billType);
|
}
|
}
|
|
public void setBillType(Integer billType) {
|
this.billType = billType;
|
}
|
|
public String getMatNo() {
|
return matNo;
|
}
|
|
public void setMatNo(String matNo) {
|
this.matNo = matNo;
|
}
|
|
public String getMatName() {
|
return matName;
|
}
|
|
public void setMatName(String matName) {
|
this.matName = matName;
|
}
|
|
public Double getQty() {
|
return qty;
|
}
|
|
public void setQty(Double qty) {
|
this.qty = qty;
|
}
|
|
public String getLocNo() {
|
return locNo;
|
}
|
|
public void setLocNo(String locNo) {
|
this.locNo = locNo;
|
}
|
|
public String getSpecs() {
|
return specs;
|
}
|
|
public void setSpecs(String specs) {
|
this.specs = specs;
|
}
|
|
public String getUnit() {
|
return unit;
|
}
|
|
public void setUnit(String unit) {
|
this.unit = unit;
|
}
|
|
public String getSize() {
|
return size;
|
}
|
|
public void setSize(String size) {
|
this.size = size;
|
}
|
|
public String getColor() {
|
return color;
|
}
|
|
public void setColor(String color) {
|
this.color = color;
|
}
|
|
public Double getWeight() {
|
return weight;
|
}
|
|
public void setWeight(Double weight) {
|
this.weight = weight;
|
}
|
|
// public String getSupplier() {
|
// return supplier;
|
// }
|
//
|
// public void setSupplier(String supplier) {
|
// this.supplier = supplier;
|
// }
|
|
public String getMemo() {
|
return memo;
|
}
|
|
public void setMemo(String memo) {
|
this.memo = memo;
|
}
|
|
public Integer getLinkErp() {
|
return linkErp;
|
}
|
|
public String getLinkErp$(){
|
if (null == this.linkErp){ return null; }
|
switch (this.linkErp){
|
case 0:
|
return "非连线";
|
case 1:
|
return "ERP连线";
|
default:
|
return String.valueOf(this.linkErp);
|
}
|
}
|
|
public void setLinkErp(Integer linkErp) {
|
this.linkErp = linkErp;
|
}
|
|
public Integer getIoStatus() {
|
return ioStatus;
|
}
|
|
public String getIoStatus$(){
|
if (null == this.ioStatus){ return null; }
|
switch (this.ioStatus){
|
case 0:
|
return "待处理";
|
case 1:
|
return "入库中";
|
case 2:
|
return "入库完成";
|
case 3:
|
return "取消入库";
|
default:
|
return String.valueOf(this.ioStatus);
|
}
|
}
|
|
public void setIoStatus(Integer ioStatus) {
|
this.ioStatus = ioStatus;
|
}
|
|
public Date getIoTime() {
|
return ioTime;
|
}
|
|
public String getIoTime$(){
|
if (Cools.isEmpty(this.ioTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
|
}
|
|
public void setIoTime(Date ioTime) {
|
this.ioTime = ioTime;
|
}
|
|
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 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 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;
|
}
|
|
public Date getAppeTime() {
|
return appeTime;
|
}
|
|
public String getAppeTime$(){
|
if (Cools.isEmpty(this.appeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
|
}
|
|
public void setAppeTime(Date appeTime) {
|
this.appeTime = appeTime;
|
}
|
|
|
}
|