package com.zy.ints.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 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;
|
|
@Data
|
@TableName("lk_det_tb_bak")
|
public class LkDetTbBak implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 单据号码
|
*/
|
@ApiModelProperty(value = "单据号码")
|
@TableId(value = "bill_no", type = IdType.INPUT)
|
@TableField("bill_no")
|
private String billNo;
|
|
/**
|
* 品号
|
*/
|
@ApiModelProperty(value = "品号")
|
@TableId(value = "prd_no", type = IdType.INPUT)
|
@TableField("prd_no")
|
private String prdNo;
|
|
/**
|
* 单据类别
|
*/
|
@ApiModelProperty(value = "单据类别:" +
|
"TF_PSS:采购销售\n" +
|
"TF_IC:库存调拨\n" +
|
"TF_IJ:库存调整\n" +
|
"TF_ML:生产领料\n" +
|
"TF_MM0:生产缴库\n" +
|
"TF_TC:托工退回")
|
private String iokindid;
|
|
/**
|
* 增减符号:1(加,入库)、2(减,出库)
|
*/
|
@ApiModelProperty(value = "增减符号:1(加,入库)、2(减,出库)")
|
@TableField("add_id")
|
private String addId;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value = "数量")
|
private Double qty;
|
|
/**
|
* 货品特征
|
*/
|
@ApiModelProperty(value = "货品特征")
|
@TableId(value = "prd_mark", type = IdType.INPUT)
|
@TableField("prd_mark")
|
private String prdMark;
|
|
/**
|
* 仓库
|
*/
|
@ApiModelProperty(value = "仓库")
|
private String wh;
|
|
/**
|
* 日期
|
*/
|
@ApiModelProperty(value = "日期")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date billdate;
|
|
/**
|
* 状态:0(初始状态)、1(已接收)、2(异常)
|
*/
|
@ApiModelProperty(value = "状态:0(初始状态)、1(已接收)、2(异常)")
|
private Integer status;
|
|
/**
|
* 备用字段1
|
*/
|
@ApiModelProperty(value = "备用字段1")
|
private String temp1;
|
|
/**
|
* 备用字段2
|
*/
|
@ApiModelProperty(value = "备用字段2")
|
private String temp2;
|
|
/**
|
* 备用字段3
|
*/
|
@ApiModelProperty(value = "备用字段3")
|
private String temp3;
|
|
public LkDetTbBak() {
|
}
|
|
public LkDetTbBak(String billNo, String prdNo, String iokindid, String addId, Double qty, String prdMark, String wh, Date billdate, Integer status, String temp1, String temp2, String temp3) {
|
this.billNo = billNo;
|
this.prdNo = prdNo;
|
this.iokindid = iokindid;
|
this.addId = addId;
|
this.qty = qty;
|
this.prdMark = prdMark;
|
this.wh = wh;
|
this.billdate = billdate;
|
this.status = status;
|
this.temp1 = temp1;
|
this.temp2 = temp2;
|
this.temp3 = temp3;
|
}
|
|
// DetTb detTb = new DetTb(
|
// null, // id[非空]
|
// null, // 单据号码[非空]
|
// null, // 品号[非空]
|
// null, // 单据类别[非空]
|
// null, // 增减符号:1(加,入库)、2(减,出库)[非空]
|
// null, // 数量[非空]
|
// null, // 货品特征[非空]
|
// null, // 仓库
|
// null, // 日期[非空]
|
// null, // 状态:0(初始状态)、1(已接收)、2(异常)[非空]
|
// null, // 备用字段1
|
// null, // 备用字段2
|
// null // 备用字段3
|
// );
|
|
public String getBilldate$() {
|
if (Cools.isEmpty(this.billdate)) {
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.billdate);
|
}
|
|
public String getStatus$(){
|
if (null == this.status){ return null; }
|
switch (this.status){
|
case 0:
|
return "0(初始状态)";
|
case 1:
|
return "1(已接收)";
|
case 2:
|
return "2(异常)";
|
default:
|
return String.valueOf(this.status);
|
}
|
}
|
|
|
}
|