czt
2024-06-25 69270bd602eea005351e46089a00fe6604c21c08
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
package com.fzzy.api.entity;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.fzzy.api.Constant;
 
import lombok.Data;
 
import javax.persistence.*;
 
import java.io.Serializable;
 
/**
 * @author vince.xu
 * @Title: Confs
 * @ProjectName igds-api
 * @Description: 接口上传所需要的配置 根据库区来配置
 * @date 2022-9-215:51
 */
@Data
@Entity
@Table(name = "API_CONFS")
public class ApiConfs implements Serializable {
 
    /**
     *
     */
    private static final long serialVersionUID = 8687625896329166886L;
 
    /**
     * 接口同步/推送方式-自动
     */
    public static String SYNC_PUSH_AUTO = "01";
    /**
     * 接口同步/推送方式-手动
     */
    public static String SYNC_PUSH_HAND = "02";
 
    /**
     * 执行时间-天、小时时间配置,* 表示每天、每小时执行
     */
    public static String TIME_ALL = "*";
 
 
    @Id
    @PropertyDef(label = "库区代码")
    @Column(name = "kqdm", length = 50)
    private String kqdm;
 
    @PropertyDef(label = "库区名称")
    @Column(name = "kqmc", length = 100)
    private String kqmc;
 
    @PropertyDef(label = "省平台用户名")
    @Column(name = "username", length = 50)
    private String userName;
 
    @PropertyDef(label = "省平台密码")
    @Column(name = "password", length = 50)
    private String password;
 
    @PropertyDef(label = "省平台加密公钥")
    @Column(name = "publicKey", length = 200)
    private String publicKey;
 
    @PropertyDef(label = "授权码")
    @Column(name = "appCode", length = 50)
    private String appCode;
 
    @PropertyDef(label = "省平台接口地址")
    @Column(name = "apiUrl", length = 200)
    private String apiUrl;
 
    @PropertyDef(label = "是否独立接口")
    @Column(name = "apiUrlTag", length = 2)
    private String apiUrlTag = Constant.YN_N;
 
    @PropertyDef(label = "图片请求地址")
    @Column(name = "imgUrl", length = 200)
    private String imgUrl;
 
    @PropertyDef(label = "推送协议")
    @Column(name = "pushProtocol", length = 20)
    private String pushProtocol;
 
    @PropertyDef(label = "同步协议")
    @Column(name = "syncProtocol", length = 20)
    private String syncProtocol;
 
    @PropertyDef(label = "粮库系统库区代码")
    @Column(name = "deptId", length = 50)
    private String deptId;
 
    @PropertyDef(label = "基础接口-同步方式", description = "自动同步,自动同步")
    @Column(name = "syncType_11", length = 2)
    private String syncType11;
 
    @PropertyDef(label = "基础接口-同步-天", description = "1-周一,2-周二,3-周三等等,* 表示每天")
    @Column(name = "syncDay_11")
    private String syncDay11;
 
    @PropertyDef(label = "基础接口-同步-时", description = "0-23表示具体小时,* 表示每小时")
    @Column(name = "syncHour_11", length = 4)
    private String syncHour11;
 
    @PropertyDef(label = "基础接口-同步-分", description = "具体执行时间,分为:0和30两个选择,表示整点执行30分钟执行")
    @Column(name = "syncMinute_11", length = 4)
    private String syncMinute11;
 
    @PropertyDef(label = "基础接口-推送方式", description = "自动同步,自动同步")
    @Column(name = "pushType_11", length = 2)
    private String pushType11;
 
    @PropertyDef(label = "基础接口-推送-天")
    @Column(name = "pushDay_11", length = 4)
    private String pushDay11;
 
    @PropertyDef(label = "基础接口-同步-时")
    @Column(name = "pushHour_11", length = 4)
    private String pushHour11;
 
    @PropertyDef(label = "基础接口-同步-分")
    @Column(name = "pushMinute_11", length = 4)
    private String pushMinute11;
 
    @PropertyDef(label = "其他数据-同步方式", description = "自动同步,自动同步")
    @Column(name = "syncType_99", length = 2)
    private String syncType99;
 
    @PropertyDef(label = "其他数据-同步-天")
    @Column(name = "syncDay_99", length = 4)
    private String syncDay99;
 
    @PropertyDef(label = "其他数据-同步-时")
    @Column(name = "syncHour_99", length = 4)
    private String syncHour99;
 
    @PropertyDef(label = "其他数据-同步-分")
    @Column(name = "syncMinute_99", length = 4)
    private String syncMinute99;
 
    @PropertyDef(label = "其他数据-推送方式", description = "自动同步,自动同步")
    @Column(name = "pushType_99", length = 2)
    private String pushType99;
 
    @PropertyDef(label = "其他数据-推送-天")
    @Column(name = "pushDay_99", length = 4)
    private String pushDay99;
 
    @PropertyDef(label = "其他数据-推送-时")
    @Column(name = "pushHour_99", length = 4)
    private String pushHour99;
 
    @PropertyDef(label = "其他数据-推送-分")
    @Column(name = "pushMinute_99", length = 4)
    private String pushMinute99;
 
    @PropertyDef(label = "是否上线")
    @Column(name = "exe_tag", length = 2)
    private String exeTag = Constant.YN_Y;
 
    @PropertyDef(label = "统一编码拉取地址")
    @Column(name = "GB_CODING_Url", length = 200)
    private String gbCodingUrl;
 
    @PropertyDef(label = "统一编码上传")
    @Column(name = "GB_CODING_TAG_", length = 200)
    private String gbCodingTag;
    
    @Transient
    @PropertyDef(label = "模拟得分")
    private int grade;
}