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
e9dd488f
Commit
e9dd488f
authored
Sep 23, 2021
by
徐康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
麦咖啡订单推送
parent
1cd3da8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
+6
-8
No files found.
order-application-service/src/main/java/cn/freemud/service/impl/MCCafeOrderServiceImpl.java
View file @
e9dd488f
...
...
@@ -2550,7 +2550,7 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
public
BaseResponse
mcCafePushOrder
(
McCafeQueryOrderVo
queryOrderVo
)
{
executor
.
submit
(()
->
{
Long
lastCreateTime
=
DateUtil
.
convert2Date
(
queryOrderVo
.
getStartDate
(),
"yyyy-MM-dd HH:mm:ss"
).
getTime
()
/
1000
;
Long
lastCreateTime
=
DateUtil
.
convert2Date
(
queryOrderVo
.
getStartDate
(),
"yyyy-MM-dd HH:mm:ss"
).
getTime
();
for
(
int
i
=
1
;;
i
++)
{
OrderConditionsReq
orderConditionsReq
=
new
OrderConditionsReq
();
orderConditionsReq
.
setPartnerId
(
mcCafePartnerId
);
...
...
@@ -2568,10 +2568,10 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
BaseDownLoadResponse
<
List
<
OrderInfoReqs
>>
response
=
orderDownLoadSdkService
.
queryOrderByConditions
(
orderConditionsReq
,
LogThreadLocal
.
getTrackingNo
());
AppLogUtil
.
infoLog
(
"queryOrderByConditions:"
+
JSON
.
toJSONString
(
response
),
null
,
null
);
if
(
"50002"
.
equals
(
response
.
getCode
()))
{
AppLogUtil
.
infoLog
(
"麦咖啡重置退单查询: 重置前: "
+
i
+
" "
+
JSON
.
toJSONString
(
orderConditionsReq
),
null
,
null
);
AppLogUtil
.
infoLog
(
"麦咖啡重置退单查询: 重置前: "
+
i
+
" "
+
JSON
.
toJSONString
(
queryOrderVo
),
null
,
null
);
i
=
1
;
orderConditionsReq
.
setStartTimestamp
(
lastCreateTime
);
AppLogUtil
.
infoLog
(
"麦咖啡重置退单查询: 重置后: "
+
i
+
" "
+
JSON
.
toJSONString
(
orderConditionsReq
),
null
,
null
);
queryOrderVo
.
setStartDate
(
DateUtil
.
convert2String
(
new
Date
(
lastCreateTime
),
"yyyy-MM-dd HH:mm:ss"
)
);
AppLogUtil
.
infoLog
(
"麦咖啡重置退单查询: 重置后: "
+
i
+
" "
+
JSON
.
toJSONString
(
queryOrderVo
),
null
,
null
);
continue
;
}
else
if
(!
ResponseConstant
.
SUCCESS_RESPONSE_CODE_STR
.
equals
(
response
.
getCode
()))
{
AppLogUtil
.
infoLog
(
"麦咖啡历史订单查询异常: "
+
JSON
.
toJSONString
(
queryOrderVo
),
null
,
null
);
...
...
@@ -2584,10 +2584,8 @@ public class MCCafeOrderServiceImpl implements MCCafeOrderService {
RestTemplate
client
=
new
RestTemplate
();
for
(
OrderInfoReqs
orderInfoReqs
:
response
.
getResult
())
{
try
{
String
createTime
=
DateUtil
.
convert2String
(
new
Date
(
Long
.
valueOf
(
orderInfoReqs
.
getCreateTime
())),
"yyyy-MM-dd HH:mm:ss"
);
Long
createTimeStamp
=
DateUtil
.
convert2Date
(
createTime
,
"yyyy-MM-dd HH:mm:ss"
).
getTime
()/
1000
;
if
(
createTimeStamp
>
lastCreateTime
)
{
lastCreateTime
=
createTimeStamp
;
if
(
Long
.
valueOf
(
orderInfoReqs
.
getCreateTime
())
>
lastCreateTime
)
{
lastCreateTime
=
Long
.
valueOf
(
orderInfoReqs
.
getCreateTime
());
}
McCafePushOrderDto
mcCafePushOrderDto
=
convert2McCafePushOrderInfo
(
orderInfoReqs
);
AppLogUtil
.
infoLog
(
"订单推送入参: "
+
JSON
.
toJSONString
(
mcCafePushOrderDto
),
null
,
null
);
...
...
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