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_erp_receiving")
|
public class ErpReceiving implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value= "")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 生产单号
|
*/
|
@ApiModelProperty(value= "生产单号")
|
@TableField("produce_no")
|
private String produceNo;
|
|
/**
|
* 任务单号
|
*/
|
@ApiModelProperty(value= "任务单号")
|
@TableField("job_no")
|
private String jobNo;
|
|
/**
|
* 物料编码
|
*/
|
@ApiModelProperty(value= "物料编码")
|
private String matnr;
|
|
/**
|
* 物料名称
|
*/
|
@ApiModelProperty(value= "物料名称")
|
private String name;
|
|
/**
|
* 规格
|
*/
|
@ApiModelProperty(value= "规格")
|
private String specs;
|
|
/**
|
* 车间
|
*/
|
@ApiModelProperty(value= "车间")
|
private String workshop;
|
|
/**
|
* 数量
|
*/
|
@ApiModelProperty(value= "数量")
|
private Double anfme;
|
|
/**
|
* 计划开工时间
|
*/
|
@ApiModelProperty(value= "计划开工时间")
|
@TableField("start_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date startTime;
|
|
/**
|
* 计划完工时间
|
*/
|
@ApiModelProperty(value= "计划完工时间")
|
@TableField("end_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date endTime;
|
|
/**
|
* 是否同步
|
*/
|
@ApiModelProperty(value= "是否同步")
|
private Integer sync;
|
|
/**
|
* 是否退料
|
*/
|
@ApiModelProperty(value= "是否退料")
|
@TableField("matnr_return")
|
private Integer matnrReturn;
|
|
public ErpReceiving() {}
|
|
public ErpReceiving(String produceNo,String jobNo,String matnr,String name,String specs,String workshop,Double anfme,Date startTime,Date endTime,Integer sync,Integer matnrReturn) {
|
this.produceNo = produceNo;
|
this.jobNo = jobNo;
|
this.matnr = matnr;
|
this.name = name;
|
this.specs = specs;
|
this.workshop = workshop;
|
this.anfme = anfme;
|
this.startTime = startTime;
|
this.endTime = endTime;
|
this.sync = sync;
|
this.matnrReturn = matnrReturn;
|
}
|
|
// ErpReceiving erpReceiving = new ErpReceiving(
|
// null, // 生产单号
|
// null, // 任务单号
|
// null, // 物料编码
|
// null, // 物料名称
|
// null, // 规格
|
// null, // 车间
|
// null, // 数量
|
// null, // 计划开工时间
|
// null, // 计划完工时间
|
// null, // 是否同步
|
// null // 是否退料
|
// );
|
|
public String getStartTime$(){
|
if (Cools.isEmpty(this.startTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime);
|
}
|
|
public String getEndTime$(){
|
if (Cools.isEmpty(this.endTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
|
}
|
|
|
}
|