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
fb81c7fb
Commit
fb81c7fb
authored
Aug 28, 2020
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
麦当劳的extraId对应我们的shopId
parent
6ec33db6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
order-application-service/src/main/java/cn/freemud/entities/dto/delivery/MCCafeDeliveryGetStoreIdResponse.java
+2
-0
order-application-service/src/main/java/cn/freemud/service/impl/CheckMCCafeOrder.java
+1
-1
No files found.
order-application-service/src/main/java/cn/freemud/entities/dto/delivery/MCCafeDeliveryGetStoreIdResponse.java
View file @
fb81c7fb
...
@@ -7,5 +7,7 @@ public class MCCafeDeliveryGetStoreIdResponse {
...
@@ -7,5 +7,7 @@ public class MCCafeDeliveryGetStoreIdResponse {
private
Integer
storeId
;
private
Integer
storeId
;
private
String
extraId
;
private
String
storeName
;
private
String
storeName
;
}
}
order-application-service/src/main/java/cn/freemud/service/impl/CheckMCCafeOrder.java
View file @
fb81c7fb
...
@@ -649,7 +649,7 @@ public class CheckMCCafeOrder {
...
@@ -649,7 +649,7 @@ public class CheckMCCafeOrder {
throw
new
ServiceException
(
ResponseResult
.
ORDER_TAKE_OUT_ADDRESS_NOT_VALID
);
throw
new
ServiceException
(
ResponseResult
.
ORDER_TAKE_OUT_ADDRESS_NOT_VALID
);
}
else
{
}
else
{
List
<
MCCafeDeliveryGetStoreIdResponse
>
mcCafeDeliveryGetStoreIdResponseList
=
JSON
.
parseArray
(
mcCafeDeliveryBaseResponse
.
getData
().
toString
(),
MCCafeDeliveryGetStoreIdResponse
.
class
);
List
<
MCCafeDeliveryGetStoreIdResponse
>
mcCafeDeliveryGetStoreIdResponseList
=
JSON
.
parseArray
(
mcCafeDeliveryBaseResponse
.
getData
().
toString
(),
MCCafeDeliveryGetStoreIdResponse
.
class
);
if
(
mcCafeDeliveryGetStoreIdResponseList
.
stream
().
noneMatch
(
o
->
createOrderVo
.
getShopId
().
equals
(
o
.
get
StoreId
()+
""
)))
{
if
(
mcCafeDeliveryGetStoreIdResponseList
.
stream
().
noneMatch
(
o
->
createOrderVo
.
getShopId
().
equals
(
o
.
get
ExtraId
()
)))
{
throw
new
ServiceException
(
ResponseResult
.
ORDER_TAKE_OUT_ADDRESS_NOT_DELIVERY
);
throw
new
ServiceException
(
ResponseResult
.
ORDER_TAKE_OUT_ADDRESS_NOT_DELIVERY
);
}
}
}
}
...
...
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