Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
b41fefdd
Commit
b41fefdd
authored
Sep 26, 2022
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复校验判断错误问题
parent
1ed64397
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
+1
-1
order-application-service/src/test/spock/cn/freemud/service/impl/OrderInfo2OrderBean.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/adapter/OrderAdapter.java
View file @
b41fefdd
...
@@ -2271,7 +2271,7 @@ public class OrderAdapter {
...
@@ -2271,7 +2271,7 @@ public class OrderAdapter {
orderPrintDto
.
setAddress
(
orderBean
.
getAddress
());
orderPrintDto
.
setAddress
(
orderBean
.
getAddress
());
orderPrintDto
.
setGmtExpect
(
orderBean
.
getGmtExpect
()
==
null
?
"立即送出"
:
(
DateUtil
.
convert2String
(
new
Date
(
orderBean
.
getGmtExpect
()),
orderPrintDto
.
setGmtExpect
(
orderBean
.
getGmtExpect
()
==
null
?
"立即送出"
:
(
DateUtil
.
convert2String
(
new
Date
(
orderBean
.
getGmtExpect
()),
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
)));
DateUtil
.
FORMAT_YYYY_MM_DD_HHMMSS
)));
if
(
orderBean
.
getAddInfo
()
!=
null
&&
Objects
.
equals
(
orderBean
.
getAddInfo
().
getDeliveryType
(),
StoreDeliveryMethod
.
THIRD
.
get
Typ
e
()))
{
if
(
orderBean
.
getAddInfo
()
!=
null
&&
Objects
.
equals
(
orderBean
.
getAddInfo
().
getDeliveryType
(),
StoreDeliveryMethod
.
THIRD
.
get
Cod
e
()))
{
orderPrintDto
.
setDeliveryTypeDesc
(
"第三方配送"
);
orderPrintDto
.
setDeliveryTypeDesc
(
"第三方配送"
);
if
(
StringUtils
.
isNotBlank
(
orderBean
.
getAddInfo
().
getExpress
()))
{
if
(
StringUtils
.
isNotBlank
(
orderBean
.
getAddInfo
().
getExpress
()))
{
orderPrintDto
.
setDeliveryTypeDesc
(
orderBean
.
getAddInfo
().
getExpress
());
orderPrintDto
.
setDeliveryTypeDesc
(
orderBean
.
getAddInfo
().
getExpress
());
...
...
order-application-service/src/test/spock/cn/freemud/service/impl/OrderInfo2OrderBean.java
View file @
b41fefdd
...
@@ -17,7 +17,7 @@ public class OrderInfo2OrderBean {
...
@@ -17,7 +17,7 @@ public class OrderInfo2OrderBean {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
OrderCenterSdkAdapter
orderCenterSdkAdapter
=
new
OrderCenterSdkAdapter
();
OrderCenterSdkAdapter
orderCenterSdkAdapter
=
new
OrderCenterSdkAdapter
();
String
strOrderInfo
=
"{\"abnormalDesc\":\"\",\"abnormalState\":0,\"actualPayAmount\":2.0,\"afterSalesOrderList\":[],\"afterSalesState\":0,\"appId\":\"wxef754bdcc220db4e\",\"barCounter\":\"\",\"bizType\":1,\"
businessDay\":1663862400000,\"canRefund\":true,\"cancelReason\":\"\",\"companySelfCode\":\"\",\"createTime\":1663922390000,\"daySeq\":0,\"deliveryContactInfoList\":[{\"addressDetail\":\"大润发(南翔店),1\",\"city\":\"\",\"contactsName\":\"\",\"expressNo\":\"0\",\"extInfo\":\"{\\\"receiveId\\\": \\\"3630371879117105885\\\"}\",\"infoType\":1,\"latitude\":31.293488,\"longitude\":121.30485,\"mobile\":\"13673451997\",\"province\":\"\",\"region\":\"\",\"relateObjectType\":1,\"street\":\"\",\"telephone\":\"\",\"thirdDeliveryId\":\"0\",\"tripDist\":0},{\"addressDetail\":\"self\",\"city\":\"\",\"contactsName\":\"\",\"expressNo\":\"0\",\"extInfo\":\"\",\"infoType\":0,\"latitude\":0.0,\"longitude\":0.0,\"mobile\":\"\",\"province\":\"\",\"region\":\"\",\"relateObjectType\":3,\"street\":\"\",\"telephone\":\"\",\"thirdDeliveryId\":\"0\",\"tripDist\":0}],\"deliveryPromise\":0,\"deliveryState\":-2,\"dinersNumber\":0,\"downstreamPosCode\":\"0\",\"downstreamThirdOrderCode\":\"0\",\"estimateDeliveryCompleteTime\":1663924189000,\"evaluationState\":0,\"expressChannelCode\":\"\",\"expressChannelName\":\"\",\"expressNo\":\"\",\"expressType\":0,\"extInfo\":\"{\\\"sessionKey\\\":\\\"beaMHKx1GDQBgnogko0P+A==\\\",\\\"openid\\\":\\\"oDbry5DgPZ4JoPEIK6T3_TfLIZjU\\\",\\\"paidMember\\\":false,\\\"sessionId\\\":\\\"44f326a1783530b9e1a3c1857eb4011fc83ca219\\\",\\\"serviceTime\\\":50,\\\"version\\\":\\\"3.0.8.1\\\",\\\"packageAmountCollectType\\\":1,\\\"pushOrderTime\\\":0,\\\"fmId\\\":\\\"7702399255727543417804132\\\",\\\"deliveryHoursDayEnd\\\":\\\"\\\",\\\"fromAppId\\\":\\\"wxef754bdcc220db4e\\\",\\\"appid\\\":\\\"wxef754bdcc220db4e\\\",\\\"deliveryHoursDayStart\\\":\\\"2022-09-23 00:00:00\\\",\\\"prepayId\\\":\\\"wx2316395046954291e14041594ead230000\\\"}\",\"immediately\":true,\"isParent\":false,\"localTableKey\":\"\",\"logisticsAccessChannel\":0,\"logisticsList\":[],\"marketingCode\":\"\",\"marketingType\":0,\"needInvoice\":false,\"note\":\"\",\"operator\":\"\",\"orderArea\":\"0\",\"orderClient\":2,\"orderCode\":\"25572754324560307500005\",\"orderCostDetailList\":[{\"actualCostAmount\":1.0,\"billType\":1,\"costAmount\":1.0,\"costName\":\"配送费\",\"costType\":2,\"createTime\":1663922390000,\"note\":\"\",\"orderCode\":\"25572754324560307500005\",\"orderItemId\":0,\"partnerId\":\"2399\",\"productId\":\"0\",\"productSeq\":0,\"updateTime\":1663922390000}],\"orderExtended\":{\"agentPayerId\":\"\",\"agentPayerName\":\"\",\"createTime\":1663922390000,\"id\":255727543245603075,\"isDeleted\":false,\"orderClientGroup\":\"海淀\",\"orderClientGroupCode\":\"haidian\",\"orderCode\":\"25572754324560307500005\",\"orderId\":255727543245603075,\"partnerId\":\"2399\",\"sendWord\":\"\",\"spellGroupCode\":\"\",\"storeId\":\"0329\",\"storeNameEn\":\"\",\"updateTime\":1663922390000,\"userPhone\":\"\",\"version\":0},\"orderInvoice\":{\"address\":\"\",\"bankCardNo\":\"\",\"content\":\"\",\"invoiceBank\":\"\",\"invoiceNo\":\"\",\"invoiceUrl\":\"\",\"itemId\":\"\",\"partnerId\":\"\",\"phoneNo\":\"\",\"pickUpNo\":\"\",\"taxNo\":\"\",\"title\":\"\",\"userId\":\"\"},\"orderItemList\":[{\"canRefund\":true,\"categoryId\":\"0\",\"categoryName\":\"0\",\"extInfo\":\"{\\\"tax\\\": 0, \\\"stapleFood\\\": 0, \\\"isMonthCard\\\": 0, \\\"isSendGoods\\\": false, \\\"cartGoodsUid\\\": \\\"3db95403-8f22-49cf-a7b5-5751dc2432d7\\\", \\\"isB3S1Coupon\\\": 0, \\\"spuProductCode\\\": \\\"810\\\", \\\"thirdProductPropertyId\\\": \\\"1,1,0\\\"}\",\"id\":255727543261331717,\"ignoreInOrderClose\":false,\"marketingCode\":\"0\",\"marketingType\":0,\"nickName\":\"\",\"note\":\"\",\"openId\":\"\",\"originalProductType\":1,\"parentProductId\":\"0\",\"photoUrl\":\"\",\"productCode\":\"810\",\"productForeignName\":\"\",\"productForeignProperty\":\"null/null/null\",\"productForeignSpecName\":\"\",\"productId\":\"190528777624840461\",\"productName\":\"香甜牛奶(热)\",\"productPicUrl\":\"https://img10.sandload.cn/1623736171543.jpg\",\"productPrice\":1.0,\"productProperty\":\"少量/少量/无糖\",\"productQuantity\":1,\"productScorePrice\":0,\"productSeq\":1,\"productSharePrice\":0.0,\"productSpec\":\"190528777624840461\",\"productSpecName\":\"香甜牛奶(热)\",\"productSpuQuantity\":1,\"productType\":0,\"productUnit\":\"\",\"productUpc\":\"\",\"productWeightUnit\":0,\"realDBProductSpuQuantity\":1,\"salePrice\":1.0,\"saleScorePrice\":0,\"settlementPrice\":1.0,\"settlementScorePrice\":0,\"thirdProductId\":\"810\",\"userId\":\"\",\"weight\":0.0}],\"orderSendCouponRespList\":[],\"orderSettlementDetailList\":[{\"agentDiscountAmount\":0.0,\"carrierDiscountAmount\":0.0,\"extInfo\":\"\",\"externalObjectId\":\"\",\"externalObjectName\":\"优惠总金额\",\"externalObjectSubId\":\"\",\"ignoreInDiscountAmount\":false,\"isOnline\":true,\"note\":\"\",\"number\":0,\"platformDiscountAmount\":0.0,\"platformServiceAmount\":0.0,\"productId\":\"0\",\"productSeq\":0,\"prospectiveAmount\":0.0,\"settlementAmount\":2.0,\"settlementType\":205,\"shopAmount\":0.0,\"shopDiscountAmount\":0.0}],\"orderState\":1,\"orderSubState\":0,\"orderType\":3,\"orderVersion\":1,\"originalAmount\":2.0,\"originalScoreAmount\":0,\"parentCode\":\"0\",\"partnerId\":\"2399\",\"partnerName\":\"\",\"payChannel\":\"10211\",\"payChannelName\":\"微信\",\"payChannelType\":1,\"payRequestNo\":\"0\",\"payState\":1,\"payType\":1,\"physicalGoodsFlag\":1,\"pickUpGoodsNo\":\"\",\"posCode\":\"\",\"posTableKey\":\"\",\"ppoOrderCode\":\"\",\"printNum\":0,\"settlementAmount\":2.0,\"settlementScoreAmount\":0,\"sourceType\":0,\"storeId\":\"0329\",\"storeName\":\"雪玉测试门店\",\"storeUnifyId\":\"0\",\"suspendDesc\":\"\",\"suspendState\":0,\"thirdOrderCode\":\"25572754324560307500005\",\"thirdStoreId\":\"\",\"toStoreId\":\"0\",\"updateTime\":1663922389000,\"userId\":\"3628509743958943995\",\"userMobile\":\"13673451997\",\"userName\":\"李雪玉\",\"userSourceType\":1,\"weight\":0.
0}"
;
String
strOrderInfo
=
"{\"abnormalDesc\":\"\",\"abnormalState\":0,\"actualPayAmount\":2.0,\"afterSalesOrderList\":[],\"afterSalesState\":0,\"appId\":\"wxef754bdcc220db4e\",\"barCounter\":\"\",\"bizType\":1,\"
canRefund\":true,\"cancelReason\":\"\",\"companySelfCode\":\"\",\"createTime\":\"1664171871000\",\"daySeq\":3,\"deliveryContactInfoList\":[{\"addressDetail\":\"大润发(南翔店),1\",\"city\":\"\",\"contactsName\":\"\",\"expressNo\":\"0\",\"extInfo\":\"{\\\"receiveId\\\": \\\"3630371879117105885\\\"}\",\"infoType\":1,\"latitude\":31.2934880,\"longitude\":121.3048500,\"mobile\":\"13673451997\",\"province\":\"\",\"region\":\"\",\"relateObjectType\":1,\"street\":\"\",\"telephone\":\"\",\"thirdDeliveryId\":\"0\"},{\"addressDetail\":\"third\",\"city\":\"\",\"contactsName\":\"\",\"expressNo\":\"0\",\"extInfo\":\"\",\"infoType\":0,\"latitude\":0E-7,\"longitude\":0E-7,\"mobile\":\"\",\"province\":\"\",\"region\":\"\",\"relateObjectType\":3,\"street\":\"\",\"telephone\":\"\",\"thirdDeliveryId\":\"0\"}],\"deliveryPromise\":0,\"deliveryState\":-2,\"dinersNumber\":0,\"downstreamPosCode\":\"0\",\"downstreamThirdOrderCode\":\"0\",\"estimateDeliveryCompleteTime\":\"1664173670000\",\"expressChannelCode\":\"\",\"expressChannelName\":\"\",\"expressNo\":\"\",\"expressType\":0,\"extInfo\":\"{\\\"fmId\\\": \\\"7702399255989142807352652\\\", \\\"appid\\\": \\\"wxef754bdcc220db4e\\\", \\\"openid\\\": \\\"oDbry5DgPZ4JoPEIK6T3_TfLIZjU\\\", \\\"payDate\\\": \\\"2022-09-26 13:57:59\\\", \\\"version\\\": \\\"3.0.8.1\\\", \\\"prepayId\\\": \\\"wx26135751171422810eac850846067c0000\\\", \\\"fromAppId\\\": \\\"wxef754bdcc220db4e\\\", \\\"sessionId\\\": \\\"7f66316bda471491462c8b5517567689f4fdd3b0\\\", \\\"endTransId\\\": \\\"112474209721622092613575125375\\\", \\\"paidMember\\\": false, \\\"payTransId\\\": \\\"7702399255989142807352652\\\", \\\"sessionKey\\\": \\\"QV0djl/Sc3aCGbzDOFPBQw==\\\", \\\"memberLevel\\\": \\\"青铜\\\", \\\"serviceTime\\\": 50, \\\"pushOrderTime\\\": 0, \\\"deliveryHoursDayEnd\\\": \\\"\\\", \\\"deliveryHoursDayStart\\\": \\\"2022-09-26 00:00:00\\\", \\\"packageAmountCollectType\\\": 1}\",\"immediately\":true,\"isParent\":false,\"localTableKey\":\"\",\"marketingCode\":\"\",\"marketingType\":0,\"needInvoice\":false,\"note\":\"\",\"operator\":\"\",\"orderArea\":\"0\",\"orderClient\":2,\"orderCode\":\"25598914263934597100005\",\"orderCostDetailList\":[{\"actualCostAmount\":1.0,\"billType\":1,\"costAmount\":1.0,\"costName\":\"配送费\",\"costType\":2,\"note\":\"\",\"orderItemId\":0,\"productId\":\"0\",\"productSeq\":0}],\"orderExtended\":{\"agentPayerId\":\"\",\"agentPayerName\":\"\",\"orderClientGroup\":\"小鱼\",\"orderClientGroupCode\":\"896\",\"sendWord\":\"\",\"spellGroupCode\":\"\",\"storeNameEn\":\"\",\"userPhone\":\"\"},\"orderInvoice\":{\"address\":\"\",\"bankCardNo\":\"\",\"content\":\"\",\"invoiceBank\":\"\",\"invoiceUrl\":\"\",\"itemId\":\"\",\"partnerId\":\"\",\"phoneNo\":\"\",\"taxNo\":\"\",\"title\":\"\"},\"orderItemList\":[{\"canRefund\":true,\"extInfo\":\"{\\\"tax\\\": 0, \\\"stapleFood\\\": 0, \\\"isMonthCard\\\": 0, \\\"isSendGoods\\\": false, \\\"cartGoodsUid\\\": \\\"1f7863c9-fb4e-4e22-9051-a6d3dc22a29b\\\", \\\"isB3S1Coupon\\\": 0, \\\"spuProductCode\\\": \\\"nogroupcombo\\\"}\",\"id\":255989142654026037,\"ignoreInOrderClose\":false,\"marketingCode\":\"0\",\"marketingType\":0,\"nickName\":\"\",\"note\":\"\",\"openId\":\"\",\"parentProductId\":\"0\",\"photoUrl\":\"\",\"productCode\":\"nogroupcombo\",\"productForeignName\":\"\",\"productForeignProperty\":\"null\",\"productForeignSpecName\":\"\",\"productId\":\"152022148230396673\",\"productName\":\"无商品组套餐\",\"productPicUrl\":\"https://img10.sandload.cn/zfx01.jpg?timestamp=1593832540030\",\"productPrice\":1.0,\"productProperty\":\"番茄味糖\",\"productQuantity\":1,\"productSeq\":1,\"productSharePrice\":0.0,\"productSpec\":\"152022148230396673\",\"productSpecName\":\"无商品组套餐\",\"productSpuQuantity\":1,\"productType\":0,\"productUnit\":\"\",\"productUpc\":\"\",\"productWeightUnit\":0,\"salePrice\":1.0,\"settlementPrice\":1.0,\"thirdProductId\":\"nogroupcombo\",\"userId\":\"\",\"weight\":0.00}],\"orderSendCouponRespList\":[],\"orderSettlementDetailList\":[{\"agentDiscountAmount\":0,\"carrierDiscountAmount\":0,\"extInfo\":\"\",\"externalObjectId\":\"\",\"externalObjectName\":\"优惠总金额\",\"externalObjectSubId\":\"\",\"ignoreInDiscountAmount\":false,\"isOnline\":true,\"note\":\"\",\"number\":0,\"platformDiscountAmount\":0,\"platformServiceAmount\":0,\"productId\":\"0\",\"productSeq\":0,\"prospectiveAmount\":0.0,\"settlementAmount\":2.0,\"settlementType\":205,\"shopAmount\":0,\"shopDiscountAmount\":0}],\"orderState\":2,\"orderSubState\":0,\"orderType\":3,\"originalAmount\":2.0,\"parentCode\":\"0\",\"partnerId\":\"2399\",\"partnerName\":\"\",\"payChannel\":\"10211\",\"payChannelName\":\"微信\",\"payChannelType\":\"1\",\"payRequestNo\":\"7702399255989142807352652\",\"payState\":2,\"payTime\":\"1664171879000\",\"payType\":1,\"pickUpGoodsNo\":\"C003\",\"posCode\":\"\",\"posTableKey\":\"\",\"printNum\":0,\"settlementAmount\":2.0,\"sourceType\":0,\"storeId\":\"1085\",\"storeName\":\"南翔QA测试门店lulu&测试门店lulu&测试门店lulu&(店)\",\"storeUnifyId\":\"0\",\"suspendDesc\":\"\",\"suspendState\":0,\"thirdOrderCode\":\"25598914263934597100005\",\"thirdStoreId\":\"0099\",\"toStoreId\":\"0\",\"updateTime\":\"1664171879000\",\"userId\":\"3628509743958943995\",\"userMobile\":\"13673451997\",\"userName\":\"李雪玉\",\"weight\":0.0
0}"
;
OrderInfoReqs
orderInfoReqs
=
JSON
.
parseObject
(
strOrderInfo
,
OrderInfoReqs
.
class
);
OrderInfoReqs
orderInfoReqs
=
JSON
.
parseObject
(
strOrderInfo
,
OrderInfoReqs
.
class
);
OrderBeanV1
orderBeanV1
=
orderCenterSdkAdapter
.
convent2NEWOrderInfo
(
orderInfoReqs
);
OrderBeanV1
orderBeanV1
=
orderCenterSdkAdapter
.
convent2NEWOrderInfo
(
orderInfoReqs
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment