自动化立体仓库 - WMS系统
18516761980
2021-12-06 3d57910ed5c971d143b71af4f9bfb4c18dcf6e9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
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;
    }
 
 
}