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 io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
/**
|
* 生产领料单实体类
|
*/
|
@TableName("erp_material_receive")
|
@Data
|
public class MaterialReceive implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value = "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 生产单号
|
*/
|
@ApiModelProperty(value = "生产单号")
|
@TableField("so_code")
|
private String soCode;
|
|
/**
|
* 物料编码
|
*/
|
@ApiModelProperty(value = "物料编码")
|
@TableField("inv_code")
|
private String invCode;
|
|
/**
|
* 物料名称
|
*/
|
@ApiModelProperty(value = "物料名称")
|
@TableField("inv_name")
|
private String invName;
|
|
/**
|
* 规格型号
|
*/
|
@ApiModelProperty(value = "规格型号")
|
@TableField("inv_std")
|
private String invStd;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value = "数量")
|
@TableField("qty")
|
private BigDecimal qty;
|
|
/**
|
* 单位
|
*/
|
@ApiModelProperty(value = "单位")
|
@TableField("unit")
|
private String unit;
|
|
/**
|
* 部门名称
|
*/
|
@ApiModelProperty(value = "部门名称")
|
@TableField("dep_name")
|
private String depName;
|
|
/**
|
* 部门编码
|
*/
|
@ApiModelProperty(value = "部门编码")
|
@TableField("dep_code")
|
private String depCode;
|
|
/**
|
* 部门ID
|
*/
|
@ApiModelProperty(value = "部门ID")
|
@TableField("dep_id")
|
private Integer depId;
|
|
/**
|
* 仓库ID
|
*/
|
@ApiModelProperty(value = "仓库ID")
|
@TableField("wh_id")
|
private Integer whId;
|
|
/**
|
* 仓库名称
|
*/
|
@ApiModelProperty(value = "仓库名称")
|
@TableField("wh_name")
|
private String whName;
|
|
/**
|
* 计划开工日期
|
*/
|
@ApiModelProperty(value = "计划开工日期")
|
@TableField("fplancommitdate")
|
private Date fplancommitdate;
|
|
/**
|
* ERP内部ID
|
*/
|
@ApiModelProperty(value = "ERP内部ID")
|
@TableField("finterid")
|
private Integer finterid;
|
|
/**
|
* 出库数量
|
*/
|
@ApiModelProperty(value = "出库数量")
|
@TableField("out_qty")
|
private BigDecimal outQty;
|
|
/**
|
* 剩余数量
|
*/
|
@ApiModelProperty(value = "剩余数量")
|
@TableField("remain_qty")
|
private BigDecimal remainQty;
|
|
/**
|
* 是否全部出库完成 0-未完成 1-已完成
|
*/
|
@ApiModelProperty(value = "是否全部出库完成")
|
@TableField("is_all_out")
|
private Integer isAllOut;
|
|
/**
|
* 同步时间
|
*/
|
@ApiModelProperty(value = "同步时间")
|
@TableField("sync_time")
|
private Date syncTime;
|
|
/**
|
* 创建时间
|
*/
|
@ApiModelProperty(value = "创建时间")
|
@TableField("create_time")
|
private Date createTime;
|
|
/**
|
* 更新时间
|
*/
|
@ApiModelProperty(value = "更新时间")
|
@TableField("update_time")
|
private Date updateTime;
|
|
/**
|
* 任务单号
|
*/
|
@ApiModelProperty(value = "任务单号")
|
@TableField("fbillno")
|
private String fbillno;
|
|
/**
|
* 物料ID
|
*/
|
@ApiModelProperty(value = "物料ID")
|
@TableField("fitemid")
|
private Integer fitemid;
|
|
/**
|
* 数量(FQty)
|
*/
|
@ApiModelProperty(value = "数量(FQty)")
|
@TableField("fqty")
|
private BigDecimal fqty;
|
|
/**
|
* 辅助数量
|
*/
|
@ApiModelProperty(value = "辅助数量")
|
@TableField("fauxqty")
|
private BigDecimal fauxqty;
|
|
/**
|
* 单位ID
|
*/
|
@ApiModelProperty(value = "单位ID")
|
@TableField("funitid")
|
private Integer funitid;
|
|
/**
|
* 车间ID
|
*/
|
@ApiModelProperty(value = "车间ID")
|
@TableField("fworkshop")
|
private Integer fworkshop;
|
|
/**
|
* 计划完工日期
|
*/
|
@ApiModelProperty(value = "计划完工日期")
|
@TableField("fplanfinishdate")
|
private Date fplanfinishdate;
|
|
/**
|
* 扩展数据(JSON格式,存储其他字段)
|
*/
|
@ApiModelProperty(value = "扩展数据")
|
@TableField("ext_data")
|
private String extData;
|
|
public String getFplancommitdate$() {
|
if (Cools.isEmpty(this.fplancommitdate)) {
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd").format(this.fplancommitdate);
|
}
|
|
public String getSyncTime$() {
|
if (Cools.isEmpty(this.syncTime)) {
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.syncTime);
|
}
|
|
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);
|
}
|
|
public String getFplanfinishdate$() {
|
if (Cools.isEmpty(this.fplanfinishdate)) {
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd").format(this.fplanfinishdate);
|
}
|
}
|