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("sys_saas_log")
|
public class SaasLog implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@ApiModelProperty(value= "id")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* {0:入库,1:出库,2:移转,3:手动调整}
|
*/
|
@ApiModelProperty(value= "{0:入库,1:出库,2:移转,3:手动调整}")
|
private Integer type;
|
|
@ApiModelProperty(value= "")
|
@TableField("origin_data")
|
private String originData;
|
|
@ApiModelProperty(value= "")
|
private String data;
|
|
@ApiModelProperty(value= "")
|
@TableField("io_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date ioTime;
|
|
@ApiModelProperty(value= "")
|
@TableField("create_by")
|
private Long createBy;
|
|
@ApiModelProperty(value= "")
|
private String ip;
|
|
@ApiModelProperty(value= "")
|
@TableField("create_by_name")
|
private String createByName;
|
|
public SaasLog() {}
|
|
public SaasLog(Integer type,String originData,String data,Date ioTime,Long createBy,String ip,String createByName) {
|
this.type = type;
|
this.originData = originData;
|
this.data = data;
|
this.ioTime = ioTime;
|
this.createBy = createBy;
|
this.ip = ip;
|
this.createByName = createByName;
|
}
|
|
// SaasLog saasLog = new SaasLog(
|
// null, // {0:入库,1:出库,2:移转,3:手动调整}
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null, //
|
// null //
|
// );
|
|
public String getType$(){
|
|
switch (type){
|
case 1: return "修改库位";
|
case 2: return "";
|
default:
|
return "未知";
|
}
|
|
}
|
public String getIoTime$(){
|
if (Cools.isEmpty(this.ioTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
|
}
|
|
|
}
|