zelong.shao

dao|kafka实体创建

1 +package com.fedex.connect.common.dao.sys;
2 +
3 +import com.fedex.connect.common.model.sys.KafkaStorageHistory;
4 +import com.fedex.connect.common.model.sys.KafkaStorageHistoryExample;
5 +import org.apache.ibatis.annotations.Param;
6 +
7 +import java.util.List;
8 +
9 +public interface KafkaStorageHistoryMapper {
10 + long countByExample(KafkaStorageHistoryExample example);
11 +
12 + int deleteByExample(KafkaStorageHistoryExample example);
13 +
14 + int deleteByPrimaryKey(Long id);
15 +
16 + int insert(KafkaStorageHistory record);
17 +
18 + int insertSelective(KafkaStorageHistory record);
19 +
20 + List<KafkaStorageHistory> selectByExampleWithBLOBs(KafkaStorageHistoryExample example);
21 +
22 + List<KafkaStorageHistory> selectByExample(KafkaStorageHistoryExample example);
23 +
24 + KafkaStorageHistory selectByPrimaryKey(Long id);
25 +
26 + int updateByExampleSelective(@Param("record") KafkaStorageHistory record, @Param("example") KafkaStorageHistoryExample example);
27 +
28 + int updateByExampleWithBLOBs(@Param("record") KafkaStorageHistory record, @Param("example") KafkaStorageHistoryExample example);
29 +
30 + int updateByExample(@Param("record") KafkaStorageHistory record, @Param("example") KafkaStorageHistoryExample example);
31 +
32 + int updateByPrimaryKeySelective(KafkaStorageHistory record);
33 +
34 + int updateByPrimaryKeyWithBLOBs(KafkaStorageHistory record);
35 +
36 + int updateByPrimaryKey(KafkaStorageHistory record);
37 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.dao.sys;
2 +
3 +import com.fedex.connect.common.model.sys.KafkaTemporaryStorage;
4 +import com.fedex.connect.common.model.sys.KafkaTemporaryStorageExample;
5 +import java.util.List;
6 +import org.apache.ibatis.annotations.Param;
7 +
8 +public interface KafkaTemporaryStorageMapper {
9 + long countByExample(KafkaTemporaryStorageExample example);
10 +
11 + int deleteByExample(KafkaTemporaryStorageExample example);
12 +
13 + int deleteByPrimaryKey(Long id);
14 +
15 + int insert(KafkaTemporaryStorage record);
16 +
17 + int insertSelective(KafkaTemporaryStorage record);
18 +
19 + List<KafkaTemporaryStorage> selectByExampleWithBLOBs(KafkaTemporaryStorageExample example);
20 +
21 + List<KafkaTemporaryStorage> selectByExample(KafkaTemporaryStorageExample example);
22 +
23 + KafkaTemporaryStorage selectByPrimaryKey(Long id);
24 +
25 + int updateByExampleSelective(@Param("record") KafkaTemporaryStorage record, @Param("example") KafkaTemporaryStorageExample example);
26 +
27 + int updateByExampleWithBLOBs(@Param("record") KafkaTemporaryStorage record, @Param("example") KafkaTemporaryStorageExample example);
28 +
29 + int updateByExample(@Param("record") KafkaTemporaryStorage record, @Param("example") KafkaTemporaryStorageExample example);
30 +
31 + int updateByPrimaryKeySelective(KafkaTemporaryStorage record);
32 +
33 + int updateByPrimaryKeyWithBLOBs(KafkaTemporaryStorage record);
34 +
35 + int updateByPrimaryKey(KafkaTemporaryStorage record);
36 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.sys;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: KAFKA临时表
8 + * TABLE: T_SYS_KAFKA_TEMPORARY_STORAGE
9 + */
10 +public class KafkaStorageHistory implements Serializable {
11 + /**
12 + * ID,主键自增
13 + */
14 + private Long id;
15 +
16 + /**
17 + * 由发送方定义的序列号,唯一 UUID JSON自动生成
18 + */
19 + private String messageId;
20 +
21 + /**
22 + * 消息代码/类型
23 + */
24 + private String messageCode;
25 +
26 + /**
27 + * 发送程序ID
28 + */
29 + private String senderId;
30 +
31 + /**
32 + * 接受程序ID
33 + */
34 + private String receiverId;
35 +
36 + /**
37 + * DM发送时间
38 + */
39 + private Date sendTime;
40 +
41 + /**
42 + * 运单号
43 + */
44 + private String consignmentCode;
45 +
46 + /**
47 + * 记录处理次数
48 + */
49 + private Long frequency;
50 +
51 + /**
52 + * KAFKA消息状态ID,关联数据字典表。指定字典目录CODE:KAFKA_MSG_STATUS
53 + */
54 + private Long statusId;
55 +
56 + /**
57 + * KAFKA消息状态NAME
58 + */
59 + private String statusName;
60 +
61 + /**
62 + * 备注,记录错误信息
63 + */
64 + private String remark;
65 +
66 + /**
67 + * 创建时间
68 + */
69 + private Date createTime;
70 +
71 + /**
72 + * 创建人ID,关联用户表ID
73 + */
74 + private Long createUserId;
75 +
76 + /**
77 + * 创建人名称
78 + */
79 + private String createUserName;
80 +
81 + /**
82 + * 修改时间
83 + */
84 + private Date modifyTime;
85 +
86 + /**
87 + * 修改人ID,关联用户表ID
88 + */
89 + private Long modifyUserId;
90 +
91 + /**
92 + * 修改人名称
93 + */
94 + private String modifyUserName;
95 +
96 + /**
97 + * 消息体(Json字符串)
98 + */
99 + private String data;
100 +
101 + private static final long serialVersionUID = 1L;
102 +
103 + public Long getId() {
104 + return id;
105 + }
106 +
107 + public void setId(Long id) {
108 + this.id = id;
109 + }
110 +
111 + public String getMessageId() {
112 + return messageId;
113 + }
114 +
115 + public void setMessageId(String messageId) {
116 + this.messageId = messageId == null ? null : messageId.trim();
117 + }
118 +
119 + public String getMessageCode() {
120 + return messageCode;
121 + }
122 +
123 + public void setMessageCode(String messageCode) {
124 + this.messageCode = messageCode == null ? null : messageCode.trim();
125 + }
126 +
127 + public String getSenderId() {
128 + return senderId;
129 + }
130 +
131 + public void setSenderId(String senderId) {
132 + this.senderId = senderId == null ? null : senderId.trim();
133 + }
134 +
135 + public String getReceiverId() {
136 + return receiverId;
137 + }
138 +
139 + public void setReceiverId(String receiverId) {
140 + this.receiverId = receiverId == null ? null : receiverId.trim();
141 + }
142 +
143 + public Date getSendTime() {
144 + return sendTime;
145 + }
146 +
147 + public void setSendTime(Date sendTime) {
148 + this.sendTime = sendTime;
149 + }
150 +
151 + public String getConsignmentCode() {
152 + return consignmentCode;
153 + }
154 +
155 + public void setConsignmentCode(String consignmentCode) {
156 + this.consignmentCode = consignmentCode == null ? null : consignmentCode.trim();
157 + }
158 +
159 + public Long getFrequency() {
160 + return frequency;
161 + }
162 +
163 + public void setFrequency(Long frequency) {
164 + this.frequency = frequency;
165 + }
166 +
167 + public Long getStatusId() {
168 + return statusId;
169 + }
170 +
171 + public void setStatusId(Long statusId) {
172 + this.statusId = statusId;
173 + }
174 +
175 + public String getStatusName() {
176 + return statusName;
177 + }
178 +
179 + public void setStatusName(String statusName) {
180 + this.statusName = statusName == null ? null : statusName.trim();
181 + }
182 +
183 + public String getRemark() {
184 + return remark;
185 + }
186 +
187 + public void setRemark(String remark) {
188 + this.remark = remark == null ? null : remark.trim();
189 + }
190 +
191 + public Date getCreateTime() {
192 + return createTime;
193 + }
194 +
195 + public void setCreateTime(Date createTime) {
196 + this.createTime = createTime;
197 + }
198 +
199 + public Long getCreateUserId() {
200 + return createUserId;
201 + }
202 +
203 + public void setCreateUserId(Long createUserId) {
204 + this.createUserId = createUserId;
205 + }
206 +
207 + public String getCreateUserName() {
208 + return createUserName;
209 + }
210 +
211 + public void setCreateUserName(String createUserName) {
212 + this.createUserName = createUserName == null ? null : createUserName.trim();
213 + }
214 +
215 + public Date getModifyTime() {
216 + return modifyTime;
217 + }
218 +
219 + public void setModifyTime(Date modifyTime) {
220 + this.modifyTime = modifyTime;
221 + }
222 +
223 + public Long getModifyUserId() {
224 + return modifyUserId;
225 + }
226 +
227 + public void setModifyUserId(Long modifyUserId) {
228 + this.modifyUserId = modifyUserId;
229 + }
230 +
231 + public String getModifyUserName() {
232 + return modifyUserName;
233 + }
234 +
235 + public void setModifyUserName(String modifyUserName) {
236 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
237 + }
238 +
239 + public String getData() {
240 + return data;
241 + }
242 +
243 + public void setData(String data) {
244 + this.data = data == null ? null : data.trim();
245 + }
246 +
247 + @Override
248 + public String toString() {
249 + StringBuilder sb = new StringBuilder();
250 + sb.append(getClass().getSimpleName());
251 + sb.append(" [");
252 + sb.append("Hash = ").append(hashCode());
253 + sb.append(", id=").append(id);
254 + sb.append(", messageId=").append(messageId);
255 + sb.append(", messageCode=").append(messageCode);
256 + sb.append(", senderId=").append(senderId);
257 + sb.append(", receiverId=").append(receiverId);
258 + sb.append(", sendTime=").append(sendTime);
259 + sb.append(", consignmentCode=").append(consignmentCode);
260 + sb.append(", frequency=").append(frequency);
261 + sb.append(", statusId=").append(statusId);
262 + sb.append(", statusName=").append(statusName);
263 + sb.append(", remark=").append(remark);
264 + sb.append(", createTime=").append(createTime);
265 + sb.append(", createUserId=").append(createUserId);
266 + sb.append(", createUserName=").append(createUserName);
267 + sb.append(", modifyTime=").append(modifyTime);
268 + sb.append(", modifyUserId=").append(modifyUserId);
269 + sb.append(", modifyUserName=").append(modifyUserName);
270 + sb.append(", data=").append(data);
271 + sb.append(", serialVersionUID=").append(serialVersionUID);
272 + sb.append("]");
273 + return sb.toString();
274 + }
275 +}
...\ No newline at end of file ...\ No newline at end of file
1 +package com.fedex.connect.common.model.sys;
2 +
3 +import java.io.Serializable;
4 +import java.util.Date;
5 +
6 +/**
7 + * DESC: KAFKA数据历史表
8 + * TABLE: T_SYS_KAFKA_STORAGE_HISTORY
9 + */
10 +public class KafkaTemporaryStorage implements Serializable {
11 + /**
12 + * ID,主键自增
13 + */
14 + private Long id;
15 +
16 + /**
17 + * 由发送方定义的序列号,唯一 UUID JSON自动生成
18 + */
19 + private String messageId;
20 +
21 + /**
22 + * 消息代码/类型
23 + */
24 + private String messageCode;
25 +
26 + /**
27 + * 发送程序ID
28 + */
29 + private String senderId;
30 +
31 + /**
32 + * 接受程序ID
33 + */
34 + private String receiverId;
35 +
36 + /**
37 + * DM发送时间
38 + */
39 + private Date sendTime;
40 +
41 + /**
42 + * 运单号
43 + */
44 + private String consignmentCode;
45 +
46 + /**
47 + * 记录处理次数
48 + */
49 + private Long frequency;
50 +
51 + /**
52 + * KAFKA消息状态ID,关联数据字典表。指定字典目录CODE:KAFKA_MSG_STATUS
53 + */
54 + private Long statusId;
55 +
56 + /**
57 + * KAFKA消息状态NAME
58 + */
59 + private String statusName;
60 +
61 + /**
62 + * 备注,记录错误信息
63 + */
64 + private String remark;
65 +
66 + /**
67 + * 创建时间
68 + */
69 + private Date createTime;
70 +
71 + /**
72 + * 创建人ID,关联用户表ID
73 + */
74 + private Long createUserId;
75 +
76 + /**
77 + * 创建人名称
78 + */
79 + private String createUserName;
80 +
81 + /**
82 + * 修改时间
83 + */
84 + private Date modifyTime;
85 +
86 + /**
87 + * 修改人ID,关联用户表ID
88 + */
89 + private Long modifyUserId;
90 +
91 + /**
92 + * 修改人名称
93 + */
94 + private String modifyUserName;
95 +
96 + /**
97 + * 消息体(Json字符串)
98 + */
99 + private String data;
100 +
101 + private static final long serialVersionUID = 1L;
102 +
103 + public Long getId() {
104 + return id;
105 + }
106 +
107 + public void setId(Long id) {
108 + this.id = id;
109 + }
110 +
111 + public String getMessageId() {
112 + return messageId;
113 + }
114 +
115 + public void setMessageId(String messageId) {
116 + this.messageId = messageId == null ? null : messageId.trim();
117 + }
118 +
119 + public String getMessageCode() {
120 + return messageCode;
121 + }
122 +
123 + public void setMessageCode(String messageCode) {
124 + this.messageCode = messageCode == null ? null : messageCode.trim();
125 + }
126 +
127 + public String getSenderId() {
128 + return senderId;
129 + }
130 +
131 + public void setSenderId(String senderId) {
132 + this.senderId = senderId == null ? null : senderId.trim();
133 + }
134 +
135 + public String getReceiverId() {
136 + return receiverId;
137 + }
138 +
139 + public void setReceiverId(String receiverId) {
140 + this.receiverId = receiverId == null ? null : receiverId.trim();
141 + }
142 +
143 + public Date getSendTime() {
144 + return sendTime;
145 + }
146 +
147 + public void setSendTime(Date sendTime) {
148 + this.sendTime = sendTime;
149 + }
150 +
151 + public String getConsignmentCode() {
152 + return consignmentCode;
153 + }
154 +
155 + public void setConsignmentCode(String consignmentCode) {
156 + this.consignmentCode = consignmentCode == null ? null : consignmentCode.trim();
157 + }
158 +
159 + public Long getFrequency() {
160 + return frequency;
161 + }
162 +
163 + public void setFrequency(Long frequency) {
164 + this.frequency = frequency;
165 + }
166 +
167 + public Long getStatusId() {
168 + return statusId;
169 + }
170 +
171 + public void setStatusId(Long statusId) {
172 + this.statusId = statusId;
173 + }
174 +
175 + public String getStatusName() {
176 + return statusName;
177 + }
178 +
179 + public void setStatusName(String statusName) {
180 + this.statusName = statusName == null ? null : statusName.trim();
181 + }
182 +
183 + public String getRemark() {
184 + return remark;
185 + }
186 +
187 + public void setRemark(String remark) {
188 + this.remark = remark == null ? null : remark.trim();
189 + }
190 +
191 + public Date getCreateTime() {
192 + return createTime;
193 + }
194 +
195 + public void setCreateTime(Date createTime) {
196 + this.createTime = createTime;
197 + }
198 +
199 + public Long getCreateUserId() {
200 + return createUserId;
201 + }
202 +
203 + public void setCreateUserId(Long createUserId) {
204 + this.createUserId = createUserId;
205 + }
206 +
207 + public String getCreateUserName() {
208 + return createUserName;
209 + }
210 +
211 + public void setCreateUserName(String createUserName) {
212 + this.createUserName = createUserName == null ? null : createUserName.trim();
213 + }
214 +
215 + public Date getModifyTime() {
216 + return modifyTime;
217 + }
218 +
219 + public void setModifyTime(Date modifyTime) {
220 + this.modifyTime = modifyTime;
221 + }
222 +
223 + public Long getModifyUserId() {
224 + return modifyUserId;
225 + }
226 +
227 + public void setModifyUserId(Long modifyUserId) {
228 + this.modifyUserId = modifyUserId;
229 + }
230 +
231 + public String getModifyUserName() {
232 + return modifyUserName;
233 + }
234 +
235 + public void setModifyUserName(String modifyUserName) {
236 + this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
237 + }
238 +
239 + public String getData() {
240 + return data;
241 + }
242 +
243 + public void setData(String data) {
244 + this.data = data == null ? null : data.trim();
245 + }
246 +
247 + @Override
248 + public String toString() {
249 + StringBuilder sb = new StringBuilder();
250 + sb.append(getClass().getSimpleName());
251 + sb.append(" [");
252 + sb.append("Hash = ").append(hashCode());
253 + sb.append(", id=").append(id);
254 + sb.append(", messageId=").append(messageId);
255 + sb.append(", messageCode=").append(messageCode);
256 + sb.append(", senderId=").append(senderId);
257 + sb.append(", receiverId=").append(receiverId);
258 + sb.append(", sendTime=").append(sendTime);
259 + sb.append(", consignmentCode=").append(consignmentCode);
260 + sb.append(", frequency=").append(frequency);
261 + sb.append(", statusId=").append(statusId);
262 + sb.append(", statusName=").append(statusName);
263 + sb.append(", remark=").append(remark);
264 + sb.append(", createTime=").append(createTime);
265 + sb.append(", createUserId=").append(createUserId);
266 + sb.append(", createUserName=").append(createUserName);
267 + sb.append(", modifyTime=").append(modifyTime);
268 + sb.append(", modifyUserId=").append(modifyUserId);
269 + sb.append(", modifyUserName=").append(modifyUserName);
270 + sb.append(", data=").append(data);
271 + sb.append(", serialVersionUID=").append(serialVersionUID);
272 + sb.append("]");
273 + return sb.toString();
274 + }
275 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
40 sys:系统 系统相关表,例如kafka表 40 sys:系统 系统相关表,例如kafka表
41 log: 日志 日志记录表,例如邮件发送日志表 41 log: 日志 日志记录表,例如邮件发送日志表
42 --> 42 -->
43 - <javaModelGenerator targetPackage="com.fedex.connect.common.model.bi" targetProject="src/main/java"> 43 + <javaModelGenerator targetPackage="com.fedex.connect.common.model.sys" targetProject="src/main/java">
44 <!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性--> 44 <!---enableSubPackages:如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性-->
45 <property name="enableSubPackages" value="false"/> 45 <property name="enableSubPackages" value="false"/>
46 <!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false--> 46 <!--该属性只对MyBatis3有效,如果true就会使用构造方法入参,如果false就会使用setter方式。默认为false-->
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
52 </javaModelGenerator> 52 </javaModelGenerator>
53 53
54 <!-- 生成映射文件*.xml的位置--> 54 <!-- 生成映射文件*.xml的位置-->
55 - <sqlMapGenerator targetPackage="mapper.bi" targetProject="src/main/java/com/fedex/connect/common"> 55 + <sqlMapGenerator targetPackage="mapper.sys" targetProject="src/main/java/com/fedex/connect/common">
56 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false--> 56 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false-->
57 <property name="enableSubPackages" value="false"/> 57 <property name="enableSubPackages" value="false"/>
58 </sqlMapGenerator> 58 </sqlMapGenerator>
59 59
60 <!-- 生成DAO的包名和位置 --> 60 <!-- 生成DAO的包名和位置 -->
61 - <javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.bi" targetProject="src/main/java"> 61 + <javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.sys" targetProject="src/main/java">
62 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false--> 62 <!--如果true,MBG会根据catalog和schema来生成子包。如果false就会直接用targetPackage属性。默认为false-->
63 <property name="enableSubPackages" value="false"/> 63 <property name="enableSubPackages" value="false"/>
64 </javaClientGenerator> 64 </javaClientGenerator>
......