package com.zy.asrs.common.wms.entity;
|
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import org.springframework.format.annotation.DateTimeFormat;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.zy.asrs.framework.common.Cools;
|
import com.zy.asrs.framework.common.SpringUtils;
|
import com.zy.asrs.common.sys.entity.User;
|
import com.zy.asrs.common.sys.entity.Host;
|
import com.zy.asrs.common.sys.service.UserService;
|
import com.zy.asrs.common.sys.service.HostService;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
@TableName("wms_mat_code")
|
public class MatCode implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 物料编码
|
*/
|
@ApiModelProperty(value= "物料编码")
|
@TableId(value = "mat_no", type = IdType.INPUT)
|
private String matNo;
|
|
/**
|
* 条码
|
*/
|
@ApiModelProperty(value= "条码")
|
private String barcode;
|
|
/**
|
* 物料名称
|
*/
|
@ApiModelProperty(value= "物料名称")
|
private String matName;
|
|
/**
|
* 物料单位
|
*/
|
@ApiModelProperty(value= "物料单位")
|
private String str1;
|
|
/**
|
* 物料规格
|
*/
|
@ApiModelProperty(value= "物料规格")
|
private String str2;
|
|
@ApiModelProperty(value= "")
|
private String str3;
|
|
@ApiModelProperty(value= "")
|
private String str4;
|
|
@ApiModelProperty(value= "")
|
private String str5;
|
|
@ApiModelProperty(value= "")
|
private String str6;
|
|
@ApiModelProperty(value= "")
|
private String str7;
|
|
@ApiModelProperty(value= "")
|
private String str8;
|
|
@ApiModelProperty(value= "")
|
private String str9;
|
|
@ApiModelProperty(value= "")
|
private String str10;
|
|
@ApiModelProperty(value= "")
|
private String str11;
|
|
@ApiModelProperty(value= "")
|
private String str12;
|
|
@ApiModelProperty(value= "")
|
private String str13;
|
|
@ApiModelProperty(value= "")
|
private String str14;
|
|
@ApiModelProperty(value= "")
|
private String str15;
|
|
@ApiModelProperty(value= "")
|
private String str16;
|
|
@ApiModelProperty(value= "")
|
private String str17;
|
|
@ApiModelProperty(value= "")
|
private String str18;
|
|
@ApiModelProperty(value= "")
|
private String str19;
|
|
@ApiModelProperty(value= "")
|
private String str20;
|
|
@ApiModelProperty(value= "")
|
private String str21;
|
|
@ApiModelProperty(value= "")
|
private String str22;
|
|
@ApiModelProperty(value= "")
|
private String str23;
|
|
@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 Double num6;
|
|
@ApiModelProperty(value= "")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date date1;
|
|
/**
|
* 创建者
|
*/
|
@ApiModelProperty(value= "创建者")
|
private Long appeUser;
|
|
/**
|
* 添加时间
|
*/
|
@ApiModelProperty(value= "添加时间")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date appeTime;
|
|
/**
|
* 修改人员
|
*/
|
@ApiModelProperty(value= "修改人员")
|
private Long modiUser;
|
|
/**
|
* 修改时间
|
*/
|
@ApiModelProperty(value= "修改时间")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date modiTime;
|
|
@ApiModelProperty(value= "")
|
private Short status;
|
|
public MatCode() {}
|
|
public MatCode(String matNo,String barcode,String matName,String str1,String str2,String str3,String str4,String str5,String str6,String str7,String str8,String str9,String str10,String str11,String str12,String str13,String str14,String str15,String str16,String str17,String str18,String str19,String str20,String str21,String str22,String str23,Double num1,Double num2,Double num3,Double num4,Double num5,Double num6,Date date1,Long appeUser,Date appeTime,Long modiUser,Date modiTime,Short status) {
|
this.matNo = matNo;
|
this.barcode = barcode;
|
this.matName = matName;
|
this.str1 = str1;
|
this.str2 = str2;
|
this.str3 = str3;
|
this.str4 = str4;
|
this.str5 = str5;
|
this.str6 = str6;
|
this.str7 = str7;
|
this.str8 = str8;
|
this.str9 = str9;
|
this.str10 = str10;
|
this.str11 = str11;
|
this.str12 = str12;
|
this.str13 = str13;
|
this.str14 = str14;
|
this.str15 = str15;
|
this.str16 = str16;
|
this.str17 = str17;
|
this.str18 = str18;
|
this.str19 = str19;
|
this.str20 = str20;
|
this.str21 = str21;
|
this.str22 = str22;
|
this.str23 = str23;
|
this.num1 = num1;
|
this.num2 = num2;
|
this.num3 = num3;
|
this.num4 = num4;
|
this.num5 = num5;
|
this.num6 = num6;
|
this.date1 = date1;
|
this.appeUser = appeUser;
|
this.appeTime = appeTime;
|
this.modiUser = modiUser;
|
this.modiTime = modiTime;
|
this.status = status;
|
}
|
|
// 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, // 修改时间
|
// null //
|
// );
|
|
public String getDate1$(){
|
if (Cools.isEmpty(this.date1)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.date1);
|
}
|
|
public String getAppeUser$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.getById(this.appeUser);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getAppeTime$(){
|
if (Cools.isEmpty(this.appeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
|
}
|
|
public String getModiUser$(){
|
UserService service = SpringUtils.getBean(UserService.class);
|
User user = service.getById(this.modiUser);
|
if (!Cools.isEmpty(user)){
|
return String.valueOf(user.getNickname());
|
}
|
return null;
|
}
|
|
public String getModiTime$(){
|
if (Cools.isEmpty(this.modiTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.modiTime);
|
}
|
|
|
}
|