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 java.io.Serializable;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
@Data
|
@TableName("bas_mat_code")
|
public class MatCode implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 产品代号
|
*/
|
@ApiModelProperty(value= "产品编码")
|
@TableId(value = "mat_no", type = IdType.INPUT)
|
@TableField("mat_no")
|
private String matNo;
|
|
/**
|
* 条码
|
*/
|
@ApiModelProperty(value= "条形码")
|
private String barcode;
|
|
/**
|
* 产品名称
|
*/
|
@ApiModelProperty(value= "产品名称")
|
@TableField("mat_name")
|
private String matName;
|
|
/**
|
* 规格
|
*/
|
@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= "")
|
private String str1;
|
|
/**
|
* 物料规格
|
*/
|
@ApiModelProperty(value= "")
|
private String str2;
|
|
|
/**
|
* 客户名称
|
*/
|
@ApiModelProperty(value= "")
|
private String str3;
|
|
/**
|
* 项目信息
|
*/
|
@ApiModelProperty(value= "")
|
private String str4;
|
/**
|
* 类别{1:原材料,2:成品,3:半成品}
|
*/
|
@ApiModelProperty(value= "")
|
private String str5;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value= "")
|
private Double str6;
|
|
@ApiModelProperty(value= "")
|
private String str7;
|
|
@ApiModelProperty(value= "")
|
private String str8;
|
|
@ApiModelProperty(value= "")
|
private String str9;
|
|
@ApiModelProperty(value= "")
|
private String str10;
|
|
@ApiModelProperty(value= "")
|
private Double num1;
|
|
@ApiModelProperty(value= "")
|
private Double num2;
|
|
@ApiModelProperty(value= "")
|
private Double num3;
|
|
@ApiModelProperty(value= "")
|
private Double num4;
|
|
@ApiModelProperty(value= "")
|
private Double num5;
|
|
@ApiModelProperty(value= "")
|
private Date date1;
|
|
/**
|
* 创建者
|
*/
|
@ApiModelProperty(value= "创建者")
|
@TableField("appe_user")
|
private Long appeUser;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@TableField("appe_time")
|
private Date appeTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
@TableField("modi_user")
|
private Long modiUser;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@TableField("modi_time")
|
private Date modiTime;
|
|
@ApiModelProperty(value= "")
|
private Short status;
|
|
public MatCode() {}
|
|
public String getStr5$(){
|
if (Cools.isEmpty(this.str5) ){
|
return "";
|
}
|
if (this.str5.equals("1")){
|
return "原材料";
|
}
|
if (this.str5.equals("2")){
|
return "成品";
|
}
|
if (this.str5.equals("3")){
|
return "半成品";
|
}
|
return "";
|
}
|
|
// MatCode matCode = new MatCode(
|
// 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 getMatNo() {
|
return matNo;
|
}
|
|
public void setMatNo(String matNo) {
|
this.matNo = matNo;
|
}
|
|
public String getBarcode() {
|
return barcode;
|
}
|
|
public void setBarcode(String barcode) {
|
this.barcode = barcode;
|
}
|
|
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 getMatName() {
|
return matName;
|
}
|
|
public void setMatName(String matName) {
|
this.matName = matName;
|
}
|
|
public String getStr1() {
|
return str1;
|
}
|
|
public void setStr1(String str1) {
|
this.str1 = str1;
|
}
|
|
public String getStr2() {
|
return str2;
|
}
|
|
public void setStr2(String str2) {
|
this.str2 = str2;
|
}
|
|
public String getStr3() {
|
return str3;
|
}
|
|
public void setStr3(String str3) {
|
this.str3 = str3;
|
}
|
|
public String getStr4() {
|
return str4;
|
}
|
|
public void setStr4(String str4) {
|
this.str4 = str4;
|
}
|
|
public String getStr5() {
|
return str5;
|
}
|
|
public void setStr5(String str5) {
|
this.str5 = str5;
|
}
|
|
|
public String getStr7() {
|
return str7;
|
}
|
|
public void setStr7(String str7) {
|
this.str7 = str7;
|
}
|
|
public String getStr8() {
|
return str8;
|
}
|
|
public void setStr8(String str8) {
|
this.str8 = str8;
|
}
|
|
public String getStr9() {
|
return str9;
|
}
|
|
public void setStr9(String str9) {
|
this.str9 = str9;
|
}
|
|
public String getStr10() {
|
return str10;
|
}
|
|
public void setStr10(String str10) {
|
this.str10 = str10;
|
}
|
|
public Double getNum1() {
|
return num1;
|
}
|
|
public void setNum1(Double num1) {
|
this.num1 = num1;
|
}
|
|
public Double getNum2() {
|
return num2;
|
}
|
|
public void setNum2(Double num2) {
|
this.num2 = num2;
|
}
|
|
public Double getNum3() {
|
return num3;
|
}
|
|
public void setNum3(Double num3) {
|
this.num3 = num3;
|
}
|
|
public Double getNum4() {
|
return num4;
|
}
|
|
public void setNum4(Double num4) {
|
this.num4 = num4;
|
}
|
|
public Double getNum5() {
|
return num5;
|
}
|
|
public void setNum5(Double num5) {
|
this.num5 = num5;
|
}
|
|
public Date getDate1() {
|
return date1;
|
}
|
|
public String getDate1$(){
|
if (Cools.isEmpty(this.date1)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.date1);
|
}
|
|
public void setDate1(Date date1) {
|
this.date1 = date1;
|
}
|
|
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;
|
}
|
|
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 Short getStatus() {
|
return status;
|
}
|
|
public void setStatus(Short status) {
|
this.status = status;
|
}
|
|
|
}
|