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
e7e5372f
Commit
e7e5372f
authored
Apr 28, 2021
by
周晓航
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上报数据日志添加
parent
e11fc5a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
order-application-service/src/main/java/cn/freemud/xxljob/OrderCountJobHandler.java
+7
-4
No files found.
order-application-service/src/main/java/cn/freemud/xxljob/OrderCountJobHandler.java
View file @
e7e5372f
...
...
@@ -54,10 +54,12 @@ public class OrderCountJobHandler extends IJobHandler {
*/
@Override
public
ReturnT
<
String
>
execute
(
String
param
)
throws
Exception
{
String
trackingNo
=
LogThreadLocal
.
getTrackingNo
();
log
.
info
(
"begin xxl-job by send report msg -------- trackingNo:{}"
,
trackingNo
);
// 获取需要 上报的商户号
BaseResponse
<
GetFilterPartnerResponse
>
filterPartner
=
microOpenplatformClient
.
getFilterPartner
(
OrderGetPartnerRequest
.
builder
().
type
(
2
).
build
());
String
trackingNo
=
LogThreadLocal
.
getTrackingNo
();
log
.
info
(
"orderCountJobHandler getFilterPartner filterPartner: {} , trackingNo:{}"
,
filterPartner
,
trackingNo
);
log
.
info
(
"orderCountJobHandler getFilterPartner filterPartner: {} , trackingNo:{}"
,
filterPartner
.
toString
(),
trackingNo
);
if
(
filterPartner
==
null
||
filterPartner
.
getResult
()
==
null
)
{
return
ReturnT
.
SUCCESS
;
}
...
...
@@ -67,7 +69,7 @@ public class OrderCountJobHandler extends IJobHandler {
// 时间设置 前一天
setBeginAndEndTime
(
orderCountRequestVo
);
BaseResponse
<
List
<
OrderCountResp
>>
result
=
orderservice
.
selectCountOrdersByPartnerIds
(
orderCountRequestVo
,
trackingNo
);
log
.
info
(
"orderCountJobHandler send report order count msg request:{} response:{} , trackingNo:{} "
,
orderCountRequestVo
,
result
,
trackingNo
);
log
.
info
(
"orderCountJobHandler send report order count msg request:{} response:{} , trackingNo:{} "
,
orderCountRequestVo
.
toString
(),
result
.
toString
()
,
trackingNo
);
if
(!
ResponseResultEnum
.
SUCCESS
.
getCode
().
equalsIgnoreCase
(
result
.
getCode
())
||
Objects
.
isNull
(
result
.
getResult
()))
{
return
ReturnT
.
SUCCESS
;
}
...
...
@@ -75,8 +77,9 @@ public class OrderCountJobHandler extends IJobHandler {
// 每次推送 只能 50条 让生态端处理
List
<
OrderCountResp
>
orderCounts
=
result
.
getResult
();
BaseResponse
baseResponse
=
microOpenplatformClient
.
addOrderSum
(
orderCounts
);
log
.
info
(
"orderCountJobHandler send report order end result :{} , trackingNo:{}"
,
baseResponse
,
trackingNo
);
log
.
info
(
"orderCountJobHandler send report order end result :{} , trackingNo:{}"
,
baseResponse
.
toString
()
,
trackingNo
);
log
.
info
(
"end xxl-job by send report msg -------- trackingNo:{}"
,
trackingNo
);
return
ReturnT
.
SUCCESS
;
}
...
...
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