package com.zy.ints.entity;
|
|
import com.core.common.Cools;import io.swagger.annotations.ApiModelProperty;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
import io.swagger.annotations.ApiModelProperty;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@TableName("ints_erpreq_log")
|
public class ErpreqLog implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 日志类型 1: 入库 2: 入库更新 3: 出库 4: 出库更新 5: 盘点 6: 盘点更新 7: 库存同步
|
*/
|
@ApiModelProperty(value= "日志类型 1: 入库 2: 入库更新 3: 出库 4: 出库更新 5: 盘点 6: 盘点更新 7: 库存同步 ")
|
@TableField("log_type")
|
private Integer logType;
|
|
/**
|
* 请求链接
|
*/
|
@ApiModelProperty(value= "请求链接")
|
@TableField("req_url")
|
private String reqUrl;
|
|
@ApiModelProperty(value= "")
|
@TableField("req_params")
|
private String reqParams;
|
|
@ApiModelProperty(value= "")
|
@TableField("res_params")
|
private String resParams;
|
|
/**
|
* 结果 0: 成功 1: 失败
|
*/
|
@ApiModelProperty(value= "结果 0: 成功 1: 失败 ")
|
private Short result;
|
|
/**
|
* 建档时间
|
*/
|
@ApiModelProperty(value= "建档时间")
|
@TableField("appe_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date appeTime;
|
|
public ErpreqLog() {}
|
|
public ErpreqLog(Integer logType,String reqUrl,String reqParams,String resParams,Short result,Date appeTime) {
|
this.logType = logType;
|
this.reqUrl = reqUrl;
|
this.reqParams = reqParams;
|
this.resParams = resParams;
|
this.result = result;
|
this.appeTime = appeTime;
|
}
|
|
// ErpreqLog erpreqLog = new ErpreqLog(
|
// null, // 日志类型
|
// null, // 请求链接
|
// null, //
|
// null, //
|
// null, // 结果
|
// null // 建档时间
|
// );
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Integer getLogType() {
|
return logType;
|
}
|
|
public String getLogType$(){
|
if (null == this.logType){ return null; }
|
switch (this.logType){
|
case 1:
|
return "入库";
|
case 2:
|
return "入库更新";
|
case 3:
|
return "出库";
|
case 4:
|
return "出库更新";
|
case 5:
|
return "盘点";
|
case 6:
|
return "盘点更新";
|
case 7:
|
return "库存同步";
|
default:
|
return String.valueOf(this.logType);
|
}
|
}
|
|
public void setLogType(Integer logType) {
|
this.logType = logType;
|
}
|
|
public String getReqUrl() {
|
return reqUrl;
|
}
|
|
public void setReqUrl(String reqUrl) {
|
this.reqUrl = reqUrl;
|
}
|
|
public String getReqParams() {
|
return reqParams;
|
}
|
|
public void setReqParams(String reqParams) {
|
this.reqParams = reqParams;
|
}
|
|
public String getResParams() {
|
return resParams;
|
}
|
|
public void setResParams(String resParams) {
|
this.resParams = resParams;
|
}
|
|
public Short getResult() {
|
return result;
|
}
|
|
public String getResult$(){
|
if (null == this.result){ return null; }
|
switch (this.result){
|
case 0:
|
return "成功";
|
case 1:
|
return "失败";
|
default:
|
return String.valueOf(this.result);
|
}
|
}
|
|
public void setResult(Short result) {
|
this.result = result;
|
}
|
|
public Date getAppeTime() {
|
return appeTime;
|
}
|
|
public String getAppeTime$(){
|
if (Cools.isEmpty(this.appeTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
|
}
|
|
public void setAppeTime(Date appeTime) {
|
this.appeTime = appeTime;
|
}
|
|
|
}
|