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") public class Mat 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 Long 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= "") @TableField("man_length") private Double manLength; @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; @ApiModelProperty(value= "") @TableField("store_max") private Double storeMax; @ApiModelProperty(value= "") @TableField("store_min") private Double storeMin; @ApiModelProperty(value= "") @TableField("store_max_date") private Double storeMaxDate; @ApiModelProperty(value= "") private Double width; @ApiModelProperty(value= "") private Double height; public Mat() {} public Mat(String uuid,Long 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 manLength,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,Double storeMax,Double storeMin,Double storeMaxDate,Double width,Double height) { 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.manLength = manLength; 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; this.storeMax = storeMax; this.storeMin = storeMin; this.storeMaxDate = storeMaxDate; this.width = width; this.height = height; } // Mat mat = new Mat( // 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, // // 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); } }