CZT
2023-11-20 b19a8901f4060dcfd4cc2477374da2a7da267336
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
package com.fzzy.api.entity;
 
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
 
/**
 * @author vince.xu
 * @ProjectName igds-api
 * @Description: 接口上传日志
 * @date 2022-9-215:51
 */
@Data
@Entity
@Table(name = "API_LOG")
public class ApiLog implements Serializable {
 
 
    public static String TYPE_PUSH = "push";
    public static String TYPE_SYNC = "sync";
 
    /**
     *
     */
    private static final long serialVersionUID = -3873863428841103422L;
 
    @Id
    @Column(name = "id", length = 40)
    private String id;
 
    @PropertyDef(label = "库区代码")
    @Column(name = "kqdm", length = 50)
    private String kqdm;
 
    @PropertyDef(label = "类型")
    @Column(name = "type", length = 6)
    private String type = TYPE_PUSH;
 
    @PropertyDef(label = "接口编号")
    @Column(name = "inteId", length = 10)
    private String inteId;
 
    @PropertyDef(label = "上传时间")
    @Column(name = "uploadTime")
    private Date uploadTime = new Date();
 
    @PropertyDef(label = "上传结果")
    @Column(name = "status")
    private int status = 0;
 
    @PropertyDef(label = "返回信息")
    @Column(name = "result", length = 200)
    private String result;
 
    @PropertyDef(label = "接口数据主键")
    @Column(name = "dataId", length = 40)
    private String dataId;
 
    @PropertyDef(label = "数据内容")
    @Column(name = "data", length = 2000)
    private String data;
 
 
}