package com.zy.asrs.entity;
|
|
import com.alibaba.excel.annotation.ExcelIgnore;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
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_bom_mat")
|
public class BomMat implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
@ExcelIgnore
|
private Long id;
|
|
/**
|
* 部件品号
|
*/
|
@ApiModelProperty(value= "部件品号")
|
@TableField("unit_num")
|
@ExcelProperty(value = "部件品号")
|
private String unitNum;
|
|
/**
|
* 部件品名
|
*/
|
@ApiModelProperty(value= "部件品名")
|
@TableField("unit_name")
|
@ExcelProperty(value = "部件品名")
|
private String unitName;
|
|
/**
|
* 部件规格
|
*/
|
@ApiModelProperty(value= "部件规格")
|
@TableField("unit_space")
|
@ExcelProperty(value = "部件规格")
|
private String unitSpace;
|
|
/**
|
* 组件品号
|
*/
|
@ApiModelProperty(value= "组件品号")
|
@TableField("bom_num")
|
@ExcelProperty(value = "组件品号")
|
private String bomNum;
|
|
/**
|
* 组件品名
|
*/
|
@ApiModelProperty(value= "组件品名")
|
@TableField("bom_name")
|
@ExcelProperty(value = "组件品名")
|
private String bomName;
|
|
/**
|
* 组件规格
|
*/
|
@ApiModelProperty(value= "组件规格")
|
@TableField("bom_space")
|
@ExcelProperty(value = "组件规格")
|
private String bomSpace;
|
|
/**
|
* 元件品号
|
*/
|
@ApiModelProperty(value= "元件品号")
|
@TableField("element_num")
|
@ExcelProperty(value = "元件品号")
|
private String elementNum;
|
|
/**
|
* 元件品名
|
*/
|
@ApiModelProperty(value= "元件品名")
|
@TableField("element_name")
|
@ExcelProperty(value = "元件品名")
|
private String elementName;
|
|
/**
|
* 元件规格
|
*/
|
@ApiModelProperty(value= "元件规格")
|
@TableField("element_space")
|
@ExcelProperty(value = "元件规格")
|
private String elementSpace;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
@ExcelProperty(value = "备注")
|
private String memo;
|
|
/**
|
* 套数
|
*/
|
@ApiModelProperty(value= "套数")
|
@TableField("bom_count")
|
@ExcelProperty(value = "套数")
|
private Double bomCount;
|
|
/**
|
* 组成用量
|
*/
|
@ApiModelProperty(value= "组成用量")
|
@TableField("bom_anfme")
|
@ExcelProperty(value = "组成用量")
|
private Double bomAnfme;
|
|
/**
|
* 托盘数量
|
*/
|
@ApiModelProperty(value= "托盘数量")
|
@TableField("zpallet_anfme")
|
@ExcelProperty(value = "托盘数量")
|
@ExcelIgnore
|
private Double zpalletAnfme;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("modi_user")
|
@ExcelIgnore
|
private Long modiUser;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("modi_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@ExcelIgnore
|
private Date modiTime;
|
|
/**
|
* 添加人员
|
*/
|
@ApiModelProperty(value= "添加人员")
|
@TableField("appe_user")
|
@ExcelIgnore
|
private Long appeUser;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("appe_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
@ExcelIgnore
|
private Date appeTime;
|
|
/**
|
* 是否删除
|
*/
|
@ApiModelProperty(value= "是否删除")
|
@TableField("is_deleted")
|
@ExcelIgnore
|
private Short isDeleted;
|
|
public BomMat() {}
|
|
public BomMat(Long id,String unitNum,String unitName,String unitSpace,String bomNum,String bomName,String bomSpace,String elementNum,String elementName,String elementSpace,String memo,Double bomCount,Double bomAnfme,Double zpalletAnfme,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Short isDeleted) {
|
this.id = id;
|
this.unitNum = unitNum;
|
this.unitName = unitName;
|
this.unitSpace = unitSpace;
|
this.bomNum = bomNum;
|
this.bomName = bomName;
|
this.bomSpace = bomSpace;
|
this.elementNum = elementNum;
|
this.elementName = elementName;
|
this.elementSpace = elementSpace;
|
this.memo = memo;
|
this.bomCount = bomCount;
|
this.bomAnfme = bomAnfme;
|
this.zpalletAnfme = zpalletAnfme;
|
this.modiUser = modiUser;
|
this.modiTime = modiTime;
|
this.appeUser = appeUser;
|
this.appeTime = appeTime;
|
this.isDeleted = isDeleted;
|
}
|
|
// BomMat bomMat = new BomMat(
|
// null, // ID[非空]
|
// null, // 部件品号
|
// null, // 部件品名
|
// null, // 部件规格
|
// null, // 组件品号
|
// null, // 组件品名
|
// null, // 组件规格
|
// null, // 元件品号
|
// null, // 元件品名
|
// null, // 元件规格
|
// null, // 备注
|
// null, // 套数
|
// null, // 组成用量
|
// null, // 托盘数量
|
// null, // 修改人员
|
// null, // 修改时间
|
// null, // 添加人员
|
// null, // 添加时间
|
// null // 是否删除
|
// );
|
|
public String getModiTime$(){
|
if (Cools.isEmpty(this.modiTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
|
}
|
|
public String getAppeTime$(){
|
if (Cools.isEmpty(this.appeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
|
}
|
|
|
}
|