tao.mo

common-dao、common-dependencies | 修改 | kafka501消息处理

mt
2024年11月4日18:49:02
Showing 18 changed files with 443 additions and 171 deletions
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
29 <result column="SHIPPER_ADDR_LINE1" jdbcType="VARCHAR" property="shipperAddrLine1" /> 29 <result column="SHIPPER_ADDR_LINE1" jdbcType="VARCHAR" property="shipperAddrLine1" />
30 <result column="SHIPPER_ADDR_LINE2" jdbcType="VARCHAR" property="shipperAddrLine2" /> 30 <result column="SHIPPER_ADDR_LINE2" jdbcType="VARCHAR" property="shipperAddrLine2" />
31 <result column="SHIPPER_CITY" jdbcType="VARCHAR" property="shipperCity" /> 31 <result column="SHIPPER_CITY" jdbcType="VARCHAR" property="shipperCity" />
32 - <result column="SHIPPER_EMAIL" jdbcType="VARCHAR" property="shipperEmail" /> 32 + <result column="SHIPPER_POSTAL_CODE" jdbcType="VARCHAR" property="shipperPostalCode" />
33 <result column="RECIPIENT_CONTACT_NAME" jdbcType="VARCHAR" property="recipientContactName" /> 33 <result column="RECIPIENT_CONTACT_NAME" jdbcType="VARCHAR" property="recipientContactName" />
34 <result column="RECIPIENT_PHONE" jdbcType="VARCHAR" property="recipientPhone" /> 34 <result column="RECIPIENT_PHONE" jdbcType="VARCHAR" property="recipientPhone" />
35 <result column="RECIPIENT_COMPANY" jdbcType="VARCHAR" property="recipientCompany" /> 35 <result column="RECIPIENT_COMPANY" jdbcType="VARCHAR" property="recipientCompany" />
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
37 <result column="RECIPIENT_ADDR_LINE2" jdbcType="VARCHAR" property="recipientAddrLine2" /> 37 <result column="RECIPIENT_ADDR_LINE2" jdbcType="VARCHAR" property="recipientAddrLine2" />
38 <result column="RECIPIENT_ADDR_LINE3" jdbcType="VARCHAR" property="recipientAddrLine3" /> 38 <result column="RECIPIENT_ADDR_LINE3" jdbcType="VARCHAR" property="recipientAddrLine3" />
39 <result column="RECIPIENT_CITY" jdbcType="VARCHAR" property="recipientCity" /> 39 <result column="RECIPIENT_CITY" jdbcType="VARCHAR" property="recipientCity" />
40 + <result column="RECIPIENT_POSTAL_CODE" jdbcType="VARCHAR" property="recipientPostalCode" />
41 + <result column="DOC_NONDOC_FLAG" jdbcType="VARCHAR" property="docNondocFlag" />
40 </resultMap> 42 </resultMap>
41 <sql id="Example_Where_Clause"> 43 <sql id="Example_Where_Clause">
42 <where> 44 <where>
...@@ -101,9 +103,9 @@ ...@@ -101,9 +103,9 @@
101 CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME, 103 CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME,
102 ORIGIN_COUNTRY, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT, 104 ORIGIN_COUNTRY, DESTINATION_COUNTRY, CUSTOMS_CURRENCY, CUSTOMS_VALUE, WEIGHT, WEIGHTUNIT,
103 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY, 105 SCANDATE, SHIPPER_CONTACT_NAME, SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY,
104 - SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, SHIPPER_EMAIL, RECIPIENT_CONTACT_NAME, 106 + SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, SHIPPER_POSTAL_CODE, RECIPIENT_CONTACT_NAME,
105 RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3, 107 RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3,
106 - RECIPIENT_CITY 108 + RECIPIENT_CITY, RECIPIENT_POSTAL_CODE, DOC_NONDOC_FLAG
107 </sql> 109 </sql>
108 <select id="selectByExample" parameterType="com.fedex.connect.common.model.biz.CeInfoExample" resultMap="BaseResultMap"> 110 <select id="selectByExample" parameterType="com.fedex.connect.common.model.biz.CeInfoExample" resultMap="BaseResultMap">
109 <include refid="OracleDialectPrefix" /> 111 <include refid="OracleDialectPrefix" />
...@@ -151,9 +153,11 @@ ...@@ -151,9 +153,11 @@
151 WEIGHTUNIT, SCANDATE, SHIPPER_CONTACT_NAME, 153 WEIGHTUNIT, SCANDATE, SHIPPER_CONTACT_NAME,
152 SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY, 154 SHIPPER_PHONE, SHIPPER_ACCOUNT, SHIPPER_COMPANY,
153 SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY, 155 SHIPPER_ADDR_LINE1, SHIPPER_ADDR_LINE2, SHIPPER_CITY,
154 - SHIPPER_EMAIL, RECIPIENT_CONTACT_NAME, RECIPIENT_PHONE, 156 + SHIPPER_POSTAL_CODE, RECIPIENT_CONTACT_NAME,
155 - RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1, RECIPIENT_ADDR_LINE2, 157 + RECIPIENT_PHONE, RECIPIENT_COMPANY, RECIPIENT_ADDR_LINE1,
156 - RECIPIENT_ADDR_LINE3, RECIPIENT_CITY) 158 + RECIPIENT_ADDR_LINE2, RECIPIENT_ADDR_LINE3,
159 + RECIPIENT_CITY, RECIPIENT_POSTAL_CODE, DOC_NONDOC_FLAG
160 + )
157 values (#{id,jdbcType=NUMERIC}, #{consignmentCode,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP}, 161 values (#{id,jdbcType=NUMERIC}, #{consignmentCode,jdbcType=VARCHAR}, #{sendTime,jdbcType=TIMESTAMP},
158 #{shipDate,jdbcType=TIMESTAMP}, #{shipperCountry,jdbcType=VARCHAR}, #{recipientCountry,jdbcType=VARCHAR}, 162 #{shipDate,jdbcType=TIMESTAMP}, #{shipperCountry,jdbcType=VARCHAR}, #{recipientCountry,jdbcType=VARCHAR},
159 #{destIataCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC}, 163 #{destIataCode,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC},
...@@ -163,9 +167,11 @@ ...@@ -163,9 +167,11 @@
163 #{weightunit,jdbcType=VARCHAR}, #{scandate,jdbcType=TIMESTAMP}, #{shipperContactName,jdbcType=VARCHAR}, 167 #{weightunit,jdbcType=VARCHAR}, #{scandate,jdbcType=TIMESTAMP}, #{shipperContactName,jdbcType=VARCHAR},
164 #{shipperPhone,jdbcType=VARCHAR}, #{shipperAccount,jdbcType=VARCHAR}, #{shipperCompany,jdbcType=VARCHAR}, 168 #{shipperPhone,jdbcType=VARCHAR}, #{shipperAccount,jdbcType=VARCHAR}, #{shipperCompany,jdbcType=VARCHAR},
165 #{shipperAddrLine1,jdbcType=VARCHAR}, #{shipperAddrLine2,jdbcType=VARCHAR}, #{shipperCity,jdbcType=VARCHAR}, 169 #{shipperAddrLine1,jdbcType=VARCHAR}, #{shipperAddrLine2,jdbcType=VARCHAR}, #{shipperCity,jdbcType=VARCHAR},
166 - #{shipperEmail,jdbcType=VARCHAR}, #{recipientContactName,jdbcType=VARCHAR}, #{recipientPhone,jdbcType=VARCHAR}, 170 + #{shipperPostalCode,jdbcType=VARCHAR}, #{recipientContactName,jdbcType=VARCHAR},
167 - #{recipientCompany,jdbcType=VARCHAR}, #{recipientAddrLine1,jdbcType=VARCHAR}, #{recipientAddrLine2,jdbcType=VARCHAR}, 171 + #{recipientPhone,jdbcType=VARCHAR}, #{recipientCompany,jdbcType=VARCHAR}, #{recipientAddrLine1,jdbcType=VARCHAR},
168 - #{recipientAddrLine3,jdbcType=VARCHAR}, #{recipientCity,jdbcType=VARCHAR}) 172 + #{recipientAddrLine2,jdbcType=VARCHAR}, #{recipientAddrLine3,jdbcType=VARCHAR},
173 + #{recipientCity,jdbcType=VARCHAR}, #{recipientPostalCode,jdbcType=VARCHAR}, #{docNondocFlag,jdbcType=VARCHAR}
174 + )
169 </insert> 175 </insert>
170 <insert id="insertSelective" parameterType="com.fedex.connect.common.model.biz.CeInfo"> 176 <insert id="insertSelective" parameterType="com.fedex.connect.common.model.biz.CeInfo">
171 <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long"> 177 <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
...@@ -252,8 +258,8 @@ ...@@ -252,8 +258,8 @@
252 <if test="shipperCity != null"> 258 <if test="shipperCity != null">
253 SHIPPER_CITY, 259 SHIPPER_CITY,
254 </if> 260 </if>
255 - <if test="shipperEmail != null"> 261 + <if test="shipperPostalCode != null">
256 - SHIPPER_EMAIL, 262 + SHIPPER_POSTAL_CODE,
257 </if> 263 </if>
258 <if test="recipientContactName != null"> 264 <if test="recipientContactName != null">
259 RECIPIENT_CONTACT_NAME, 265 RECIPIENT_CONTACT_NAME,
...@@ -276,6 +282,12 @@ ...@@ -276,6 +282,12 @@
276 <if test="recipientCity != null"> 282 <if test="recipientCity != null">
277 RECIPIENT_CITY, 283 RECIPIENT_CITY,
278 </if> 284 </if>
285 + <if test="recipientPostalCode != null">
286 + RECIPIENT_POSTAL_CODE,
287 + </if>
288 + <if test="docNondocFlag != null">
289 + DOC_NONDOC_FLAG,
290 + </if>
279 </trim> 291 </trim>
280 <trim prefix="values (" suffix=")" suffixOverrides=","> 292 <trim prefix="values (" suffix=")" suffixOverrides=",">
281 #{id,jdbcType=NUMERIC}, 293 #{id,jdbcType=NUMERIC},
...@@ -357,8 +369,8 @@ ...@@ -357,8 +369,8 @@
357 <if test="shipperCity != null"> 369 <if test="shipperCity != null">
358 #{shipperCity,jdbcType=VARCHAR}, 370 #{shipperCity,jdbcType=VARCHAR},
359 </if> 371 </if>
360 - <if test="shipperEmail != null"> 372 + <if test="shipperPostalCode != null">
361 - #{shipperEmail,jdbcType=VARCHAR}, 373 + #{shipperPostalCode,jdbcType=VARCHAR},
362 </if> 374 </if>
363 <if test="recipientContactName != null"> 375 <if test="recipientContactName != null">
364 #{recipientContactName,jdbcType=VARCHAR}, 376 #{recipientContactName,jdbcType=VARCHAR},
...@@ -381,6 +393,12 @@ ...@@ -381,6 +393,12 @@
381 <if test="recipientCity != null"> 393 <if test="recipientCity != null">
382 #{recipientCity,jdbcType=VARCHAR}, 394 #{recipientCity,jdbcType=VARCHAR},
383 </if> 395 </if>
396 + <if test="recipientPostalCode != null">
397 + #{recipientPostalCode,jdbcType=VARCHAR},
398 + </if>
399 + <if test="docNondocFlag != null">
400 + #{docNondocFlag,jdbcType=VARCHAR},
401 + </if>
384 </trim> 402 </trim>
385 </insert> 403 </insert>
386 <select id="countByExample" parameterType="com.fedex.connect.common.model.biz.CeInfoExample" resultType="java.lang.Long"> 404 <select id="countByExample" parameterType="com.fedex.connect.common.model.biz.CeInfoExample" resultType="java.lang.Long">
...@@ -473,8 +491,8 @@ ...@@ -473,8 +491,8 @@
473 <if test="record.shipperCity != null"> 491 <if test="record.shipperCity != null">
474 SHIPPER_CITY = #{record.shipperCity,jdbcType=VARCHAR}, 492 SHIPPER_CITY = #{record.shipperCity,jdbcType=VARCHAR},
475 </if> 493 </if>
476 - <if test="record.shipperEmail != null"> 494 + <if test="record.shipperPostalCode != null">
477 - SHIPPER_EMAIL = #{record.shipperEmail,jdbcType=VARCHAR}, 495 + SHIPPER_POSTAL_CODE = #{record.shipperPostalCode,jdbcType=VARCHAR},
478 </if> 496 </if>
479 <if test="record.recipientContactName != null"> 497 <if test="record.recipientContactName != null">
480 RECIPIENT_CONTACT_NAME = #{record.recipientContactName,jdbcType=VARCHAR}, 498 RECIPIENT_CONTACT_NAME = #{record.recipientContactName,jdbcType=VARCHAR},
...@@ -497,6 +515,12 @@ ...@@ -497,6 +515,12 @@
497 <if test="record.recipientCity != null"> 515 <if test="record.recipientCity != null">
498 RECIPIENT_CITY = #{record.recipientCity,jdbcType=VARCHAR}, 516 RECIPIENT_CITY = #{record.recipientCity,jdbcType=VARCHAR},
499 </if> 517 </if>
518 + <if test="record.recipientPostalCode != null">
519 + RECIPIENT_POSTAL_CODE = #{record.recipientPostalCode,jdbcType=VARCHAR},
520 + </if>
521 + <if test="record.docNondocFlag != null">
522 + DOC_NONDOC_FLAG = #{record.docNondocFlag,jdbcType=VARCHAR},
523 + </if>
500 </set> 524 </set>
501 <if test="_parameter != null"> 525 <if test="_parameter != null">
502 <include refid="Update_By_Example_Where_Clause" /> 526 <include refid="Update_By_Example_Where_Clause" />
...@@ -531,14 +555,16 @@ ...@@ -531,14 +555,16 @@
531 SHIPPER_ADDR_LINE1 = #{record.shipperAddrLine1,jdbcType=VARCHAR}, 555 SHIPPER_ADDR_LINE1 = #{record.shipperAddrLine1,jdbcType=VARCHAR},
532 SHIPPER_ADDR_LINE2 = #{record.shipperAddrLine2,jdbcType=VARCHAR}, 556 SHIPPER_ADDR_LINE2 = #{record.shipperAddrLine2,jdbcType=VARCHAR},
533 SHIPPER_CITY = #{record.shipperCity,jdbcType=VARCHAR}, 557 SHIPPER_CITY = #{record.shipperCity,jdbcType=VARCHAR},
534 - SHIPPER_EMAIL = #{record.shipperEmail,jdbcType=VARCHAR}, 558 + SHIPPER_POSTAL_CODE = #{record.shipperPostalCode,jdbcType=VARCHAR},
535 RECIPIENT_CONTACT_NAME = #{record.recipientContactName,jdbcType=VARCHAR}, 559 RECIPIENT_CONTACT_NAME = #{record.recipientContactName,jdbcType=VARCHAR},
536 RECIPIENT_PHONE = #{record.recipientPhone,jdbcType=VARCHAR}, 560 RECIPIENT_PHONE = #{record.recipientPhone,jdbcType=VARCHAR},
537 RECIPIENT_COMPANY = #{record.recipientCompany,jdbcType=VARCHAR}, 561 RECIPIENT_COMPANY = #{record.recipientCompany,jdbcType=VARCHAR},
538 RECIPIENT_ADDR_LINE1 = #{record.recipientAddrLine1,jdbcType=VARCHAR}, 562 RECIPIENT_ADDR_LINE1 = #{record.recipientAddrLine1,jdbcType=VARCHAR},
539 RECIPIENT_ADDR_LINE2 = #{record.recipientAddrLine2,jdbcType=VARCHAR}, 563 RECIPIENT_ADDR_LINE2 = #{record.recipientAddrLine2,jdbcType=VARCHAR},
540 RECIPIENT_ADDR_LINE3 = #{record.recipientAddrLine3,jdbcType=VARCHAR}, 564 RECIPIENT_ADDR_LINE3 = #{record.recipientAddrLine3,jdbcType=VARCHAR},
541 - RECIPIENT_CITY = #{record.recipientCity,jdbcType=VARCHAR} 565 + RECIPIENT_CITY = #{record.recipientCity,jdbcType=VARCHAR},
566 + RECIPIENT_POSTAL_CODE = #{record.recipientPostalCode,jdbcType=VARCHAR},
567 + DOC_NONDOC_FLAG = #{record.docNondocFlag,jdbcType=VARCHAR}
542 <if test="_parameter != null"> 568 <if test="_parameter != null">
543 <include refid="Update_By_Example_Where_Clause" /> 569 <include refid="Update_By_Example_Where_Clause" />
544 </if> 570 </if>
...@@ -624,8 +650,8 @@ ...@@ -624,8 +650,8 @@
624 <if test="shipperCity != null"> 650 <if test="shipperCity != null">
625 SHIPPER_CITY = #{shipperCity,jdbcType=VARCHAR}, 651 SHIPPER_CITY = #{shipperCity,jdbcType=VARCHAR},
626 </if> 652 </if>
627 - <if test="shipperEmail != null"> 653 + <if test="shipperPostalCode != null">
628 - SHIPPER_EMAIL = #{shipperEmail,jdbcType=VARCHAR}, 654 + SHIPPER_POSTAL_CODE = #{shipperPostalCode,jdbcType=VARCHAR},
629 </if> 655 </if>
630 <if test="recipientContactName != null"> 656 <if test="recipientContactName != null">
631 RECIPIENT_CONTACT_NAME = #{recipientContactName,jdbcType=VARCHAR}, 657 RECIPIENT_CONTACT_NAME = #{recipientContactName,jdbcType=VARCHAR},
...@@ -648,6 +674,12 @@ ...@@ -648,6 +674,12 @@
648 <if test="recipientCity != null"> 674 <if test="recipientCity != null">
649 RECIPIENT_CITY = #{recipientCity,jdbcType=VARCHAR}, 675 RECIPIENT_CITY = #{recipientCity,jdbcType=VARCHAR},
650 </if> 676 </if>
677 + <if test="recipientPostalCode != null">
678 + RECIPIENT_POSTAL_CODE = #{recipientPostalCode,jdbcType=VARCHAR},
679 + </if>
680 + <if test="docNondocFlag != null">
681 + DOC_NONDOC_FLAG = #{docNondocFlag,jdbcType=VARCHAR},
682 + </if>
651 </set> 683 </set>
652 where ID = #{id,jdbcType=NUMERIC} 684 where ID = #{id,jdbcType=NUMERIC}
653 </update> 685 </update>
...@@ -679,14 +711,16 @@ ...@@ -679,14 +711,16 @@
679 SHIPPER_ADDR_LINE1 = #{shipperAddrLine1,jdbcType=VARCHAR}, 711 SHIPPER_ADDR_LINE1 = #{shipperAddrLine1,jdbcType=VARCHAR},
680 SHIPPER_ADDR_LINE2 = #{shipperAddrLine2,jdbcType=VARCHAR}, 712 SHIPPER_ADDR_LINE2 = #{shipperAddrLine2,jdbcType=VARCHAR},
681 SHIPPER_CITY = #{shipperCity,jdbcType=VARCHAR}, 713 SHIPPER_CITY = #{shipperCity,jdbcType=VARCHAR},
682 - SHIPPER_EMAIL = #{shipperEmail,jdbcType=VARCHAR}, 714 + SHIPPER_POSTAL_CODE = #{shipperPostalCode,jdbcType=VARCHAR},
683 RECIPIENT_CONTACT_NAME = #{recipientContactName,jdbcType=VARCHAR}, 715 RECIPIENT_CONTACT_NAME = #{recipientContactName,jdbcType=VARCHAR},
684 RECIPIENT_PHONE = #{recipientPhone,jdbcType=VARCHAR}, 716 RECIPIENT_PHONE = #{recipientPhone,jdbcType=VARCHAR},
685 RECIPIENT_COMPANY = #{recipientCompany,jdbcType=VARCHAR}, 717 RECIPIENT_COMPANY = #{recipientCompany,jdbcType=VARCHAR},
686 RECIPIENT_ADDR_LINE1 = #{recipientAddrLine1,jdbcType=VARCHAR}, 718 RECIPIENT_ADDR_LINE1 = #{recipientAddrLine1,jdbcType=VARCHAR},
687 RECIPIENT_ADDR_LINE2 = #{recipientAddrLine2,jdbcType=VARCHAR}, 719 RECIPIENT_ADDR_LINE2 = #{recipientAddrLine2,jdbcType=VARCHAR},
688 RECIPIENT_ADDR_LINE3 = #{recipientAddrLine3,jdbcType=VARCHAR}, 720 RECIPIENT_ADDR_LINE3 = #{recipientAddrLine3,jdbcType=VARCHAR},
689 - RECIPIENT_CITY = #{recipientCity,jdbcType=VARCHAR} 721 + RECIPIENT_CITY = #{recipientCity,jdbcType=VARCHAR},
722 + RECIPIENT_POSTAL_CODE = #{recipientPostalCode,jdbcType=VARCHAR},
723 + DOC_NONDOC_FLAG = #{docNondocFlag,jdbcType=VARCHAR}
690 where ID = #{id,jdbcType=NUMERIC} 724 where ID = #{id,jdbcType=NUMERIC}
691 </update> 725 </update>
692 <sql id="OracleDialectPrefix"> 726 <sql id="OracleDialectPrefix">
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
23 <result column="MODIFY_TIME" jdbcType="TIMESTAMP" property="modifyTime" /> 23 <result column="MODIFY_TIME" jdbcType="TIMESTAMP" property="modifyTime" />
24 <result column="MODIFY_USER_ID" jdbcType="NUMERIC" property="modifyUserId" /> 24 <result column="MODIFY_USER_ID" jdbcType="NUMERIC" property="modifyUserId" />
25 <result column="MODIFY_USER_NAME" jdbcType="VARCHAR" property="modifyUserName" /> 25 <result column="MODIFY_USER_NAME" jdbcType="VARCHAR" property="modifyUserName" />
26 + <result column="CONFIRM_PROMPTS" jdbcType="NUMERIC" property="confirmPrompts" />
26 </resultMap> 27 </resultMap>
27 <sql id="Example_Where_Clause"> 28 <sql id="Example_Where_Clause">
28 <where> 29 <where>
...@@ -85,7 +86,8 @@ ...@@ -85,7 +86,8 @@
85 <sql id="Base_Column_List"> 86 <sql id="Base_Column_List">
86 ID, LOGIN_NAME, USER_NAME, PASSWORD, USER_UUID, EMAIL, PHONE, COMPANY_NAME, ACCOUNT_NO, 87 ID, LOGIN_NAME, USER_NAME, PASSWORD, USER_UUID, EMAIL, PHONE, COMPANY_NAME, ACCOUNT_NO,
87 UNIFIED_BUSINESS_NUM, CUSTOMS_SERIAL_NUM, TYPE_ID, TYPE_NAME, STATUS, REMARK, CREATE_TIME, 88 UNIFIED_BUSINESS_NUM, CUSTOMS_SERIAL_NUM, TYPE_ID, TYPE_NAME, STATUS, REMARK, CREATE_TIME,
88 - CREATE_USER_ID, CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME 89 + CREATE_USER_ID, CREATE_USER_NAME, MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME,
90 + CONFIRM_PROMPTS
89 </sql> 91 </sql>
90 <select id="selectByExample" parameterType="com.fedex.connect.common.model.sys.UserExample" resultMap="BaseResultMap"> 92 <select id="selectByExample" parameterType="com.fedex.connect.common.model.sys.UserExample" resultMap="BaseResultMap">
91 <include refid="OracleDialectPrefix" /> 93 <include refid="OracleDialectPrefix" />
...@@ -130,16 +132,16 @@ ...@@ -130,16 +132,16 @@
130 UNIFIED_BUSINESS_NUM, CUSTOMS_SERIAL_NUM, TYPE_ID, 132 UNIFIED_BUSINESS_NUM, CUSTOMS_SERIAL_NUM, TYPE_ID,
131 TYPE_NAME, STATUS, REMARK, 133 TYPE_NAME, STATUS, REMARK,
132 CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME, 134 CREATE_TIME, CREATE_USER_ID, CREATE_USER_NAME,
133 - MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME 135 + MODIFY_TIME, MODIFY_USER_ID, MODIFY_USER_NAME,
134 - ) 136 + CONFIRM_PROMPTS)
135 values (#{id,jdbcType=NUMERIC}, #{loginName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, 137 values (#{id,jdbcType=NUMERIC}, #{loginName,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
136 #{password,jdbcType=VARCHAR}, #{userUuid,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, 138 #{password,jdbcType=VARCHAR}, #{userUuid,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR},
137 #{phone,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{accountNo,jdbcType=VARCHAR}, 139 #{phone,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{accountNo,jdbcType=VARCHAR},
138 #{unifiedBusinessNum,jdbcType=VARCHAR}, #{customsSerialNum,jdbcType=VARCHAR}, #{typeId,jdbcType=NUMERIC}, 140 #{unifiedBusinessNum,jdbcType=VARCHAR}, #{customsSerialNum,jdbcType=VARCHAR}, #{typeId,jdbcType=NUMERIC},
139 #{typeName,jdbcType=VARCHAR}, #{status,jdbcType=NUMERIC}, #{remark,jdbcType=VARCHAR}, 141 #{typeName,jdbcType=VARCHAR}, #{status,jdbcType=NUMERIC}, #{remark,jdbcType=VARCHAR},
140 #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC}, #{createUserName,jdbcType=VARCHAR}, 142 #{createTime,jdbcType=TIMESTAMP}, #{createUserId,jdbcType=NUMERIC}, #{createUserName,jdbcType=VARCHAR},
141 - #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC}, #{modifyUserName,jdbcType=VARCHAR} 143 + #{modifyTime,jdbcType=TIMESTAMP}, #{modifyUserId,jdbcType=NUMERIC}, #{modifyUserName,jdbcType=VARCHAR},
142 - ) 144 + #{confirmPrompts,jdbcType=NUMERIC})
143 </insert> 145 </insert>
144 <insert id="insertSelective" parameterType="com.fedex.connect.common.model.sys.User"> 146 <insert id="insertSelective" parameterType="com.fedex.connect.common.model.sys.User">
145 <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long"> 147 <selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
...@@ -208,6 +210,9 @@ ...@@ -208,6 +210,9 @@
208 <if test="modifyUserName != null"> 210 <if test="modifyUserName != null">
209 MODIFY_USER_NAME, 211 MODIFY_USER_NAME,
210 </if> 212 </if>
213 + <if test="confirmPrompts != null">
214 + CONFIRM_PROMPTS,
215 + </if>
211 </trim> 216 </trim>
212 <trim prefix="values (" suffix=")" suffixOverrides=","> 217 <trim prefix="values (" suffix=")" suffixOverrides=",">
213 #{id,jdbcType=NUMERIC}, 218 #{id,jdbcType=NUMERIC},
...@@ -271,6 +276,9 @@ ...@@ -271,6 +276,9 @@
271 <if test="modifyUserName != null"> 276 <if test="modifyUserName != null">
272 #{modifyUserName,jdbcType=VARCHAR}, 277 #{modifyUserName,jdbcType=VARCHAR},
273 </if> 278 </if>
279 + <if test="confirmPrompts != null">
280 + #{confirmPrompts,jdbcType=NUMERIC},
281 + </if>
274 </trim> 282 </trim>
275 </insert> 283 </insert>
276 <select id="countByExample" parameterType="com.fedex.connect.common.model.sys.UserExample" resultType="java.lang.Long"> 284 <select id="countByExample" parameterType="com.fedex.connect.common.model.sys.UserExample" resultType="java.lang.Long">
...@@ -345,6 +353,9 @@ ...@@ -345,6 +353,9 @@
345 <if test="record.modifyUserName != null"> 353 <if test="record.modifyUserName != null">
346 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR}, 354 MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
347 </if> 355 </if>
356 + <if test="record.confirmPrompts != null">
357 + CONFIRM_PROMPTS = #{record.confirmPrompts,jdbcType=NUMERIC},
358 + </if>
348 </set> 359 </set>
349 <if test="_parameter != null"> 360 <if test="_parameter != null">
350 <include refid="Update_By_Example_Where_Clause" /> 361 <include refid="Update_By_Example_Where_Clause" />
...@@ -372,7 +383,8 @@ ...@@ -372,7 +383,8 @@
372 CREATE_USER_NAME = #{record.createUserName,jdbcType=VARCHAR}, 383 CREATE_USER_NAME = #{record.createUserName,jdbcType=VARCHAR},
373 MODIFY_TIME = #{record.modifyTime,jdbcType=TIMESTAMP}, 384 MODIFY_TIME = #{record.modifyTime,jdbcType=TIMESTAMP},
374 MODIFY_USER_ID = #{record.modifyUserId,jdbcType=NUMERIC}, 385 MODIFY_USER_ID = #{record.modifyUserId,jdbcType=NUMERIC},
375 - MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR} 386 + MODIFY_USER_NAME = #{record.modifyUserName,jdbcType=VARCHAR},
387 + CONFIRM_PROMPTS = #{record.confirmPrompts,jdbcType=NUMERIC}
376 <if test="_parameter != null"> 388 <if test="_parameter != null">
377 <include refid="Update_By_Example_Where_Clause" /> 389 <include refid="Update_By_Example_Where_Clause" />
378 </if> 390 </if>
...@@ -440,6 +452,9 @@ ...@@ -440,6 +452,9 @@
440 <if test="modifyUserName != null"> 452 <if test="modifyUserName != null">
441 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR}, 453 MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
442 </if> 454 </if>
455 + <if test="confirmPrompts != null">
456 + CONFIRM_PROMPTS = #{confirmPrompts,jdbcType=NUMERIC},
457 + </if>
443 </set> 458 </set>
444 where ID = #{id,jdbcType=NUMERIC} 459 where ID = #{id,jdbcType=NUMERIC}
445 </update> 460 </update>
...@@ -464,7 +479,8 @@ ...@@ -464,7 +479,8 @@
464 CREATE_USER_NAME = #{createUserName,jdbcType=VARCHAR}, 479 CREATE_USER_NAME = #{createUserName,jdbcType=VARCHAR},
465 MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP}, 480 MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
466 MODIFY_USER_ID = #{modifyUserId,jdbcType=NUMERIC}, 481 MODIFY_USER_ID = #{modifyUserId,jdbcType=NUMERIC},
467 - MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR} 482 + MODIFY_USER_NAME = #{modifyUserName,jdbcType=VARCHAR},
483 + CONFIRM_PROMPTS = #{confirmPrompts,jdbcType=NUMERIC}
468 where ID = #{id,jdbcType=NUMERIC} 484 where ID = #{id,jdbcType=NUMERIC}
469 </update> 485 </update>
470 <sql id="OracleDialectPrefix"> 486 <sql id="OracleDialectPrefix">
......
...@@ -145,9 +145,9 @@ public class CeInfo implements Serializable { ...@@ -145,9 +145,9 @@ public class CeInfo implements Serializable {
145 private String shipperCity; 145 private String shipperCity;
146 146
147 /** 147 /**
148 - * 发货人邮 148 + * 发货人邮政编码
149 */ 149 */
150 - private String shipperEmail; 150 + private String shipperPostalCode;
151 151
152 /** 152 /**
153 * 收件联系人姓名 153 * 收件联系人姓名
...@@ -184,6 +184,16 @@ public class CeInfo implements Serializable { ...@@ -184,6 +184,16 @@ public class CeInfo implements Serializable {
184 */ 184 */
185 private String recipientCity; 185 private String recipientCity;
186 186
187 + /**
188 + * 收件人邮政编码
189 + */
190 + private String recipientPostalCode;
191 +
192 + /**
193 + * 文件或包裹(Y:包裹/ITEM,N:文件/DOC)
194 + */
195 + private String docNondocFlag;
196 +
187 private static final long serialVersionUID = 1L; 197 private static final long serialVersionUID = 1L;
188 198
189 public Long getId() { 199 public Long getId() {
...@@ -402,12 +412,12 @@ public class CeInfo implements Serializable { ...@@ -402,12 +412,12 @@ public class CeInfo implements Serializable {
402 this.shipperCity = shipperCity == null ? null : shipperCity.trim(); 412 this.shipperCity = shipperCity == null ? null : shipperCity.trim();
403 } 413 }
404 414
405 - public String getShipperEmail() { 415 + public String getShipperPostalCode() {
406 - return shipperEmail; 416 + return shipperPostalCode;
407 } 417 }
408 418
409 - public void setShipperEmail(String shipperEmail) { 419 + public void setShipperPostalCode(String shipperPostalCode) {
410 - this.shipperEmail = shipperEmail == null ? null : shipperEmail.trim(); 420 + this.shipperPostalCode = shipperPostalCode == null ? null : shipperPostalCode.trim();
411 } 421 }
412 422
413 public String getRecipientContactName() { 423 public String getRecipientContactName() {
...@@ -466,6 +476,22 @@ public class CeInfo implements Serializable { ...@@ -466,6 +476,22 @@ public class CeInfo implements Serializable {
466 this.recipientCity = recipientCity == null ? null : recipientCity.trim(); 476 this.recipientCity = recipientCity == null ? null : recipientCity.trim();
467 } 477 }
468 478
479 + public String getRecipientPostalCode() {
480 + return recipientPostalCode;
481 + }
482 +
483 + public void setRecipientPostalCode(String recipientPostalCode) {
484 + this.recipientPostalCode = recipientPostalCode == null ? null : recipientPostalCode.trim();
485 + }
486 +
487 + public String getDocNondocFlag() {
488 + return docNondocFlag;
489 + }
490 +
491 + public void setDocNondocFlag(String docNondocFlag) {
492 + this.docNondocFlag = docNondocFlag == null ? null : docNondocFlag.trim();
493 + }
494 +
469 @Override 495 @Override
470 public String toString() { 496 public String toString() {
471 StringBuilder sb = new StringBuilder(); 497 StringBuilder sb = new StringBuilder();
...@@ -499,7 +525,7 @@ public class CeInfo implements Serializable { ...@@ -499,7 +525,7 @@ public class CeInfo implements Serializable {
499 sb.append(", shipperAddrLine1=").append(shipperAddrLine1); 525 sb.append(", shipperAddrLine1=").append(shipperAddrLine1);
500 sb.append(", shipperAddrLine2=").append(shipperAddrLine2); 526 sb.append(", shipperAddrLine2=").append(shipperAddrLine2);
501 sb.append(", shipperCity=").append(shipperCity); 527 sb.append(", shipperCity=").append(shipperCity);
502 - sb.append(", shipperEmail=").append(shipperEmail); 528 + sb.append(", shipperPostalCode=").append(shipperPostalCode);
503 sb.append(", recipientContactName=").append(recipientContactName); 529 sb.append(", recipientContactName=").append(recipientContactName);
504 sb.append(", recipientPhone=").append(recipientPhone); 530 sb.append(", recipientPhone=").append(recipientPhone);
505 sb.append(", recipientCompany=").append(recipientCompany); 531 sb.append(", recipientCompany=").append(recipientCompany);
...@@ -507,6 +533,8 @@ public class CeInfo implements Serializable { ...@@ -507,6 +533,8 @@ public class CeInfo implements Serializable {
507 sb.append(", recipientAddrLine2=").append(recipientAddrLine2); 533 sb.append(", recipientAddrLine2=").append(recipientAddrLine2);
508 sb.append(", recipientAddrLine3=").append(recipientAddrLine3); 534 sb.append(", recipientAddrLine3=").append(recipientAddrLine3);
509 sb.append(", recipientCity=").append(recipientCity); 535 sb.append(", recipientCity=").append(recipientCity);
536 + sb.append(", recipientPostalCode=").append(recipientPostalCode);
537 + sb.append(", docNondocFlag=").append(docNondocFlag);
510 sb.append(", serialVersionUID=").append(serialVersionUID); 538 sb.append(", serialVersionUID=").append(serialVersionUID);
511 sb.append("]"); 539 sb.append("]");
512 return sb.toString(); 540 return sb.toString();
......
...@@ -110,9 +110,9 @@ public class Consignment implements Serializable { ...@@ -110,9 +110,9 @@ public class Consignment implements Serializable {
110 private String shipperCity; 110 private String shipperCity;
111 111
112 /** 112 /**
113 - * 发货人邮 113 + * 发货人邮政编码
114 */ 114 */
115 - private String shipperEmail; 115 + private String shipperPostalCode;
116 116
117 /** 117 /**
118 * 收件联系人姓名 118 * 收件联系人姓名
...@@ -214,6 +214,27 @@ public class Consignment implements Serializable { ...@@ -214,6 +214,27 @@ public class Consignment implements Serializable {
214 */ 214 */
215 private Long ceInfoId; 215 private Long ceInfoId;
216 216
217 + /**
218 + * 收件人邮政编码
219 + */
220 + private String recipientPostalCode;
221 +
222 + /**
223 + * 运单状态ID,
224 +关联数据字典表。指定字典目录CODE:CONSIGNMENT_STATUS
225 + */
226 + private Long statusId;
227 +
228 + /**
229 + * 运单状态名称(待上传、已上传、已发送)
230 + */
231 + private String statusName;
232 +
233 + /**
234 + * 文件或包裹(Y:包裹/ITEM,N:文件/DOC)
235 + */
236 + private String docNondocFlag;
237 +
217 private static final long serialVersionUID = 1L; 238 private static final long serialVersionUID = 1L;
218 239
219 public Long getId() { 240 public Long getId() {
...@@ -376,12 +397,12 @@ public class Consignment implements Serializable { ...@@ -376,12 +397,12 @@ public class Consignment implements Serializable {
376 this.shipperCity = shipperCity == null ? null : shipperCity.trim(); 397 this.shipperCity = shipperCity == null ? null : shipperCity.trim();
377 } 398 }
378 399
379 - public String getShipperEmail() { 400 + public String getShipperPostalCode() {
380 - return shipperEmail; 401 + return shipperPostalCode;
381 } 402 }
382 403
383 - public void setShipperEmail(String shipperEmail) { 404 + public void setShipperPostalCode(String shipperPostalCode) {
384 - this.shipperEmail = shipperEmail == null ? null : shipperEmail.trim(); 405 + this.shipperPostalCode = shipperPostalCode == null ? null : shipperPostalCode.trim();
385 } 406 }
386 407
387 public String getRecipientContactName() { 408 public String getRecipientContactName() {
...@@ -544,6 +565,38 @@ public class Consignment implements Serializable { ...@@ -544,6 +565,38 @@ public class Consignment implements Serializable {
544 this.ceInfoId = ceInfoId; 565 this.ceInfoId = ceInfoId;
545 } 566 }
546 567
568 + public String getRecipientPostalCode() {
569 + return recipientPostalCode;
570 + }
571 +
572 + public void setRecipientPostalCode(String recipientPostalCode) {
573 + this.recipientPostalCode = recipientPostalCode == null ? null : recipientPostalCode.trim();
574 + }
575 +
576 + public Long getStatusId() {
577 + return statusId;
578 + }
579 +
580 + public void setStatusId(Long statusId) {
581 + this.statusId = statusId;
582 + }
583 +
584 + public String getStatusName() {
585 + return statusName;
586 + }
587 +
588 + public void setStatusName(String statusName) {
589 + this.statusName = statusName == null ? null : statusName.trim();
590 + }
591 +
592 + public String getDocNondocFlag() {
593 + return docNondocFlag;
594 + }
595 +
596 + public void setDocNondocFlag(String docNondocFlag) {
597 + this.docNondocFlag = docNondocFlag == null ? null : docNondocFlag.trim();
598 + }
599 +
547 @Override 600 @Override
548 public String toString() { 601 public String toString() {
549 StringBuilder sb = new StringBuilder(); 602 StringBuilder sb = new StringBuilder();
...@@ -570,7 +623,7 @@ public class Consignment implements Serializable { ...@@ -570,7 +623,7 @@ public class Consignment implements Serializable {
570 sb.append(", shipperAddrLine1=").append(shipperAddrLine1); 623 sb.append(", shipperAddrLine1=").append(shipperAddrLine1);
571 sb.append(", shipperAddrLine2=").append(shipperAddrLine2); 624 sb.append(", shipperAddrLine2=").append(shipperAddrLine2);
572 sb.append(", shipperCity=").append(shipperCity); 625 sb.append(", shipperCity=").append(shipperCity);
573 - sb.append(", shipperEmail=").append(shipperEmail); 626 + sb.append(", shipperPostalCode=").append(shipperPostalCode);
574 sb.append(", recipientContactName=").append(recipientContactName); 627 sb.append(", recipientContactName=").append(recipientContactName);
575 sb.append(", recipientPhone=").append(recipientPhone); 628 sb.append(", recipientPhone=").append(recipientPhone);
576 sb.append(", recipientCompany=").append(recipientCompany); 629 sb.append(", recipientCompany=").append(recipientCompany);
...@@ -591,6 +644,10 @@ public class Consignment implements Serializable { ...@@ -591,6 +644,10 @@ public class Consignment implements Serializable {
591 sb.append(", modifyUserId=").append(modifyUserId); 644 sb.append(", modifyUserId=").append(modifyUserId);
592 sb.append(", modifyUserName=").append(modifyUserName); 645 sb.append(", modifyUserName=").append(modifyUserName);
593 sb.append(", ceInfoId=").append(ceInfoId); 646 sb.append(", ceInfoId=").append(ceInfoId);
647 + sb.append(", recipientPostalCode=").append(recipientPostalCode);
648 + sb.append(", statusId=").append(statusId);
649 + sb.append(", statusName=").append(statusName);
650 + sb.append(", docNondocFlag=").append(docNondocFlag);
594 sb.append(", serialVersionUID=").append(serialVersionUID); 651 sb.append(", serialVersionUID=").append(serialVersionUID);
595 sb.append("]"); 652 sb.append("]");
596 return sb.toString(); 653 return sb.toString();
......
...@@ -114,6 +114,11 @@ public class User implements Serializable { ...@@ -114,6 +114,11 @@ public class User implements Serializable {
114 */ 114 */
115 private String modifyUserName; 115 private String modifyUserName;
116 116
117 + /**
118 + * 是否弹出确认提醒框(0:不提醒,1:提醒)
119 + */
120 + private Long confirmPrompts;
121 +
117 private static final long serialVersionUID = 1L; 122 private static final long serialVersionUID = 1L;
118 123
119 public Long getId() { 124 public Long getId() {
...@@ -284,6 +289,14 @@ public class User implements Serializable { ...@@ -284,6 +289,14 @@ public class User implements Serializable {
284 this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim(); 289 this.modifyUserName = modifyUserName == null ? null : modifyUserName.trim();
285 } 290 }
286 291
292 + public Long getConfirmPrompts() {
293 + return confirmPrompts;
294 + }
295 +
296 + public void setConfirmPrompts(Long confirmPrompts) {
297 + this.confirmPrompts = confirmPrompts;
298 + }
299 +
287 @Override 300 @Override
288 public String toString() { 301 public String toString() {
289 StringBuilder sb = new StringBuilder(); 302 StringBuilder sb = new StringBuilder();
...@@ -311,6 +324,7 @@ public class User implements Serializable { ...@@ -311,6 +324,7 @@ public class User implements Serializable {
311 sb.append(", modifyTime=").append(modifyTime); 324 sb.append(", modifyTime=").append(modifyTime);
312 sb.append(", modifyUserId=").append(modifyUserId); 325 sb.append(", modifyUserId=").append(modifyUserId);
313 sb.append(", modifyUserName=").append(modifyUserName); 326 sb.append(", modifyUserName=").append(modifyUserName);
327 + sb.append(", confirmPrompts=").append(confirmPrompts);
314 sb.append(", serialVersionUID=").append(serialVersionUID); 328 sb.append(", serialVersionUID=").append(serialVersionUID);
315 sb.append("]"); 329 sb.append("]");
316 return sb.toString(); 330 return sb.toString();
......
...@@ -1524,6 +1524,66 @@ public class UserExample { ...@@ -1524,6 +1524,66 @@ public class UserExample {
1524 addCriterion("MODIFY_USER_NAME not between", value1, value2, "modifyUserName"); 1524 addCriterion("MODIFY_USER_NAME not between", value1, value2, "modifyUserName");
1525 return (Criteria) this; 1525 return (Criteria) this;
1526 } 1526 }
1527 +
1528 + public Criteria andConfirmPromptsIsNull() {
1529 + addCriterion("CONFIRM_PROMPTS is null");
1530 + return (Criteria) this;
1531 + }
1532 +
1533 + public Criteria andConfirmPromptsIsNotNull() {
1534 + addCriterion("CONFIRM_PROMPTS is not null");
1535 + return (Criteria) this;
1536 + }
1537 +
1538 + public Criteria andConfirmPromptsEqualTo(Long value) {
1539 + addCriterion("CONFIRM_PROMPTS =", value, "confirmPrompts");
1540 + return (Criteria) this;
1541 + }
1542 +
1543 + public Criteria andConfirmPromptsNotEqualTo(Long value) {
1544 + addCriterion("CONFIRM_PROMPTS <>", value, "confirmPrompts");
1545 + return (Criteria) this;
1546 + }
1547 +
1548 + public Criteria andConfirmPromptsGreaterThan(Long value) {
1549 + addCriterion("CONFIRM_PROMPTS >", value, "confirmPrompts");
1550 + return (Criteria) this;
1551 + }
1552 +
1553 + public Criteria andConfirmPromptsGreaterThanOrEqualTo(Long value) {
1554 + addCriterion("CONFIRM_PROMPTS >=", value, "confirmPrompts");
1555 + return (Criteria) this;
1556 + }
1557 +
1558 + public Criteria andConfirmPromptsLessThan(Long value) {
1559 + addCriterion("CONFIRM_PROMPTS <", value, "confirmPrompts");
1560 + return (Criteria) this;
1561 + }
1562 +
1563 + public Criteria andConfirmPromptsLessThanOrEqualTo(Long value) {
1564 + addCriterion("CONFIRM_PROMPTS <=", value, "confirmPrompts");
1565 + return (Criteria) this;
1566 + }
1567 +
1568 + public Criteria andConfirmPromptsIn(List<Long> values) {
1569 + addCriterion("CONFIRM_PROMPTS in", values, "confirmPrompts");
1570 + return (Criteria) this;
1571 + }
1572 +
1573 + public Criteria andConfirmPromptsNotIn(List<Long> values) {
1574 + addCriterion("CONFIRM_PROMPTS not in", values, "confirmPrompts");
1575 + return (Criteria) this;
1576 + }
1577 +
1578 + public Criteria andConfirmPromptsBetween(Long value1, Long value2) {
1579 + addCriterion("CONFIRM_PROMPTS between", value1, value2, "confirmPrompts");
1580 + return (Criteria) this;
1581 + }
1582 +
1583 + public Criteria andConfirmPromptsNotBetween(Long value1, Long value2) {
1584 + addCriterion("CONFIRM_PROMPTS not between", value1, value2, "confirmPrompts");
1585 + return (Criteria) this;
1586 + }
1527 } 1587 }
1528 1588
1529 public static class Criteria extends GeneratedCriteria { 1589 public static class Criteria extends GeneratedCriteria {
......
...@@ -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.biz" 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.biz" 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.biz" 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>
...@@ -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.config; 1 package com.fedex.connect.common.dependencies.config;
2 2
3 3
4 -import com.fedex.connect.common.dependencies.contants.DatabaseConstants; 4 +import com.fedex.connect.common.dependencies.contants.DictionaryConstants;
5 +import com.fedex.connect.common.dependencies.contants.DigitConstants;
5 import com.fedex.connect.common.dependencies.service.bi.IDictionaryEntriesService; 6 import com.fedex.connect.common.dependencies.service.bi.IDictionaryEntriesService;
6 import com.fedex.connect.common.dependencies.util.Utils; 7 import com.fedex.connect.common.dependencies.util.Utils;
7 import com.fedex.connect.common.model.bi.DictionaryEntries; 8 import com.fedex.connect.common.model.bi.DictionaryEntries;
...@@ -24,20 +25,11 @@ import java.util.stream.Collectors; ...@@ -24,20 +25,11 @@ import java.util.stream.Collectors;
24 @Component 25 @Component
25 @Order(1) 26 @Order(1)
26 public class CacheSystem implements CommandLineRunner { 27 public class CacheSystem implements CommandLineRunner {
27 -
28 private static final Logger log = LoggerFactory.getLogger(CacheSystem.class); 28 private static final Logger log = LoggerFactory.getLogger(CacheSystem.class);
29 -
30 @Autowired 29 @Autowired
31 IDictionaryEntriesService iDictionaryEntriesService; 30 IDictionaryEntriesService iDictionaryEntriesService;
32 - 31 + //静态缓存数据
33 - 32 + private Map<String, List<DictionaryEntries>> dictionaryMap;
34 - // 静态缓存数据
35 - public static List<DictionaryEntries> dictionaryListAll = new ArrayList<>();
36 - public static Map<String, List<DictionaryEntries>> dictionaryMap = new HashMap<>();
37 - public static Map<String, String> declarationTypeMap = new HashMap<>();
38 - public static Map<String, String> deliveryStatusMap = new HashMap<>();
39 - public static Map<String, String> operStatusMap = new HashMap<>();
40 - public static List<DictionaryEntries> currencyCdList = new ArrayList<>();
41 33
42 @Override 34 @Override
43 public void run(String... args) { 35 public void run(String... args) {
...@@ -48,30 +40,51 @@ public class CacheSystem implements CommandLineRunner { ...@@ -48,30 +40,51 @@ public class CacheSystem implements CommandLineRunner {
48 } 40 }
49 log.info("System init load to cache in memory start"); 41 log.info("System init load to cache in memory start");
50 try{ 42 try{
51 - CacheSystem.dictionaryListAll = dictionaryData; 43 + List<DictionaryEntries> dictionaryListAll = dictionaryData;
52 - if (CollectionUtils.isEmpty(CacheSystem.dictionaryListAll)){ 44 + if (CollectionUtils.isEmpty(dictionaryListAll)){
53 return; 45 return;
54 } 46 }
55 - 47 + dictionaryMap = Utils.listOf(dictionaryListAll).stream().filter(Objects::nonNull)
56 - CacheSystem.dictionaryMap = Utils.listOf(CacheSystem.dictionaryListAll).stream().filter(Objects::nonNull)
57 .collect(Collectors.groupingBy(DictionaryEntries::getDictCode)); 48 .collect(Collectors.groupingBy(DictionaryEntries::getDictCode));
49 + } catch (Exception e){
50 + log.error("load cache error:{}",e);
51 + }
52 + log.info("System init load to cache in memory end");
53 + }
58 54
59 - List<DictionaryEntries> declarationTypeList = CacheSystem.dictionaryMap.get(DatabaseConstants.DICT_CUSTOMS_DECLARATION_TYPE_CODE); 55 + /**
60 - CacheSystem.declarationTypeMap = Utils.listOf(declarationTypeList).stream() 56 + * @Author mt
61 - .collect(Collectors.toMap(DictionaryEntries::getCode, DictionaryEntries::getEnglishName)); 57 + * @Description 获取目录层级下所有目录
62 - 58 + * @Date 2024/11/4
63 - List<DictionaryEntries> deliveryStatusList = CacheSystem.dictionaryMap.get(DatabaseConstants.DICT_DELIVERY_STATUS_CODE); 59 + * @param dicCode
64 - CacheSystem.deliveryStatusMap = Utils.listOf(deliveryStatusList).stream() 60 + * @return java.util.List<com.fedex.connect.common.model.bi.DictionaryEntries>
65 - .collect(Collectors.toMap(DictionaryEntries::getCode, DictionaryEntries::getEnglishName)); 61 + */
62 + public List<DictionaryEntries> getDictionarysByDicCode(String dicCode){
63 + return dictionaryMap.get(dicCode);
64 + }
66 65
67 - List<DictionaryEntries> operStatusList = CacheSystem.dictionaryMap.get(DatabaseConstants.DICT_OPER_STATUS_CODE); 66 + /**
68 - CacheSystem.operStatusMap = Utils.listOf(operStatusList).stream() 67 + * @Author mt
69 - .collect(Collectors.toMap(DictionaryEntries::getCode, DictionaryEntries::getEnglishName)); 68 + * @Description 获取用户类型指定字典项
69 + * @Date 2024/11/4
70 + * @param code
71 + * @return com.fedex.connect.common.model.bi.DictionaryEntries
72 + */
73 + public DictionaryEntries getDicUserType(String code){
74 + List<DictionaryEntries> filter = dictionaryMap.get(DictionaryConstants.USER_TYPE).stream().filter(p -> code.equals(p.getCode())).collect(Collectors.toList());
75 + return filter.isEmpty() ? null : filter.get(DigitConstants.DIGIT_ZERO);
76 + }
70 77
71 - CacheSystem.currencyCdList = CacheSystem.dictionaryMap.get(DatabaseConstants.DICT_CURRENCY_CD_CODE); 78 + /**
72 - } catch (Exception e){ 79 + * @Author mt
73 - log.error("load cache error:{}",e); 80 + * @Description 获取运单状态指定字典项
74 - } log.info("System init load to cache in memory end"); 81 + * @Date 2024/11/4
82 + * @param code
83 + * @return com.fedex.connect.common.model.bi.DictionaryEntries
84 + */
85 + public DictionaryEntries getDicConsignmentStatus(String code){
86 + List<DictionaryEntries> filter = dictionaryMap.get(DictionaryConstants.CONSIGNMENT_STATUS).stream().filter(p -> code.equals(p.getCode())).collect(Collectors.toList());
87 + return filter.isEmpty() ? null : filter.get(DigitConstants.DIGIT_ZERO);
75 } 88 }
76 } 89 }
77 90
......
...@@ -12,57 +12,4 @@ public class DatabaseConstants { ...@@ -12,57 +12,4 @@ public class DatabaseConstants {
12 */ 12 */
13 public static final Long GLOBAL_STATUS_VALID = 1L; 13 public static final Long GLOBAL_STATUS_VALID = 1L;
14 public static final Long GLOBAL_STATUS_DEL = 0L; 14 public static final Long GLOBAL_STATUS_DEL = 0L;
15 -
16 -
17 - /**
18 - * 定义用户操作类型常量
19 - * 1:登录 2:退出 3:修改密码4:FCL登录注册。5:停用,6:启用
20 - */
21 - public static final Long USER_OPER_LOGIN = 1L;
22 - public static final Long USER_OPER_LOGOUT = 2L;
23 - public static final Long USER_OPER_UPD_PWD = 3L;
24 - public static final Long USER_OPER_FCL_REGISTER = 4L;
25 - public static final Long USER_OPER_STOP = 5L;
26 - public static final Long USER_OPER_INIT = 6L;
27 -
28 -
29 - /**
30 - * 用户类型
31 - * 在线申报平台账号
32 - */
33 - public static final String DICT_USER_GOOUP_CODE = "user_type";
34 - public static final String DICT_USER_DEFAULT_CODE = "default";
35 - public static final String DICT_USER_FEDEX_CODE = "fedex";
36 -
37 - /**
38 - * 角色类型
39 - * admin
40 - */
41 - public static final String DICT_ROLE_GOOUP_CODE = "role_type";
42 - public static final String DICT_ROLE_DEFAULT_CODE = "admin";
43 -
44 - /**
45 - * 报关类别
46 - */
47 - public static final String DICT_CUSTOMS_DECLARATION_TYPE_CODE = "customs_declaration_type";
48 -
49 -
50 - /**
51 - * 币种
52 - */
53 - public static final String DICT_CURRENCY_CD_CODE = "currency_cd";
54 -
55 - /**
56 - * 提单状态
57 - */
58 - public static final String DICT_DELIVERY_STATUS_CODE = "delivery_status";
59 -
60 - /**
61 - * 操作状态
62 - */
63 - public static final String DICT_OPER_STATUS_CODE = "oper_status";
64 -
65 -
66 - public static final String FCL_PREFIX = "FCL";
67 -
68 } 15 }
......
...@@ -11,18 +11,18 @@ public enum ConsignmentStatusEnum { ...@@ -11,18 +11,18 @@ public enum ConsignmentStatusEnum {
11 CONSIGNMENT_STATUS_03("consignmentStatus_03", "已发送"); 11 CONSIGNMENT_STATUS_03("consignmentStatus_03", "已发送");
12 12
13 private String code; 13 private String code;
14 - private String msg; 14 + private String name;
15 15
16 - ConsignmentStatusEnum(String code, String msg) { 16 + ConsignmentStatusEnum(String code, String name) {
17 this.code = code; 17 this.code = code;
18 - this.msg = msg; 18 + this.name = name;
19 } 19 }
20 20
21 public String getCode() { 21 public String getCode() {
22 return code; 22 return code;
23 } 23 }
24 24
25 - public String getMsg() { 25 + public String getName() {
26 - return msg; 26 + return name;
27 } 27 }
28 } 28 }
......
...@@ -11,18 +11,18 @@ public enum KafkaStatusEnum { ...@@ -11,18 +11,18 @@ public enum KafkaStatusEnum {
11 PROCESSING_FAILED(2L, "处理失败"); 11 PROCESSING_FAILED(2L, "处理失败");
12 12
13 private Long code; 13 private Long code;
14 - private String msg; 14 + private String name;
15 15
16 - KafkaStatusEnum(Long code, String msg) { 16 + KafkaStatusEnum(Long code, String name) {
17 this.code = code; 17 this.code = code;
18 - this.msg = msg; 18 + this.name = name;
19 } 19 }
20 20
21 public Long getCode() { 21 public Long getCode() {
22 return code; 22 return code;
23 } 23 }
24 24
25 - public String getMsg() { 25 + public String getName() {
26 - return msg; 26 + return name;
27 } 27 }
28 } 28 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -8,4 +8,11 @@ public interface IConsignmentRepository { ...@@ -8,4 +8,11 @@ public interface IConsignmentRepository {
8 Consignment save(Consignment entity); 8 Consignment save(Consignment entity);
9 9
10 void saveAll(List<Consignment> list); 10 void saveAll(List<Consignment> list);
11 +
12 + /**
13 + * @Author mt
14 + * @Description 根据运单号查找30天之前运单
15 + * @Date 2024/11/4
16 + */
17 + Consignment findThirtyDaysAgoConByCode(String consignmentCode);
11 } 18 }
......
1 package com.fedex.connect.kafka.repository.repo.impl; 1 package com.fedex.connect.kafka.repository.repo.impl;
2 2
3 +import com.fedex.connect.common.dependencies.util.Utils;
3 import com.fedex.connect.common.model.biz.Consignment; 4 import com.fedex.connect.common.model.biz.Consignment;
5 +import com.fedex.connect.common.model.biz.ConsignmentExample;
4 import com.fedex.connect.kafka.repository.base.AbstractDaoRepository; 6 import com.fedex.connect.kafka.repository.base.AbstractDaoRepository;
5 import com.fedex.connect.kafka.repository.repo.IConsignmentRepository; 7 import com.fedex.connect.kafka.repository.repo.IConsignmentRepository;
8 +import lombok.extern.slf4j.Slf4j;
6 import org.springframework.stereotype.Repository; 9 import org.springframework.stereotype.Repository;
7 10
11 +import java.util.Calendar;
12 +import java.util.Date;
8 import java.util.List; 13 import java.util.List;
9 14
15 +@Slf4j
10 @Repository 16 @Repository
11 public class ConsignmentRepositoryImpl extends AbstractDaoRepository implements IConsignmentRepository { 17 public class ConsignmentRepositoryImpl extends AbstractDaoRepository implements IConsignmentRepository {
12 @Override 18 @Override
...@@ -31,4 +37,24 @@ public class ConsignmentRepositoryImpl extends AbstractDaoRepository implements ...@@ -31,4 +37,24 @@ public class ConsignmentRepositoryImpl extends AbstractDaoRepository implements
31 } 37 }
32 }); 38 });
33 } 39 }
34 -} 40 +
41 + /**
42 + * @Author mt
43 + * @Description 根据运单号查找30天之前运单
44 + * @Date 2024/11/4
45 + * @param consignmentCode
46 + * @return com.fedex.connect.common.model.biz.Consignment
47 + */
48 + public Consignment findThirtyDaysAgoConByCode(String consignmentCode) {
49 + //获取30天内运单数据
50 + Calendar calendar = Calendar.getInstance();
51 + calendar.add(Calendar.DAY_OF_MONTH, -30);
52 + Date thirtyDaysAgo = calendar.getTime();
53 + ConsignmentExample example = new ConsignmentExample();
54 + ConsignmentExample.Criteria criteria = example.createCriteria();
55 + criteria.andConsignmentCodeEqualTo(consignmentCode);
56 + criteria.andCreateTimeGreaterThan(thirtyDaysAgo);
57 + example.setOrderByClause("CREATE_TIME DESC");
58 + return Utils.first(consignmentMapper.selectByExample(example));
59 + }
60 +}
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -54,8 +54,11 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service { ...@@ -54,8 +54,11 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service {
54 //该运单号不存在创建时间为1个月内CE数据 54 //该运单号不存在创建时间为1个月内CE数据
55 if (Objects.isNull(bizCeInfo)) { 55 if (Objects.isNull(bizCeInfo)) {
56 CeInfo ceInfo = dm501Util.generateCeInfo(consignment501,kafKaTemporaryStorage.getSendTime()); 56 CeInfo ceInfo = dm501Util.generateCeInfo(consignment501,kafKaTemporaryStorage.getSendTime());
57 - Consignment consignment = dm501Util.generateConsignment(ceInfo); 57 + //ce数据解析正常,进行后续操作
58 - this.saveCeInfoAndConsignment(ceInfo,consignment); 58 + if(Objects.nonNull(ceInfo)){
59 + Consignment consignment = dm501Util.generateConsignment(ceInfo);
60 + this.saveCeInfoAndConsignment(ceInfo,consignment);
61 + }
59 } 62 }
60 }catch(Exception ex){ 63 }catch(Exception ex){
61 log.error("DM501消息处理异常:{}", ex.getMessage(),ex); 64 log.error("DM501消息处理异常:{}", ex.getMessage(),ex);
...@@ -74,7 +77,9 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service { ...@@ -74,7 +77,9 @@ public class Dm501ServiceImpl extends BaseService implements IDm501Service {
74 */ 77 */
75 @Transactional(rollbackFor = Exception.class) 78 @Transactional(rollbackFor = Exception.class)
76 public void saveCeInfoAndConsignment(CeInfo ceInfo, Consignment consignment){ 79 public void saveCeInfoAndConsignment(CeInfo ceInfo, Consignment consignment){
77 - consignmentRepository.save(consignment);
78 ceInfoRepository.save(ceInfo); 80 ceInfoRepository.save(ceInfo);
81 + //绑定ceInfo表Id
82 + consignment.setCeInfoId(ceInfo.getId());
83 + consignmentRepository.save(consignment);
79 } 84 }
80 } 85 }
...\ 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.config.CacheSystem;
4 +import com.fedex.connect.common.dependencies.enums.biz.ConsignmentStatusEnum;
3 import com.fedex.connect.common.dependencies.util.AssignmentFieldUtils; 5 import com.fedex.connect.common.dependencies.util.AssignmentFieldUtils;
4 import com.fedex.connect.common.dependencies.util.DateUtil; 6 import com.fedex.connect.common.dependencies.util.DateUtil;
7 +import com.fedex.connect.common.model.bi.DictionaryEntries;
5 import com.fedex.connect.common.model.biz.CeInfo; 8 import com.fedex.connect.common.model.biz.CeInfo;
6 import com.fedex.connect.common.model.biz.Consignment; 9 import com.fedex.connect.common.model.biz.Consignment;
7 import com.fedex.connect.kafka.constants.Constant; 10 import com.fedex.connect.kafka.constants.Constant;
8 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501ConAddresses; 11 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501ConAddresses;
9 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501Consignments; 12 import com.fedex.connect.kafka.data.dto.dm.dm501.Dm501Consignments;
13 +import com.fedex.connect.kafka.repository.repo.IConsignmentRepository;
10 import org.apache.commons.lang3.StringUtils; 14 import org.apache.commons.lang3.StringUtils;
15 +import org.springframework.beans.BeanUtils;
16 +import org.springframework.beans.factory.annotation.Autowired;
11 import org.springframework.stereotype.Component; 17 import org.springframework.stereotype.Component;
12 18
13 import java.math.BigDecimal; 19 import java.math.BigDecimal;
...@@ -18,6 +24,11 @@ import java.util.Objects; ...@@ -18,6 +24,11 @@ import java.util.Objects;
18 @Component 24 @Component
19 public class Dm501Util { 25 public class Dm501Util {
20 26
27 + @Autowired
28 + CacheSystem cacheSystem;
29 + @Autowired
30 + IConsignmentRepository consignmentRepository;
31 +
21 /** 32 /**
22 * @Author mt 33 * @Author mt
23 * @Description 生成CE数据实体 34 * @Description 生成CE数据实体
...@@ -55,11 +66,11 @@ public class Dm501Util { ...@@ -55,11 +66,11 @@ public class Dm501Util {
55 /** 66 /**
56 * 发件人信息处理 67 * 发件人信息处理
57 */ 68 */
58 - this.generateCeInfoShipper(); 69 + this.generateCeInfoShipper(ceInfo,shipperAddress);
59 /** 70 /**
60 * 收件人信息处理 71 * 收件人信息处理
61 */ 72 */
62 - this.generateCeInfoRecipient(); 73 + this.generateCeInfoRecipient(ceInfo,recipientAddress);
63 return ceInfo; 74 return ceInfo;
64 } 75 }
65 76
...@@ -109,13 +120,29 @@ public class Dm501Util { ...@@ -109,13 +120,29 @@ public class Dm501Util {
109 * @param 120 * @param
110 * @return void 121 * @return void
111 */ 122 */
112 - private void generateCeInfoShipper(){ 123 + private void generateCeInfoShipper(CeInfo ceInfo,Dm501ConAddresses shipperAddress){
113 //发件人国家 124 //发件人国家
114 -// String shipperCountry = shipperAddress.getCountry(); 125 + String shipperCountry = shipperAddress.getCountry();
115 -// //始发国(二字码) 126 + //始发国(二字码)
116 -// ceInfo.setShipperCountry(shipperCountry); 127 + ceInfo.setShipperCountry(shipperCountry);
117 //原产国全称 128 //原产国全称
118 // ceInfo.setOriginCountry(); 129 // ceInfo.setOriginCountry();
130 + //发货联系人姓名
131 + ceInfo.setShipperContactName(shipperAddress.getContactName());
132 + //发货人手机号
133 + ceInfo.setShipperPhone(shipperAddress.getContactPhoneNumber());
134 + //发货人计费账号
135 + ceInfo.setShipperAccount(shipperAddress.getAccount());
136 + //发货人公司
137 + ceInfo.setShipperCompany(shipperAddress.getCompanyName());
138 + //发货人地址1
139 + ceInfo.setShipperAddrLine1(shipperAddress.getAddressDesc1());
140 + //发货人地址2
141 + ceInfo.setShipperAddrLine2(shipperAddress.getAddressDesc2());
142 + //发货人城市
143 + ceInfo.setShipperCity(shipperAddress.getCityName());
144 + //发货人邮政编码
145 + ceInfo.setShipperPostalCode(shipperAddress.getPostalCode());
119 } 146 }
120 147
121 /** 148 /**
...@@ -125,13 +152,29 @@ public class Dm501Util { ...@@ -125,13 +152,29 @@ public class Dm501Util {
125 * @param 152 * @param
126 * @return void 153 * @return void
127 */ 154 */
128 - private void generateCeInfoRecipient(){ 155 + private void generateCeInfoRecipient(CeInfo ceInfo,Dm501ConAddresses recipientAddress){
129 //收件人国家 156 //收件人国家
130 -// String recipientCountry = recipientAddress.getCountry(); 157 + String recipientCountry = recipientAddress.getCountry();
131 // //目的国家二字码 158 // //目的国家二字码
132 -// ceInfo.setRecipientCountry(recipientCountry); 159 + ceInfo.setRecipientCountry(recipientCountry);
133 //目的国全称 160 //目的国全称
134 // ceInfo.setDestinationCountry(); 161 // ceInfo.setDestinationCountry();
162 + //收件联系人姓名
163 + ceInfo.setRecipientContactName(recipientAddress.getContactName());
164 + //收件人手机号
165 + ceInfo.setRecipientPhone(recipientAddress.getContactPhoneNumber());
166 + //收件人公司
167 + ceInfo.setRecipientCompany(recipientAddress.getCompanyName());
168 + //收件人地址1
169 + ceInfo.setRecipientAddrLine1(recipientAddress.getAddressDesc1());
170 + //收件人地址2
171 + ceInfo.setRecipientAddrLine2(recipientAddress.getAddressDesc2());
172 + //收件人地址3
173 + ceInfo.setRecipientAddrLine3(recipientAddress.getAddressDesc3());
174 + //收件人城市
175 + ceInfo.setRecipientCity(recipientAddress.getCityName());
176 + //收件人邮政编码
177 + ceInfo.setRecipientPostalCode(recipientAddress.getPostalCode());
135 } 178 }
136 179
137 /** 180 /**
...@@ -141,8 +184,30 @@ public class Dm501Util { ...@@ -141,8 +184,30 @@ public class Dm501Util {
141 * @param ceInfo 184 * @param ceInfo
142 * @return com.fedex.connect.common.model.biz.Consignment 185 * @return com.fedex.connect.common.model.biz.Consignment
143 */ 186 */
144 - public Consignment generateConsignment(CeInfo ceInfo) { 187 + public Consignment generateConsignment(CeInfo ceInfo) throws Exception{
145 - return null; 188 + Consignment rsConsignment = null;
189 + /**
190 + * 根据运单号查找30天之前运单
191 + */
192 + Consignment consignment = consignmentRepository.findThirtyDaysAgoConByCode(ceInfo.getConsignmentCode());
193 + if(Objects.isNull(consignment)){
194 + Consignment resultConsignment = new Consignment();
195 + BeanUtils.copyProperties(ceInfo,resultConsignment);
196 + //运单状态赋值为"待上传"
197 + DictionaryEntries consignmentDicEntries = cacheSystem.getDicConsignmentStatus(ConsignmentStatusEnum.CONSIGNMENT_STATUS_01.getCode());
198 + resultConsignment.setStatusId(consignmentDicEntries.getId());
199 + resultConsignment.setStatusName(consignmentDicEntries.getDescription());
200 + /**
201 + * 初始化表基础字段
202 + */
203 + AssignmentFieldUtils.assignmentTableBaseField(resultConsignment);
204 + rsConsignment = resultConsignment;
205 + }else{
206 + BeanUtils.copyProperties(ceInfo,consignment);
207 + rsConsignment = consignment;
208 + }
209 +
210 + return rsConsignment;
146 } 211 }
147 212
148 /** 213 /**
......