package com.zy.asrs.entity;
|
|
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("man_mat_v2")
|
public class MatV2 implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@ApiModelProperty(value= "")
|
private String uuid;
|
|
@ApiModelProperty(value= "")
|
@TableField("tag_id")
|
private String tagId;
|
|
@ApiModelProperty(value= "")
|
private String matnr;
|
|
@ApiModelProperty(value= "")
|
private String maktx;
|
|
@ApiModelProperty(value= "")
|
private String name;
|
|
@ApiModelProperty(value= "")
|
private String specs;
|
|
@ApiModelProperty(value= "")
|
private String model;
|
|
@ApiModelProperty(value= "")
|
private String color;
|
|
@ApiModelProperty(value= "")
|
private String brand;
|
|
@ApiModelProperty(value= "")
|
private String unit;
|
|
@ApiModelProperty(value= "")
|
private Double price;
|
|
@ApiModelProperty(value= "")
|
private String sku;
|
|
@ApiModelProperty(value= "")
|
private Double units;
|
|
@ApiModelProperty(value= "")
|
private String barcode;
|
|
@ApiModelProperty(value= "")
|
private String origin;
|
|
@ApiModelProperty(value= "")
|
private String manu;
|
|
@ApiModelProperty(value= "")
|
@TableField("manu_date")
|
private String manuDate;
|
|
@ApiModelProperty(value= "")
|
@TableField("item_num")
|
private String itemNum;
|
|
@ApiModelProperty(value= "")
|
@TableField("safe_qty")
|
private Double safeQty;
|
|
@ApiModelProperty(value= "")
|
private Double weight;
|
|
@ApiModelProperty(value= "")
|
private Double length;
|
|
@ApiModelProperty(value= "")
|
private Double volume;
|
|
@ApiModelProperty(value= "")
|
@TableField("three_code")
|
private String threeCode;
|
|
@ApiModelProperty(value= "")
|
private String supp;
|
|
@ApiModelProperty(value= "")
|
@TableField("supp_code")
|
private String suppCode;
|
|
@ApiModelProperty(value= "")
|
@TableField("be_batch")
|
private Integer beBatch;
|
|
@ApiModelProperty(value= "")
|
@TableField("dead_time")
|
private String deadTime;
|
|
@ApiModelProperty(value= "")
|
@TableField("dead_warn")
|
private Integer deadWarn;
|
|
@ApiModelProperty(value= "")
|
private Integer source;
|
|
@ApiModelProperty(value= "")
|
private Integer inspect;
|
|
@ApiModelProperty(value= "")
|
private Integer danger;
|
|
@ApiModelProperty(value= "")
|
private Integer status;
|
|
@ApiModelProperty(value= "")
|
@TableField("create_by")
|
private Long createBy;
|
|
@ApiModelProperty(value= "")
|
@TableField("create_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
@ApiModelProperty(value= "")
|
@TableField("update_by")
|
private Long updateBy;
|
|
@ApiModelProperty(value= "")
|
@TableField("update_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
@ApiModelProperty(value= "")
|
private String memo;
|
|
public MatV2() {}
|
|
public MatV2(String uuid,String tagId,String matnr,String maktx,String name,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
|
this.uuid = uuid;
|
this.tagId = tagId;
|
this.matnr = matnr;
|
this.maktx = maktx;
|
this.name = name;
|
this.specs = specs;
|
this.model = model;
|
this.color = color;
|
this.brand = brand;
|
this.unit = unit;
|
this.price = price;
|
this.sku = sku;
|
this.units = units;
|
this.barcode = barcode;
|
this.origin = origin;
|
this.manu = manu;
|
this.manuDate = manuDate;
|
this.itemNum = itemNum;
|
this.safeQty = safeQty;
|
this.weight = weight;
|
this.length = length;
|
this.volume = volume;
|
this.threeCode = threeCode;
|
this.supp = supp;
|
this.suppCode = suppCode;
|
this.beBatch = beBatch;
|
this.deadTime = deadTime;
|
this.deadWarn = deadWarn;
|
this.source = source;
|
this.inspect = inspect;
|
this.danger = danger;
|
this.status = status;
|
this.createBy = createBy;
|
this.createTime = createTime;
|
this.updateBy = updateBy;
|
this.updateTime = updateTime;
|
this.memo = memo;
|
}
|
|
// MatV2 matV2 = new MatV2(
|
// null, //
|
// null, //
|
// null, // [非空]
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, // [非空]
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null //
|
// );
|
|
public String getCreateTime$(){
|
if (Cools.isEmpty(this.createTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
|
}
|
|
public String getUpdateTime$(){
|
if (Cools.isEmpty(this.updateTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
|
}
|
|
|
}
|