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 io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("asr_loc_detl_changelog")
|
public class LocDetlChangelog implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
@ApiModelProperty(value= "")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
|
@ApiModelProperty(value= "")
|
@TableField("action_type")
|
private String actionType;
|
|
@ApiModelProperty(value= "")
|
@TableField("loc_no")
|
private String locNo;
|
|
@ApiModelProperty(value= "")
|
private String zpallet;
|
|
@ApiModelProperty(value= "")
|
private String matnr;
|
|
@ApiModelProperty(value= "")
|
private String data;
|
|
@ApiModelProperty(value= "")
|
@TableField("change_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date changeTime;
|
|
@ApiModelProperty(value= "")
|
private Boolean processed;
|
|
public LocDetlChangelog() {}
|
|
public LocDetlChangelog(String actionType,String locNo,String zpallet,String matnr,String data,Date changeTime,Boolean processed) {
|
this.actionType = actionType;
|
this.locNo = locNo;
|
this.zpallet = zpallet;
|
this.matnr = matnr;
|
this.data = data;
|
this.changeTime = changeTime;
|
this.processed = processed;
|
}
|
|
// LocDetlChangelog locDetlChangelog = new LocDetlChangelog(
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null //
|
// );
|
|
public String getChangeTime$(){
|
if (Cools.isEmpty(this.changeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.changeTime);
|
}
|
|
|
}
|