Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-wx-store-sharer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wx
yanxuan-wx-store-sharer
Commits
ac955051
Commit
ac955051
authored
May 16, 2025
by
fanjiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
推客分佣单入库
parent
cc453a8c
Pipeline
#75638
passed with stages
in 1 minute 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
CommissionOrderServiceImpl.java
...e/sharer/biz/service/impl/CommissionOrderServiceImpl.java
+11
-4
No files found.
yanxuan-wx-store-sharer-biz/src/main/java/com/netease/yanxuan/wx/store/sharer/biz/service/impl/CommissionOrderServiceImpl.java
View file @
ac955051
...
...
@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import
org.springframework.util.CollectionUtils
;
import
java.util.Date
;
import
java.util.List
;
/**
...
...
@@ -68,22 +69,28 @@ public class CommissionOrderServiceImpl implements ICommissionOrderService {
@Override
public
void
doCommissionOrderSync
(
Long
startTime
,
Long
endTime
)
{
log
.
info
(
"[op:doCommissionOrderSync] start update time range [{} ~ {}]"
,
startTime
,
endTime
);
WeChatCommissionOrderListVO
listVO
;
String
nextKey
=
null
;
List
<
WeChatCommissionOrderItemVO
>
dataList
;
while
(
true
)
{
listVO
=
weChatCommissionOrderListRequest
.
handle
(
startTime
,
endTime
,
nextKey
,
COMMISSION_ORDER_SYNC_PAGE_SIZE
);
if
(
null
==
listVO
||
CollectionUtils
.
isEmpty
(
listVO
.
getList
()))
{
log
.
info
(
"[op:doCommissionOrderSync] listVO is empty"
);
return
;
}
dataList
=
listVO
.
getList
();
log
.
info
(
"[op:doCommissionOrderSync] list size:{}"
,
dataList
.
size
());
for
(
WeChatCommissionOrderItemVO
itemVO
:
dataList
)
{
// 推客分佣单入库
doSyncCommissionOrder
(
itemVO
.
getOrder_id
(),
itemVO
.
getSku_id
());
}
Boolean
hasMore
=
listVO
.
getHas_more
();
nextKey
=
listVO
.
getNext_key
();
if
(
StringUtils
.
isBlank
(
nextKey
)
||
(
null
!=
hasMore
&&
!
hasMore
)){
log
.
info
(
"[op:doCommissionOrderSync] is not has more"
);
return
;
}
for
(
WeChatCommissionOrderItemVO
itemVO
:
listVO
.
getList
())
{
// 推客分佣单入库
doSyncCommissionOrder
(
itemVO
.
getOrder_id
(),
itemVO
.
getSku_id
());
}
}
}
...
...
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