1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
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
package com.web.basic.entity;
 
import com.app.base.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicUpdate;
 
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;
 
/**
 * 数据同步日志表
 * <p>用于记录同步时间做增量更新</p>
 *
 */
@Entity(name = "SyncLog")
@Table(name = SyncLog.TABLE_NAME)
@DynamicUpdate
@ApiModel
public class SyncLog extends BaseEntity {
    private static final long serialVersionUID = 6944849575214769761L;
    public static final String TABLE_NAME = "t_sync_log";
 
    /**
     * 编码
     * @see com.utils.enumeration.SyncModuleEnum
     */
    @ApiModelProperty(name = "bsCode", value = "编码")
    @NotNull
    @Column(length = 50)
    protected String bsCode;
 
    /**
     * 名称
     */
    @ApiModelProperty(name = "bsName", value = "名称")
    @NotNull
    @Column(length = 100)
    protected String bsName;
 
    /**
     * 上次同步时间
     */
    @ApiModelProperty(name = "bsLastSyncTime", value = "上次同步时间")
    @Temporal(TemporalType.TIMESTAMP)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    @Column
    protected Date bsLastSyncTime;
 
    /**
     * 同步状态(0:同步失败 / 1:同步成功)
     */
    @ApiModelProperty(name = "bsStatus", value = "同步状态(0:同步成功 / 1:同步失败)")
    @Column
    protected Integer bsStatus;
 
    /**
     * 备注
     */
    @ApiModelProperty(name = "bsRemark", value = "备注")
    @Column(length = 500)
    protected String bsRemark;
 
    public String getBsCode() {
        return bsCode;
    }
 
    public void setBsCode(String bsCode) {
        this.bsCode = bsCode;
    }
 
    public String getBsName() {
        return bsName;
    }
 
    public void setBsName(String bsName) {
        this.bsName = bsName;
    }
 
    public Date getBsLastSyncTime() {
        return bsLastSyncTime;
    }
 
    public void setBsLastSyncTime(Date bsLastSyncTime) {
        this.bsLastSyncTime = bsLastSyncTime;
    }
 
    public Integer getBsStatus() {
        return bsStatus;
    }
 
    public void setBsStatus(Integer bsStatus) {
        this.bsStatus = bsStatus;
    }
 
    public String getBsRemark() {
        return bsRemark;
    }
 
    public void setBsRemark(String bsRemark) {
        this.bsRemark = bsRemark;
    }
}