tao.mo

kafka-cndc-server | 修改 | kafka501消息处理

mt
2024年11月1日16:53:57
...@@ -2,9 +2,8 @@ package com.fedex.connect.common.dao.biz; ...@@ -2,9 +2,8 @@ package com.fedex.connect.common.dao.biz;
2 2
3 import com.fedex.connect.common.model.biz.CeInfo; 3 import com.fedex.connect.common.model.biz.CeInfo;
4 import com.fedex.connect.common.model.biz.CeInfoExample; 4 import com.fedex.connect.common.model.biz.CeInfoExample;
5 -import org.apache.ibatis.annotations.Param;
6 -
7 import java.util.List; 5 import java.util.List;
6 +import org.apache.ibatis.annotations.Param;
8 7
9 public interface CeInfoMapper { 8 public interface CeInfoMapper {
10 long countByExample(CeInfoExample example); 9 long countByExample(CeInfoExample example);
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 <result column="MODIFY_TIME" jdbcType="TIMESTAMP" property="modifyTime" /> 15 <result column="MODIFY_TIME" jdbcType="TIMESTAMP" property="modifyTime" />
16 <result column="MODIFY_USER_ID" jdbcType="NUMERIC" property="modifyUserId" /> 16 <result column="MODIFY_USER_ID" jdbcType="NUMERIC" property="modifyUserId" />
17 <result column="MODIFY_USER_NAME" jdbcType="VARCHAR" property="modifyUserName" /> 17 <result column="MODIFY_USER_NAME" jdbcType="VARCHAR" property="modifyUserName" />
18 - <result column="COUNT_ORIGIN" jdbcType="VARCHAR" property="countOrigin" /> 18 + <result column="ORIGIN_COUNTRY" jdbcType="VARCHAR" property="originCountry" />
19 <result column="DESTINATION_COUNTRY" jdbcType="VARCHAR" property="destinationCountry" /> 19 <result column="DESTINATION_COUNTRY" jdbcType="VARCHAR" property="destinationCountry" />
20 <result column="CUSTOMS_CURRENCY" jdbcType="VARCHAR" property="customsCurrency" /> 20 <result column="CUSTOMS_CURRENCY" jdbcType="VARCHAR" property="customsCurrency" />
21 <result column="CUSTOMS_VALUE" jdbcType="NUMERIC" property="customsValue" /> 21 <result column="CUSTOMS_VALUE" jdbcType="NUMERIC" property="customsValue" />
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
99 <sql id="Base_Column_List"> 99 <sql id="Base_Column_List">
100 ID, CONSIGNMENT_CODE, SEND_TIME, SHIP_DATE, SHIPPER_COUNTRY, RECIPIENT_COUNTRY, DEST_IATA_CODE, 100 ID, CONSIGNMENT_CODE, SEND_TIME, SHIP_DATE, SHIPPER_COUNTRY, RECIPIENT_COUNTRY, DEST_IATA_CODE,
101 CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME, 101 CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME,
102 - COUNT_ORIGIN, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT, 102 + ORIGIN_COUNTRY, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT,
103 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY, 103 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY,
104 SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, SHIPPER_EMAIL, RECIPIENT_CONTACT_NAME, 104 SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, SHIPPER_EMAIL, RECIPIENT_CONTACT_NAME,
105 RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3, 105 RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3,
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
146 SHIP_DATE, SHIPPER_COUNTRY, RECIPIENT_COUNTRY, 146 SHIP_DATE, SHIPPER_COUNTRY, RECIPIENT_COUNTRY,
147 DEST_IATA_CODE, CREATE_TIME, CREATE_USER_ID, 147 DEST_IATA_CODE, CREATE_TIME, CREATE_USER_ID,
148 CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, 148 CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID,
149 - MODIFY_USER_NAME, COUNT_ORIGIN, DESTINATION_COUNTRY, 149 + MODIFY_USER_NAME, ORIGIN_COUNTRY, DESTINATION_COUNTRY,
150 CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, 150 CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT,
151 WEIGHTUNIT, SCANDATE, SHIPPER_CONTACT_NAME, 151 WEIGHTUNIT, SCANDATE, SHIPPER_CONTACT_NAME,
152 SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY, 152 SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY,
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
158 #{shipDate,jdbcType=TIMESTAMP}, #{shipperCountry,jdbcType=VARCHAR}, #{recipientCountry,jdbcType=VARCHAR}, 158 #{shipDate,jdbcType=TIMESTAMP}, #{shipperCountry,jdbcType=VARCHAR}, #{recipientCountry,jdbcType=VARCHAR},
159 #{destIataCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC}, 159 #{destIataCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC},
160 #{createUserName,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC}, 160 #{createUserName,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC},
161 - #{modifyUserName,jdbcType=VARCHAR}, #{countOrigin,jdbcType=VARCHAR}, #{destinationCountry,jdbcType=VARCHAR}, 161 + #{modifyUserName,jdbcType=VARCHAR}, #{originCountry,jdbcType=VARCHAR}, #{destinationCountry,jdbcType=VARCHAR},
162 #{customsCurrency,jdbcType=VARCHAR}, #{customsValue,jdbcType=NUMERIC}, #{weight,jdbcType=NUMERIC}, 162 #{customsCurrency,jdbcType=VARCHAR}, #{customsValue,jdbcType=NUMERIC}, #{weight,jdbcType=NUMERIC},
163 #{weightunit,jdbcType=NUMERIC}, #{scandate,jdbcType=TIMESTAMP}, #{shipperContactName,jdbcType=VARCHAR}, 163 #{weightunit,jdbcType=NUMERIC}, #{scandate,jdbcType=TIMESTAMP}, #{shipperContactName,jdbcType=VARCHAR},
164 #{shipperPhone,jdbcType=VARCHAR}, #{shipperAccount,jdbcType=VARCHAR}, #{shipperCompany,jdbcType=VARCHAR}, 164 #{shipperPhone,jdbcType=VARCHAR}, #{shipperAccount,jdbcType=VARCHAR}, #{shipperCompany,jdbcType=VARCHAR},
...@@ -210,8 +210,8 @@ ...@@ -210,8 +210,8 @@
210 <if test="modifyUserName != null"> 210 <if test="modifyUserName != null">
211 MODIFY_USER_NAME, 211 MODIFY_USER_NAME,
212 </if> 212 </if>
213 - <if test="countOrigin != null"> 213 + <if test="originCountry != null">
214 - COUNT_ORIGIN, 214 + ORIGIN_COUNTRY,
215 </if> 215 </if>
216 <if test="destinationCountry != null"> 216 <if test="destinationCountry != null">
217 DESTINATION_COUNTRY, 217 DESTINATION_COUNTRY,
...@@ -315,8 +315,8 @@ ...@@ -315,8 +315,8 @@
315 <if test="modifyUserName != null"> 315 <if test="modifyUserName != null">
316 #{modifyUserName,jdbcType=VARCHAR}, 316 #{modifyUserName,jdbcType=VARCHAR},
317 </if> 317 </if>
318 - <if test="countOrigin != null"> 318 + <if test="originCountry != null">
319 - #{countOrigin,jdbcType=VARCHAR}, 319 + #{originCountry,jdbcType=VARCHAR},
320 </if> 320 </if>
321 <if test="destinationCountry != null"> 321 <if test="destinationCountry != null">
322 #{destinationCountry,jdbcType=VARCHAR}, 322 #{destinationCountry,jdbcType=VARCHAR},
...@@ -431,8 +431,8 @@ ...@@ -431,8 +431,8 @@
431 <if test="record.modifyUserName != null"> 431 <if test="record.modifyUserName != null">
432 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR}, 432 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
433 </if> 433 </if>
434 - <if test="record.countOrigin != null"> 434 + <if test="record.originCountry != null">
435 - COUNT_ORIGIN = #{record.countOrigin,jdbcType=VARCHAR}, 435 + ORIGIN_COUNTRY = #{record.originCountry,jdbcType=VARCHAR},
436 </if> 436 </if>
437 <if test="record.destinationCountry != null"> 437 <if test="record.destinationCountry != null">
438 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR}, 438 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR},
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
517 MODIFY_TIME = #{record.modifyTime,jdbcType=TIMESTAMP}, 517 MODIFY_TIME = #{record.modifyTime,jdbcType=TIMESTAMP},
518 MODIFY_USER_ID = #{record.modifyUserId,jdbcType=NUMERIC}, 518 MODIFY_USER_ID = #{record.modifyUserId,jdbcType=NUMERIC},
519 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR}, 519 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
520 - COUNT_ORIGIN = #{record.countOrigin,jdbcType=VARCHAR}, 520 + ORIGIN_COUNTRY = #{record.originCountry,jdbcType=VARCHAR},
521 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR}, 521 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR},
522 CUSTOMS_CURRENCY = #{record.customsCurrency,jdbcType=VARCHAR}, 522 CUSTOMS_CURRENCY = #{record.customsCurrency,jdbcType=VARCHAR},
523 CUSTOMS_VALUE = #{record.customsValue,jdbcType=NUMERIC}, 523 CUSTOMS_VALUE = #{record.customsValue,jdbcType=NUMERIC},
...@@ -582,8 +582,8 @@ ...@@ -582,8 +582,8 @@
582 <if test="modifyUserName != null"> 582 <if test="modifyUserName != null">
583 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR}, 583 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
584 </if> 584 </if>
585 - <if test="countOrigin != null"> 585 + <if test="originCountry != null">
586 - COUNT_ORIGIN = #{countOrigin,jdbcType=VARCHAR}, 586 + ORIGIN_COUNTRY = #{originCountry,jdbcType=VARCHAR},
587 </if> 587 </if>
588 <if test="destinationCountry != null"> 588 <if test="destinationCountry != null">
589 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR}, 589 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR},
...@@ -665,7 +665,7 @@ ...@@ -665,7 +665,7 @@
665 MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP}, 665 MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
666 MODIFY_USER_ID = #{modifyUserId,jdbcType=NUMERIC}, 666 MODIFY_USER_ID = #{modifyUserId,jdbcType=NUMERIC},
667 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR}, 667 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
668 - COUNT_ORIGIN = #{countOrigin,jdbcType=VARCHAR}, 668 + ORIGIN_COUNTRY = #{originCountry,jdbcType=VARCHAR},
669 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR}, 669 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR},
670 CUSTOMS_CURRENCY = #{customsCurrency,jdbcType=VARCHAR}, 670 CUSTOMS_CURRENCY = #{customsCurrency,jdbcType=VARCHAR},
671 CUSTOMS_VALUE = #{customsValue,jdbcType=NUMERIC}, 671 CUSTOMS_VALUE = #{customsValue,jdbcType=NUMERIC},
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 <result column="SHIPPER_COUNTRY" jdbcType="VARCHAR" property="shipperCountry" /> 8 <result column="SHIPPER_COUNTRY" jdbcType="VARCHAR" property="shipperCountry" />
9 <result column="RECIPIENT_COUNTRY" jdbcType="VARCHAR" property="recipientCountry" /> 9 <result column="RECIPIENT_COUNTRY" jdbcType="VARCHAR" property="recipientCountry" />
10 <result column="DEST_IATA_CODE" jdbcType="VARCHAR" property="destIataCode" /> 10 <result column="DEST_IATA_CODE" jdbcType="VARCHAR" property="destIataCode" />
11 - <result column="COUNT_ORIGIN" jdbcType="VARCHAR" property="countOrigin" /> 11 + <result column="ORIGIN_COUNTRY" jdbcType="VARCHAR" property="originCountry" />
12 <result column="DESTINATION_COUNTRY" jdbcType="VARCHAR" property="destinationCountry" /> 12 <result column="DESTINATION_COUNTRY" jdbcType="VARCHAR" property="destinationCountry" />
13 <result column="CUSTOMS_CURRENCY" jdbcType="VARCHAR" property="customsCurrency" /> 13 <result column="CUSTOMS_CURRENCY" jdbcType="VARCHAR" property="customsCurrency" />
14 <result column="CUSTOMS_VALUE" jdbcType="NUMERIC" property="customsValue" /> 14 <result column="CUSTOMS_VALUE" jdbcType="NUMERIC" property="customsValue" />
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
104 </sql> 104 </sql>
105 <sql id="Base_Column_List"> 105 <sql id="Base_Column_List">
106 ID, CONSIGNMENT_CODE, SHIP_DATE, SHIPPER_COUNTRY, RECIPIENT_COUNTRY, DEST_IATA_CODE, 106 ID, CONSIGNMENT_CODE, SHIP_DATE, SHIPPER_COUNTRY, RECIPIENT_COUNTRY, DEST_IATA_CODE,
107 - COUNT_ORIGIN, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT, 107 + ORIGIN_COUNTRY, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT,
108 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY, 108 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY,
109 SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, SHIPPER_EMAIL, RECIPIENT_CONTACT_NAME, 109 SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, SHIPPER_EMAIL, RECIPIENT_CONTACT_NAME,
110 RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3, 110 RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3,
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
151 </selectKey> 151 </selectKey>
152 insert into T_BIZ_CONSIGNMENT (ID, CONSIGNMENT_CODE, SHIP_DATE, 152 insert into T_BIZ_CONSIGNMENT (ID, CONSIGNMENT_CODE, SHIP_DATE,
153 SHIPPER_COUNTRY, RECIPIENT_COUNTRY, DEST_IATA_CODE, 153 SHIPPER_COUNTRY, RECIPIENT_COUNTRY, DEST_IATA_CODE,
154 - COUNT_ORIGIN, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, 154 + ORIGIN_COUNTRY, DESTINATION_COUNTRY, CUSTOMS_CURRENCY,
155 CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT, 155 CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT,
156 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, 156 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE,
157 SHIPPER_ACCOUNT, SHIPPER_COMPANY, SHIPPER_ADDR_LINE1, 157 SHIPPER_ACCOUNT, SHIPPER_COMPANY, SHIPPER_ADDR_LINE1,
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
166 ) 166 )
167 values (#{id,jdbcType=NUMERIC}, #{consignmentCode,jdbcType=VARCHAR}, #{shipDate,jdbcType=TIMESTAMP}, 167 values (#{id,jdbcType=NUMERIC}, #{consignmentCode,jdbcType=VARCHAR}, #{shipDate,jdbcType=TIMESTAMP},
168 #{shipperCountry,jdbcType=VARCHAR}, #{recipientCountry,jdbcType=VARCHAR}, #{destIataCode,jdbcType=VARCHAR}, 168 #{shipperCountry,jdbcType=VARCHAR}, #{recipientCountry,jdbcType=VARCHAR}, #{destIataCode,jdbcType=VARCHAR},
169 - #{countOrigin,jdbcType=VARCHAR}, #{destinationCountry,jdbcType=VARCHAR}, #{customsCurrency,jdbcType=VARCHAR}, 169 + #{originCountry,jdbcType=VARCHAR}, #{destinationCountry,jdbcType=VARCHAR}, #{customsCurrency,jdbcType=VARCHAR},
170 #{customsValue,jdbcType=NUMERIC}, #{weight,jdbcType=NUMERIC}, #{weightunit,jdbcType=NUMERIC}, 170 #{customsValue,jdbcType=NUMERIC}, #{weight,jdbcType=NUMERIC}, #{weightunit,jdbcType=NUMERIC},
171 #{scandate,jdbcType=TIMESTAMP}, #{shipperContactName,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, 171 #{scandate,jdbcType=TIMESTAMP}, #{shipperContactName,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR},
172 #{shipperAccount,jdbcType=VARCHAR}, #{shipperCompany,jdbcType=VARCHAR}, #{shipperAddrLine1,jdbcType=VARCHAR}, 172 #{shipperAccount,jdbcType=VARCHAR}, #{shipperCompany,jdbcType=VARCHAR}, #{shipperAddrLine1,jdbcType=VARCHAR},
...@@ -202,8 +202,8 @@ ...@@ -202,8 +202,8 @@
202 <if test="destIataCode != null"> 202 <if test="destIataCode != null">
203 DEST_IATA_CODE, 203 DEST_IATA_CODE,
204 </if> 204 </if>
205 - <if test="countOrigin != null"> 205 + <if test="originCountry != null">
206 - COUNT_ORIGIN, 206 + ORIGIN_COUNTRY,
207 </if> 207 </if>
208 <if test="destinationCountry != null"> 208 <if test="destinationCountry != null">
209 DESTINATION_COUNTRY, 209 DESTINATION_COUNTRY,
...@@ -325,8 +325,8 @@ ...@@ -325,8 +325,8 @@
325 <if test="destIataCode != null"> 325 <if test="destIataCode != null">
326 #{destIataCode,jdbcType=VARCHAR}, 326 #{destIataCode,jdbcType=VARCHAR},
327 </if> 327 </if>
328 - <if test="countOrigin != null"> 328 + <if test="originCountry != null">
329 - #{countOrigin,jdbcType=VARCHAR}, 329 + #{originCountry,jdbcType=VARCHAR},
330 </if> 330 </if>
331 <if test="destinationCountry != null"> 331 <if test="destinationCountry != null">
332 #{destinationCountry,jdbcType=VARCHAR}, 332 #{destinationCountry,jdbcType=VARCHAR},
...@@ -459,8 +459,8 @@ ...@@ -459,8 +459,8 @@
459 <if test="record.destIataCode != null"> 459 <if test="record.destIataCode != null">
460 DEST_IATA_CODE = #{record.destIataCode,jdbcType=VARCHAR}, 460 DEST_IATA_CODE = #{record.destIataCode,jdbcType=VARCHAR},
461 </if> 461 </if>
462 - <if test="record.countOrigin != null"> 462 + <if test="record.originCountry != null">
463 - COUNT_ORIGIN = #{record.countOrigin,jdbcType=VARCHAR}, 463 + ORIGIN_COUNTRY = #{record.originCountry,jdbcType=VARCHAR},
464 </if> 464 </if>
465 <if test="record.destinationCountry != null"> 465 <if test="record.destinationCountry != null">
466 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR}, 466 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR},
...@@ -577,7 +577,7 @@ ...@@ -577,7 +577,7 @@
577 SHIPPER_COUNTRY = #{record.shipperCountry,jdbcType=VARCHAR}, 577 SHIPPER_COUNTRY = #{record.shipperCountry,jdbcType=VARCHAR},
578 RECIPIENT_COUNTRY = #{record.recipientCountry,jdbcType=VARCHAR}, 578 RECIPIENT_COUNTRY = #{record.recipientCountry,jdbcType=VARCHAR},
579 DEST_IATA_CODE = #{record.destIataCode,jdbcType=VARCHAR}, 579 DEST_IATA_CODE = #{record.destIataCode,jdbcType=VARCHAR},
580 - COUNT_ORIGIN = #{record.countOrigin,jdbcType=VARCHAR}, 580 + ORIGIN_COUNTRY = #{record.originCountry,jdbcType=VARCHAR},
581 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR}, 581 DESTINATION_COUNTRY = #{record.destinationCountry,jdbcType=VARCHAR},
582 CUSTOMS_CURRENCY = #{record.customsCurrency,jdbcType=VARCHAR}, 582 CUSTOMS_CURRENCY = #{record.customsCurrency,jdbcType=VARCHAR},
583 CUSTOMS_VALUE = #{record.customsValue,jdbcType=NUMERIC}, 583 CUSTOMS_VALUE = #{record.customsValue,jdbcType=NUMERIC},
...@@ -634,8 +634,8 @@ ...@@ -634,8 +634,8 @@
634 <if test="destIataCode != null"> 634 <if test="destIataCode != null">
635 DEST_IATA_CODE = #{destIataCode,jdbcType=VARCHAR}, 635 DEST_IATA_CODE = #{destIataCode,jdbcType=VARCHAR},
636 </if> 636 </if>
637 - <if test="countOrigin != null"> 637 + <if test="originCountry != null">
638 - COUNT_ORIGIN = #{countOrigin,jdbcType=VARCHAR}, 638 + ORIGIN_COUNTRY = #{originCountry,jdbcType=VARCHAR},
639 </if> 639 </if>
640 <if test="destinationCountry != null"> 640 <if test="destinationCountry != null">
641 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR}, 641 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR},
...@@ -749,7 +749,7 @@ ...@@ -749,7 +749,7 @@
749 SHIPPER_COUNTRY = #{shipperCountry,jdbcType=VARCHAR}, 749 SHIPPER_COUNTRY = #{shipperCountry,jdbcType=VARCHAR},
750 RECIPIENT_COUNTRY = #{recipientCountry,jdbcType=VARCHAR}, 750 RECIPIENT_COUNTRY = #{recipientCountry,jdbcType=VARCHAR},
751 DEST_IATA_CODE = #{destIataCode,jdbcType=VARCHAR}, 751 DEST_IATA_CODE = #{destIataCode,jdbcType=VARCHAR},
752 - COUNT_ORIGIN = #{countOrigin,jdbcType=VARCHAR}, 752 + ORIGIN_COUNTRY = #{originCountry,jdbcType=VARCHAR},
753 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR}, 753 DESTINATION_COUNTRY = #{destinationCountry,jdbcType=VARCHAR},
754 CUSTOMS_CURRENCY = #{customsCurrency,jdbcType=VARCHAR}, 754 CUSTOMS_CURRENCY = #{customsCurrency,jdbcType=VARCHAR},
755 CUSTOMS_VALUE = #{customsValue,jdbcType=NUMERIC}, 755 CUSTOMS_VALUE = #{customsValue,jdbcType=NUMERIC},
......
...@@ -76,7 +76,7 @@ public class CeInfo implements Serializable { ...@@ -76,7 +76,7 @@ public class CeInfo implements Serializable {
76 /** 76 /**
77 * 原产国全称 77 * 原产国全称
78 */ 78 */
79 - private String countOrigin; 79 + private String originCountry;
80 80
81 /** 81 /**
82 * 目的国全称 82 * 目的国全称
...@@ -289,12 +289,12 @@ public class CeInfo implements Serializable { ...@@ -289,12 +289,12 @@ public class CeInfo implements Serializable {
289 this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim(); 289 this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
290 } 290 }
291 291
292 - public String getCountOrigin() { 292 + public String getOriginCountry() {
293 - return countOrigin; 293 + return originCountry;
294 } 294 }
295 295
296 - public void setCountOrigin(String countOrigin) { 296 + public void setOriginCountry(String originCountry) {
297 - this.countOrigin = countOrigin == null ? null : countOrigin.trim(); 297 + this.originCountry = originCountry == null ? null : originCountry.trim();
298 } 298 }
299 299
300 public String getDestinationCountry() { 300 public String getDestinationCountry() {
...@@ -484,7 +484,7 @@ public class CeInfo implements Serializable { ...@@ -484,7 +484,7 @@ public class CeInfo implements Serializable {
484 sb.append(", modifyTime=").append(modifyTime); 484 sb.append(", modifyTime=").append(modifyTime);
485 sb.append(", modifyUserId=").append(modifyUserId); 485 sb.append(", modifyUserId=").append(modifyUserId);
486 sb.append(", modifyUserName=").append(modifyUserName); 486 sb.append(", modifyUserName=").append(modifyUserName);
487 - sb.append(", countOrigin=").append(countOrigin); 487 + sb.append(", originCountry=").append(originCountry);
488 sb.append(", destinationCountry=").append(destinationCountry); 488 sb.append(", destinationCountry=").append(destinationCountry);
489 sb.append(", customsCurrency=").append(customsCurrency); 489 sb.append(", customsCurrency=").append(customsCurrency);
490 sb.append(", customsValue=").append(customsValue); 490 sb.append(", customsValue=").append(customsValue);
......
...@@ -965,73 +965,73 @@ public class CeInfoExample { ...@@ -965,73 +965,73 @@ public class CeInfoExample {
965 return (Criteria) this; 965 return (Criteria) this;
966 } 966 }
967 967
968 - public Criteria andCountOriginIsNull() { 968 + public Criteria andOriginCountryIsNull() {
969 - addCriterion("COUNT_ORIGIN is null"); 969 + addCriterion("ORIGIN_COUNTRY is null");
970 return (Criteria) this; 970 return (Criteria) this;
971 } 971 }
972 972
973 - public Criteria andCountOriginIsNotNull() { 973 + public Criteria andOriginCountryIsNotNull() {
974 - addCriterion("COUNT_ORIGIN is not null"); 974 + addCriterion("ORIGIN_COUNTRY is not null");
975 return (Criteria) this; 975 return (Criteria) this;
976 } 976 }
977 977
978 - public Criteria andCountOriginEqualTo(String value) { 978 + public Criteria andOriginCountryEqualTo(String value) {
979 - addCriterion("COUNT_ORIGIN =", value, "countOrigin"); 979 + addCriterion("ORIGIN_COUNTRY =", value, "originCountry");
980 return (Criteria) this; 980 return (Criteria) this;
981 } 981 }
982 982
983 - public Criteria andCountOriginNotEqualTo(String value) { 983 + public Criteria andOriginCountryNotEqualTo(String value) {
984 - addCriterion("COUNT_ORIGIN <>", value, "countOrigin"); 984 + addCriterion("ORIGIN_COUNTRY <>", value, "originCountry");
985 return (Criteria) this; 985 return (Criteria) this;
986 } 986 }
987 987
988 - public Criteria andCountOriginGreaterThan(String value) { 988 + public Criteria andOriginCountryGreaterThan(String value) {
989 - addCriterion("COUNT_ORIGIN >", value, "countOrigin"); 989 + addCriterion("ORIGIN_COUNTRY >", value, "originCountry");
990 return (Criteria) this; 990 return (Criteria) this;
991 } 991 }
992 992
993 - public Criteria andCountOriginGreaterThanOrEqualTo(String value) { 993 + public Criteria andOriginCountryGreaterThanOrEqualTo(String value) {
994 - addCriterion("COUNT_ORIGIN >=", value, "countOrigin"); 994 + addCriterion("ORIGIN_COUNTRY >=", value, "originCountry");
995 return (Criteria) this; 995 return (Criteria) this;
996 } 996 }
997 997
998 - public Criteria andCountOriginLessThan(String value) { 998 + public Criteria andOriginCountryLessThan(String value) {
999 - addCriterion("COUNT_ORIGIN <", value, "countOrigin"); 999 + addCriterion("ORIGIN_COUNTRY <", value, "originCountry");
1000 return (Criteria) this; 1000 return (Criteria) this;
1001 } 1001 }
1002 1002
1003 - public Criteria andCountOriginLessThanOrEqualTo(String value) { 1003 + public Criteria andOriginCountryLessThanOrEqualTo(String value) {
1004 - addCriterion("COUNT_ORIGIN <=", value, "countOrigin"); 1004 + addCriterion("ORIGIN_COUNTRY <=", value, "originCountry");
1005 return (Criteria) this; 1005 return (Criteria) this;
1006 } 1006 }
1007 1007
1008 - public Criteria andCountOriginLike(String value) { 1008 + public Criteria andOriginCountryLike(String value) {
1009 - addCriterion("COUNT_ORIGIN like", value, "countOrigin"); 1009 + addCriterion("ORIGIN_COUNTRY like", value, "originCountry");
1010 return (Criteria) this; 1010 return (Criteria) this;
1011 } 1011 }
1012 1012
1013 - public Criteria andCountOriginNotLike(String value) { 1013 + public Criteria andOriginCountryNotLike(String value) {
1014 - addCriterion("COUNT_ORIGIN not like", value, "countOrigin"); 1014 + addCriterion("ORIGIN_COUNTRY not like", value, "originCountry");
1015 return (Criteria) this; 1015 return (Criteria) this;
1016 } 1016 }
1017 1017
1018 - public Criteria andCountOriginIn(List<String> values) { 1018 + public Criteria andOriginCountryIn(List<String> values) {
1019 - addCriterion("COUNT_ORIGIN in", values, "countOrigin"); 1019 + addCriterion("ORIGIN_COUNTRY in", values, "originCountry");
1020 return (Criteria) this; 1020 return (Criteria) this;
1021 } 1021 }
1022 1022
1023 - public Criteria andCountOriginNotIn(List<String> values) { 1023 + public Criteria andOriginCountryNotIn(List<String> values) {
1024 - addCriterion("COUNT_ORIGIN not in", values, "countOrigin"); 1024 + addCriterion("ORIGIN_COUNTRY not in", values, "originCountry");
1025 return (Criteria) this; 1025 return (Criteria) this;
1026 } 1026 }
1027 1027
1028 - public Criteria andCountOriginBetween(String value1, String value2) { 1028 + public Criteria andOriginCountryBetween(String value1, String value2) {
1029 - addCriterion("COUNT_ORIGIN between", value1, value2, "countOrigin"); 1029 + addCriterion("ORIGIN_COUNTRY between", value1, value2, "originCountry");
1030 return (Criteria) this; 1030 return (Criteria) this;
1031 } 1031 }
1032 1032
1033 - public Criteria andCountOriginNotBetween(String value1, String value2) { 1033 + public Criteria andOriginCountryNotBetween(String value1, String value2) {
1034 - addCriterion("COUNT_ORIGIN not between", value1, value2, "countOrigin"); 1034 + addCriterion("ORIGIN_COUNTRY not between", value1, value2, "originCountry");
1035 return (Criteria) this; 1035 return (Criteria) this;
1036 } 1036 }
1037 1037
......
...@@ -41,7 +41,7 @@ public class Consignment implements Serializable { ...@@ -41,7 +41,7 @@ public class Consignment implements Serializable {
41 /** 41 /**
42 * 原产国全称 42 * 原产国全称
43 */ 43 */
44 - private String countOrigin; 44 + private String originCountry;
45 45
46 /** 46 /**
47 * 目的国全称 47 * 目的国全称
...@@ -263,12 +263,12 @@ public class Consignment implements Serializable { ...@@ -263,12 +263,12 @@ public class Consignment implements Serializable {
263 this.destIataCode = destIataCode == null ? null : destIataCode.trim(); 263 this.destIataCode = destIataCode == null ? null : destIataCode.trim();
264 } 264 }
265 265
266 - public String getCountOrigin() { 266 + public String getOriginCountry() {
267 - return countOrigin; 267 + return originCountry;
268 } 268 }
269 269
270 - public void setCountOrigin(String countOrigin) { 270 + public void setOriginCountry(String originCountry) {
271 - this.countOrigin = countOrigin == null ? null : countOrigin.trim(); 271 + this.originCountry = originCountry == null ? null : originCountry.trim();
272 } 272 }
273 273
274 public String getDestinationCountry() { 274 public String getDestinationCountry() {
...@@ -555,7 +555,7 @@ public class Consignment implements Serializable { ...@@ -555,7 +555,7 @@ public class Consignment implements Serializable {
555 sb.append(", shipperCountry=").append(shipperCountry); 555 sb.append(", shipperCountry=").append(shipperCountry);
556 sb.append(", recipientCountry=").append(recipientCountry); 556 sb.append(", recipientCountry=").append(recipientCountry);
557 sb.append(", destIataCode=").append(destIataCode); 557 sb.append(", destIataCode=").append(destIataCode);
558 - sb.append(", countOrigin=").append(countOrigin); 558 + sb.append(", originCountry=").append(originCountry);
559 sb.append(", destinationCountry=").append(destinationCountry); 559 sb.append(", destinationCountry=").append(destinationCountry);
560 sb.append(", customsCurrency=").append(customsCurrency); 560 sb.append(", customsCurrency=").append(customsCurrency);
561 sb.append(", customsValue=").append(customsValue); 561 sb.append(", customsValue=").append(customsValue);
......
...@@ -525,73 +525,73 @@ public class ConsignmentExample { ...@@ -525,73 +525,73 @@ public class ConsignmentExample {
525 return (Criteria) this; 525 return (Criteria) this;
526 } 526 }
527 527
528 - public Criteria andCountOriginIsNull() { 528 + public Criteria andOriginCountryIsNull() {
529 - addCriterion("COUNT_ORIGIN is null"); 529 + addCriterion("ORIGIN_COUNTRY is null");
530 return (Criteria) this; 530 return (Criteria) this;
531 } 531 }
532 532
533 - public Criteria andCountOriginIsNotNull() { 533 + public Criteria andOriginCountryIsNotNull() {
534 - addCriterion("COUNT_ORIGIN is not null"); 534 + addCriterion("ORIGIN_COUNTRY is not null");
535 return (Criteria) this; 535 return (Criteria) this;
536 } 536 }
537 537
538 - public Criteria andCountOriginEqualTo(String value) { 538 + public Criteria andOriginCountryEqualTo(String value) {
539 - addCriterion("COUNT_ORIGIN =", value, "countOrigin"); 539 + addCriterion("ORIGIN_COUNTRY =", value, "originCountry");
540 return (Criteria) this; 540 return (Criteria) this;
541 } 541 }
542 542
543 - public Criteria andCountOriginNotEqualTo(String value) { 543 + public Criteria andOriginCountryNotEqualTo(String value) {
544 - addCriterion("COUNT_ORIGIN <>", value, "countOrigin"); 544 + addCriterion("ORIGIN_COUNTRY <>", value, "originCountry");
545 return (Criteria) this; 545 return (Criteria) this;
546 } 546 }
547 547
548 - public Criteria andCountOriginGreaterThan(String value) { 548 + public Criteria andOriginCountryGreaterThan(String value) {
549 - addCriterion("COUNT_ORIGIN >", value, "countOrigin"); 549 + addCriterion("ORIGIN_COUNTRY >", value, "originCountry");
550 return (Criteria) this; 550 return (Criteria) this;
551 } 551 }
552 552
553 - public Criteria andCountOriginGreaterThanOrEqualTo(String value) { 553 + public Criteria andOriginCountryGreaterThanOrEqualTo(String value) {
554 - addCriterion("COUNT_ORIGIN >=", value, "countOrigin"); 554 + addCriterion("ORIGIN_COUNTRY >=", value, "originCountry");
555 return (Criteria) this; 555 return (Criteria) this;
556 } 556 }
557 557
558 - public Criteria andCountOriginLessThan(String value) { 558 + public Criteria andOriginCountryLessThan(String value) {
559 - addCriterion("COUNT_ORIGIN <", value, "countOrigin"); 559 + addCriterion("ORIGIN_COUNTRY <", value, "originCountry");
560 return (Criteria) this; 560 return (Criteria) this;
561 } 561 }
562 562
563 - public Criteria andCountOriginLessThanOrEqualTo(String value) { 563 + public Criteria andOriginCountryLessThanOrEqualTo(String value) {
564 - addCriterion("COUNT_ORIGIN <=", value, "countOrigin"); 564 + addCriterion("ORIGIN_COUNTRY <=", value, "originCountry");
565 return (Criteria) this; 565 return (Criteria) this;
566 } 566 }
567 567
568 - public Criteria andCountOriginLike(String value) { 568 + public Criteria andOriginCountryLike(String value) {
569 - addCriterion("COUNT_ORIGIN like", value, "countOrigin"); 569 + addCriterion("ORIGIN_COUNTRY like", value, "originCountry");
570 return (Criteria) this; 570 return (Criteria) this;
571 } 571 }
572 572
573 - public Criteria andCountOriginNotLike(String value) { 573 + public Criteria andOriginCountryNotLike(String value) {
574 - addCriterion("COUNT_ORIGIN not like", value, "countOrigin"); 574 + addCriterion("ORIGIN_COUNTRY not like", value, "originCountry");
575 return (Criteria) this; 575 return (Criteria) this;
576 } 576 }
577 577
578 - public Criteria andCountOriginIn(List<String> values) { 578 + public Criteria andOriginCountryIn(List<String> values) {
579 - addCriterion("COUNT_ORIGIN in", values, "countOrigin"); 579 + addCriterion("ORIGIN_COUNTRY in", values, "originCountry");
580 return (Criteria) this; 580 return (Criteria) this;
581 } 581 }
582 582
583 - public Criteria andCountOriginNotIn(List<String> values) { 583 + public Criteria andOriginCountryNotIn(List<String> values) {
584 - addCriterion("COUNT_ORIGIN not in", values, "countOrigin"); 584 + addCriterion("ORIGIN_COUNTRY not in", values, "originCountry");
585 return (Criteria) this; 585 return (Criteria) this;
586 } 586 }
587 587
588 - public Criteria andCountOriginBetween(String value1, String value2) { 588 + public Criteria andOriginCountryBetween(String value1, String value2) {
589 - addCriterion("COUNT_ORIGIN between", value1, value2, "countOrigin"); 589 + addCriterion("ORIGIN_COUNTRY between", value1, value2, "originCountry");
590 return (Criteria) this; 590 return (Criteria) this;
591 } 591 }
592 592
593 - public Criteria andCountOriginNotBetween(String value1, String value2) { 593 + public Criteria andOriginCountryNotBetween(String value1, String value2) {
594 - addCriterion("COUNT_ORIGIN not between", value1, value2, "countOrigin"); 594 + addCriterion("ORIGIN_COUNTRY not between", value1, value2, "originCountry");
595 return (Criteria) this; 595 return (Criteria) this;
596 } 596 }
597 597
......
...@@ -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.sys" targetProject="src/main/java"> 43 + <javaModelGenerator targetPackage="com.fedex.connect.common.model.biz" 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.sys" targetProject="src/main/java/com/fedex/connect/common"> 55 + <sqlMapGenerator targetPackage="mapper.biz" 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.sys" targetProject="src/main/java"> 61 + <javaClientGenerator type="XMLMAPPER" targetPackage="com.fedex.connect.common.dao.biz" 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>
...@@ -91,18 +91,18 @@ ...@@ -91,18 +91,18 @@
91 <!-- selectByExampleQueryId="true">--> 91 <!-- selectByExampleQueryId="true">-->
92 <!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_ATTACHMENT.NEXTVAL FROM DUAL" />--> 92 <!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_ATTACHMENT.NEXTVAL FROM DUAL" />-->
93 <!-- </table>--> 93 <!-- </table>-->
94 -<!-- <table schema="ICLEARIMP" tableName="T_BIZ_CE_INFO" domainObjectName="CeInfo"--> 94 + <table schema="ICLEARIMP" tableName="T_BIZ_CE_INFO" domainObjectName="CeInfo"
95 -<!-- enableCountByExample="true" enableUpdateByExample="true"--> 95 + enableCountByExample="true" enableUpdateByExample="true"
96 -<!-- enableDeleteByExample="true" enableSelectByExample="true"--> 96 + enableDeleteByExample="true" enableSelectByExample="true"
97 -<!-- selectByExampleQueryId="true">--> 97 + selectByExampleQueryId="true">
98 -<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_CE_INFO.NEXTVAL FROM DUAL" />--> 98 + <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_CE_INFO.NEXTVAL FROM DUAL" />
99 -<!-- </table>--> 99 + </table>
100 -<!-- <table tableName="T_BIZ_CONSIGNMENT" domainObjectName="Consignment"--> 100 + <table tableName="T_BIZ_CONSIGNMENT" domainObjectName="Consignment"
101 -<!-- enableCountByExample="true" enableUpdateByExample="true"--> 101 + enableCountByExample="true" enableUpdateByExample="true"
102 -<!-- enableDeleteByExample="true" enableSelectByExample="true"--> 102 + enableDeleteByExample="true" enableSelectByExample="true"
103 -<!-- selectByExampleQueryId="true">--> 103 + selectByExampleQueryId="true">
104 -<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_CONSIGNMENT.NEXTVAL FROM DUAL" />--> 104 + <generatedKey column="ID" sqlStatement="SELECT SEQ_T_BIZ_CONSIGNMENT.NEXTVAL FROM DUAL" />
105 -<!-- </table>--> 105 + </table>
106 <!-- <table tableName="T_BIZ_EMAIL" domainObjectName="Email"--> 106 <!-- <table tableName="T_BIZ_EMAIL" domainObjectName="Email"-->
107 <!-- enableCountByExample="true" enableUpdateByExample="true"--> 107 <!-- enableCountByExample="true" enableUpdateByExample="true"-->
108 <!-- enableDeleteByExample="true" enableSelectByExample="true"--> 108 <!-- enableDeleteByExample="true" enableSelectByExample="true"-->
...@@ -173,12 +173,12 @@ ...@@ -173,12 +173,12 @@
173 <!-- selectByExampleQueryId="true">--> 173 <!-- selectByExampleQueryId="true">-->
174 <!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_ROLE_PRIVILEGE.NEXTVAL FROM DUAL" />--> 174 <!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_ROLE_PRIVILEGE.NEXTVAL FROM DUAL" />-->
175 <!-- </table>--> 175 <!-- </table>-->
176 - <table schema="ICLEARIMP" tableName="T_SYS_USER" domainObjectName="User" 176 +<!-- <table schema="ICLEARIMP" tableName="T_SYS_USER" domainObjectName="User"-->
177 - enableCountByExample="true" enableUpdateByExample="true" 177 +<!-- enableCountByExample="true" enableUpdateByExample="true"-->
178 - enableDeleteByExample="true" enableSelectByExample="true" 178 +<!-- enableDeleteByExample="true" enableSelectByExample="true"-->
179 - selectByExampleQueryId="true"> 179 +<!-- selectByExampleQueryId="true">-->
180 - <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_USER.NEXTVAL FROM DUAL" /> 180 +<!-- <generatedKey column="ID" sqlStatement="SELECT SEQ_T_SYS_USER.NEXTVAL FROM DUAL" />-->
181 - </table> 181 +<!-- </table>-->
182 <!-- <table schema="ICLEARIMP" tableName="T_SYS_USER_ROLE" domainObjectName="UserRole"--> 182 <!-- <table schema="ICLEARIMP" tableName="T_SYS_USER_ROLE" domainObjectName="UserRole"-->
183 <!-- enableCountByExample="true" enableUpdateByExample="true"--> 183 <!-- enableCountByExample="true" enableUpdateByExample="true"-->
184 <!-- enableDeleteByExample="true" enableSelectByExample="true"--> 184 <!-- enableDeleteByExample="true" enableSelectByExample="true"-->
......
1 +package com.fedex.connect.common.dependencies.contants;
2 +
3 +/**
4 + * @Author mt
5 + * @Description 类说明
6 + * @Date 2024/11/1
7 + */
8 +public interface SystemDefaultUserConstants {
9 + /**
10 + * @Author mt
11 + * @Description 系统用户
12 + * @Date 2024/11/1
13 + */
14 + interface SYSTEM_USER_KEYS{
15 + //系统用户ID
16 + Long ID = 0L;
17 + //登录账号
18 + String LOGIN_NAME = "system";
19 + //用户姓名
20 + String USER_NAME = "system";
21 + }
22 +}
1 +package com.fedex.connect.common.dependencies.util;
2 +
3 +public class TableColumnInitUtil {
4 +
5 +}
...@@ -11,8 +11,10 @@ import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501Data; ...@@ -11,8 +11,10 @@ import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501Data;
11 import com.fedex.connect.kafka.service.IDm501Service; 11 import com.fedex.connect.kafka.service.IDm501Service;
12 import com.fedex.connect.kafka.service.base.BaseService; 12 import com.fedex.connect.kafka.service.base.BaseService;
13 import com.fedex.connect.kafka.util.Dm501Util; 13 import com.fedex.connect.kafka.util.Dm501Util;
14 +import lombok.extern.slf4j.Slf4j;
14 import org.springframework.beans.factory.annotation.Autowired; 15 import org.springframework.beans.factory.annotation.Autowired;
15 import org.springframework.stereotype.Service; 16 import org.springframework.stereotype.Service;
17 +import org.springframework.transaction.annotation.Transactional;
16 18
17 import java.util.List; 19 import java.util.List;
18 import java.util.Objects; 20 import java.util.Objects;
...@@ -22,6 +24,7 @@ import java.util.Objects; ...@@ -22,6 +24,7 @@ import java.util.Objects;
22 * @Description dm501消息处理 24 * @Description dm501消息处理
23 * @Date 2024/4/19 25 * @Date 2024/4/19
24 */ 26 */
27 +@Slf4j
25 @Service 28 @Service
26 public class Dm501ServiceImpl extends BaseService implements IDm501Service { 29 public class Dm501ServiceImpl extends BaseService implements IDm501Service {
27 30
...@@ -43,13 +46,19 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service { ...@@ -43,13 +46,19 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service {
43 Dm501Data data = JSONObject.parseObject(kafKaTemporaryStorage.getData(), Dm501Data.class); 46 Dm501Data data = JSONObject.parseObject(kafKaTemporaryStorage.getData(), Dm501Data.class);
44 List<Dm501Consignments> dm501Consignments = data.getConsignments(); 47 List<Dm501Consignments> dm501Consignments = data.getConsignments();
45 //遍历dm501 48 //遍历dm501
46 - Utils.listOf(dm501Consignments).stream().filter(Objects::nonNull).forEach(consignment -> { 49 + Utils.listOf(dm501Consignments).stream().filter(Objects::nonNull).forEach(consignment501 -> {
47 - CeInfo bizCeInfo = ceInfoRepository.findBizCeInfoContainsByConsignmentCode(consignment.getTrackingNumber()); 50 + try {
51 + CeInfo bizCeInfo = ceInfoRepository.findBizCeInfoContainsByConsignmentCode(consignment501.getTrackingNumber());
48 //将运单号保存 52 //将运单号保存
49 - processResults.setConsignmentCode(consignment.getTrackingNumber()); 53 + processResults.setConsignmentCode(consignment501.getTrackingNumber());
50 //该运单号不存在创建时间为1个月内CE数据 54 //该运单号不存在创建时间为1个月内CE数据
51 - if(Objects.isNull(bizCeInfo)){ 55 + if (Objects.isNull(bizCeInfo)) {
52 - CeInfo ceInfo = dm501Util.generateCeInfo(kafKaTemporaryStorage.getSendTime(),consignment); 56 + CeInfo ceInfo = dm501Util.generateCeInfo(consignment501,kafKaTemporaryStorage.getSendTime());
57 + Consignment consignment = dm501Util.generateConsignment(ceInfo);
58 + this.saveCeInfoAndConsignment(ceInfo,consignment);
59 + }
60 + }catch(Exception ex){
61 + log.error("DM501消息处理异常:{}", ex.getMessage(),ex);
53 } 62 }
54 }); 63 });
55 return processResults; 64 return processResults;
...@@ -63,7 +72,9 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service { ...@@ -63,7 +72,9 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service {
63 * @param consignment 72 * @param consignment
64 * @return void 73 * @return void
65 */ 74 */
75 + @Transactional(rollbackFor = Exception.class)
66 public void saveCeInfoAndConsignment(CeInfo ceInfo, Consignment consignment){ 76 public void saveCeInfoAndConsignment(CeInfo ceInfo, Consignment consignment){
77 + consignmentRepository.save(consignment);
67 ceInfoRepository.save(ceInfo); 78 ceInfoRepository.save(ceInfo);
68 } 79 }
69 } 80 }
...\ No newline at end of file ...\ No newline at end of file
......
1 package com.fedex.connect.kafka.util; 1 package com.fedex.connect.kafka.util;
2 2
3 +import com.fedex.connect.common.dependencies.contants.SystemDefaultUserConstants;
3 import com.fedex.connect.common.dependencies.util.DateUtil; 4 import com.fedex.connect.common.dependencies.util.DateUtil;
4 import com.fedex.connect.common.model.biz.CeInfo; 5 import com.fedex.connect.common.model.biz.CeInfo;
6 +import com.fedex.connect.common.model.biz.Consignment;
5 import com.fedex.connect.kafka.constants.Constant; 7 import com.fedex.connect.kafka.constants.Constant;
6 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501ConAddresses; 8 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501ConAddresses;
7 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501Consignments; 9 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501Consignments;
...@@ -21,11 +23,8 @@ public class Dm501Util { ...@@ -21,11 +23,8 @@ public class Dm501Util {
21 * @param dm501Consignment 23 * @param dm501Consignment
22 * @return com.fedex.connect.common.model.biz.CeInfo 24 * @return com.fedex.connect.common.model.biz.CeInfo
23 */ 25 */
24 - public CeInfo generateCeInfo(Date sendTime, Dm501Consignments dm501Consignment){ 26 + public CeInfo generateCeInfo(Dm501Consignments dm501Consignment,Date sendTime){
25 CeInfo ceInfo = new CeInfo(); 27 CeInfo ceInfo = new CeInfo();
26 - ceInfo.setConsignmentCode(dm501Consignment.getTrackingNumber());
27 - ceInfo.setCreateTime(new Date());
28 - ceInfo.setDestIataCode(dm501Consignment.getDestIataCode());
29 //地址信息 28 //地址信息
30 List<Dm501ConAddresses> addressList = dm501Consignment.getAddresses(); 29 List<Dm501ConAddresses> addressList = dm501Consignment.getAddresses();
31 //没有地址信息,不需要处理,不进CE业务表 30 //没有地址信息,不需要处理,不进CE业务表
...@@ -40,24 +39,86 @@ public class Dm501Util { ...@@ -40,24 +39,86 @@ public class Dm501Util {
40 if(shipperAddress == null || recipientAddress == null){ 39 if(shipperAddress == null || recipientAddress == null){
41 return null; 40 return null;
42 } 41 }
43 - //发件人国家 42 +
44 - String shipperCountry = shipperAddress.getCountry();
45 - //始发国(二字码)
46 - ceInfo.setShipperCountry(shipperCountry);
47 //收件人国家 43 //收件人国家
48 String recipientCountry = recipientAddress.getCountry(); 44 String recipientCountry = recipientAddress.getCountry();
49 - //目的国家二字码
50 - ceInfo.setRecipientCountry(recipientCountry);
51 //收件人国家不为CN,不需要处理,不进CE业务表 45 //收件人国家不为CN,不需要处理,不进CE业务表
52 if(StringUtils.isEmpty(recipientCountry) || !recipientCountry.trim().equals(Constant.CE_INFO_KEYS.CN)){ 46 if(StringUtils.isEmpty(recipientCountry) || !recipientCountry.trim().equals(Constant.CE_INFO_KEYS.CN)){
53 return null; 47 return null;
54 } 48 }
49 + /**
50 + * 报文主体处理
51 + */
52 + this.generateCeInfoBody(ceInfo,dm501Consignment,sendTime);
53 +
54 + return ceInfo;
55 + }
56 +
57 + /**
58 + * @Author mt
59 + * @Description 报文主体处理
60 + * @Date 2024/11/1
61 + * @param
62 + * @return void
63 + */
64 + private void generateCeInfoBody(CeInfo ceInfo,Dm501Consignments dm501Consignment,Date sendTime){
65 + ceInfo.setConsignmentCode(dm501Consignment.getTrackingNumber());
66 + ceInfo.setDestIataCode(dm501Consignment.getDestIataCode());
67 + //扫描状态日期
68 + ceInfo.setScandate(dm501Consignment.getScanDate());
69 + //DM发送时间
55 ceInfo.setSendTime(sendTime); 70 ceInfo.setSendTime(sendTime);
71 + //预计取件时间
56 String shipDate = dm501Consignment.getShipDate(); 72 String shipDate = dm501Consignment.getShipDate();
57 if(StringUtils.isNotEmpty(shipDate)){ 73 if(StringUtils.isNotEmpty(shipDate)){
58 ceInfo.setShipDate(DateUtil.parse(shipDate)); 74 ceInfo.setShipDate(DateUtil.parse(shipDate));
59 } 75 }
60 - return ceInfo; 76 + ceInfo.setCreateTime(new Date());
77 + ceInfo.setCreateUserId(SystemDefaultUserConstants.SYSTEM_USER_KEYS.ID);
78 +// ceInfo.setCreateUserName();
79 + }
80 +
81 + /**
82 + * @Author mt
83 + * @Description 发件人信息处理
84 + * @Date 2024/11/1
85 + * @param
86 + * @return void
87 + */
88 + private void generateCeInfoShipper(){
89 + //发件人国家
90 +// String shipperCountry = shipperAddress.getCountry();
91 +// //始发国(二字码)
92 +// ceInfo.setShipperCountry(shipperCountry);
93 + //原产国全称
94 +// ceInfo.setOriginCountry();
95 + }
96 +
97 + /**
98 + * @Author mt
99 + * @Description 收件人信息处理
100 + * @Date 2024/11/1
101 + * @param
102 + * @return void
103 + */
104 + private void generateCeInfoRecipient(){
105 + //收件人国家
106 +// String recipientCountry = recipientAddress.getCountry();
107 +// //目的国家二字码
108 +// ceInfo.setRecipientCountry(recipientCountry);
109 + //目的国全称
110 +// ceInfo.setDestinationCountry();
111 + }
112 +
113 + /**
114 + * @Author mt
115 + * @Description 运单信息处理
116 + * @Date 2024/11/1
117 + * @param ceInfo
118 + * @return com.fedex.connect.common.model.biz.Consignment
119 + */
120 + public Consignment generateConsignment(CeInfo ceInfo) {
121 + return null;
61 } 122 }
62 123
63 /** 124 /**
......