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
a865b0b6
Commit
a865b0b6
authored
Dec 07, 2020
by
邓杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配送方式
parent
a6f62d39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
+15
-0
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/CheckOrder.java
View file @
a865b0b6
...
@@ -642,6 +642,20 @@ public class CheckOrder {
...
@@ -642,6 +642,20 @@ public class CheckOrder {
storeDeliveryInfoDto
.
setDeliveryType
(
"self"
);
storeDeliveryInfoDto
.
setDeliveryType
(
"self"
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
}
else
{
}
else
{
//如果是coco查询配送服务判断是平台配送还是自配送
if
(
cocoPartnerId
.
equals
(
storeResponseDto
.
getPartnerId
())){
GetDeliveryFlagRequest
getDeliveryFlagRequest
=
new
GetDeliveryFlagRequest
();
getDeliveryFlagRequest
.
setPartnerId
(
storeResponseDto
.
getPartnerId
());
getDeliveryFlagRequest
.
setStoreId
(
storeResponseDto
.
getStoreId
());
DeliveryBaseResponse
<
GetDeliveryFlagResponseDto
>
deliveryBaseResponse
=
deliveryFeiginClient
.
getThirdDeliveryFlag
(
getDeliveryFlagRequest
);
if
(
deliveryBaseResponse
.
getCode
()
==
100
&&
deliveryBaseResponse
.
getData
()
!=
null
&&
deliveryBaseResponse
.
getData
().
isThirdDeliveryFlag
()){
storeDeliveryInfoDto
.
setDeliveryType
(
"third"
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
}
else
{
storeDeliveryInfoDto
.
setDeliveryType
(
"self"
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
}
}
else
{
if
(
ObjectUtils
.
equals
(
openPlatformIappWxappConfig
.
getTakeType
(),
1
))
{
if
(
ObjectUtils
.
equals
(
openPlatformIappWxappConfig
.
getTakeType
(),
1
))
{
storeDeliveryInfoDto
.
setDeliveryType
(
"self"
);
storeDeliveryInfoDto
.
setDeliveryType
(
"self"
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
...
@@ -650,6 +664,7 @@ public class CheckOrder {
...
@@ -650,6 +664,7 @@ public class CheckOrder {
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
storeDeliveryInfoDto
.
setPushOrderTime
(
0
);
}
}
}
}
}
storeDeliveryInfoDto
.
setDeliveryCondition
(
deliveryDetail
.
getDeliveryType
());
storeDeliveryInfoDto
.
setDeliveryCondition
(
deliveryDetail
.
getDeliveryType
());
storeDeliveryInfoDto
.
setFreeDeliveryCup
(
deliveryDetail
.
getFreeDeliveryCup
());
storeDeliveryInfoDto
.
setFreeDeliveryCup
(
deliveryDetail
.
getFreeDeliveryCup
());
return
storeDeliveryInfoDto
;
return
storeDeliveryInfoDto
;
...
...
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