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
ff915b2c
Commit
ff915b2c
authored
Sep 13, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
麦咖啡推送数据测试
parent
eac23038
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+6
-3
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
ff915b2c
...
@@ -2514,7 +2514,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2514,7 +2514,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
public
BaseResponse
mcCafePushOrder
(
McCafeQueryOrderVo
queryOrderVo
)
{
public
BaseResponse
mcCafePushOrder
(
McCafeQueryOrderVo
queryOrderVo
)
{
executor
.
submit
(()
->
{
//
executor.submit(() -> {
for
(
int
i
=
1
;;
i
++)
{
for
(
int
i
=
1
;;
i
++)
{
OrderConditionsReq
orderConditionsReq
=
new
OrderConditionsReq
();
OrderConditionsReq
orderConditionsReq
=
new
OrderConditionsReq
();
orderConditionsReq
.
setPartnerId
(
mcCafePartnerId
);
orderConditionsReq
.
setPartnerId
(
mcCafePartnerId
);
...
@@ -2535,6 +2535,9 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2535,6 +2535,9 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
try
{
try
{
McCafePushOrderDto
mcCafePushOrderDto
=
convert2McCafePushOrderInfo
(
orderInfoReqs
);
McCafePushOrderDto
mcCafePushOrderDto
=
convert2McCafePushOrderInfo
(
orderInfoReqs
);
System
.
out
.
println
(
JSON
.
toJSONString
(
mcCafePushOrderDto
));
System
.
out
.
println
(
JSON
.
toJSONString
(
mcCafePushOrderDto
));
if
(
null
!=
mcCafePushOrderDto
)
{
return
ResponseUtil
.
success
(
mcCafePushOrderDto
);
}
McCafePushOrderResponseDto
responseDto
=
mcCafePushOrderClient
.
mcCafePushOrder
(
mcCafePushOrderDto
);
McCafePushOrderResponseDto
responseDto
=
mcCafePushOrderClient
.
mcCafePushOrder
(
mcCafePushOrderDto
);
PushMccafeOrder
pushMccafeOrder
=
new
PushMccafeOrder
();
PushMccafeOrder
pushMccafeOrder
=
new
PushMccafeOrder
();
pushMccafeOrder
.
setOrderCode
(
orderInfoReqs
.
getOrderCode
());
pushMccafeOrder
.
setOrderCode
(
orderInfoReqs
.
getOrderCode
());
...
@@ -2563,7 +2566,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2563,7 +2566,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
}
}
}
}
});
//
});
BaseResponse
baseResponse
=
new
BaseResponse
();
BaseResponse
baseResponse
=
new
BaseResponse
();
baseResponse
.
setCode
(
"100"
);
baseResponse
.
setCode
(
"100"
);
...
@@ -2591,7 +2594,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
...
@@ -2591,7 +2594,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
mcCafePushOrderDto
.
setStoreCode
(
orderInfoReqs
.
getStoreId
());
mcCafePushOrderDto
.
setStoreCode
(
orderInfoReqs
.
getStoreId
());
mcCafePushOrderDto
.
setStoreName
(
orderInfoReqs
.
getStoreName
());
mcCafePushOrderDto
.
setStoreName
(
orderInfoReqs
.
getStoreName
());
mcCafePushOrderDto
.
setBusinessDate
(
orderInfoReqs
.
getCreateTime
().
substring
(
0
,
10
));
mcCafePushOrderDto
.
setBusinessDate
(
orderInfoReqs
.
getCreateTime
().
substring
(
0
,
10
));
mcCafePushOrderDto
.
setTablewareInfo
(
orderExtInfoDto
.
getNeedTableware
()==
1
?
"01"
:
"02"
);
mcCafePushOrderDto
.
setTablewareInfo
(
Integer
.
valueOf
(
1
).
equals
(
orderExtInfoDto
.
getNeedTableware
())
?
"01"
:
"02"
);
mcCafePushOrderDto
.
setTotalAmount
(
orderInfoReqs
.
getActualPayAmount
().
intValue
());
mcCafePushOrderDto
.
setTotalAmount
(
orderInfoReqs
.
getActualPayAmount
().
intValue
());
mcCafePushOrderDto
.
setDiscountTotalAmount
(
orderInfoReqs
.
getOriginalAmount
().
subtract
(
orderInfoReqs
.
getActualPayAmount
()).
intValue
());
mcCafePushOrderDto
.
setDiscountTotalAmount
(
orderInfoReqs
.
getOriginalAmount
().
subtract
(
orderInfoReqs
.
getActualPayAmount
()).
intValue
());
mcCafePushOrderDto
.
setRealTotalAmount
(
orderInfoReqs
.
getActualPayAmount
().
intValue
());
mcCafePushOrderDto
.
setRealTotalAmount
(
orderInfoReqs
.
getActualPayAmount
().
intValue
());
...
...
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