Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
huluobin
dc-java
Commits
49641726
Commit
49641726
authored
Jul 26, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复分页查询问题
parent
880c0219
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
AmazonAdGenerateReportIdJob.java
...n/java/com/bailuntec/job/AmazonAdGenerateReportIdJob.java
+1
-1
JobAccountLogMapper.java
...c/main/java/com/bailuntec/mapper/JobAccountLogMapper.java
+2
-1
No files found.
data-base/base-sync-amazon-ad/src/main/java/com/bailuntec/job/AmazonAdGenerateReportIdJob.java
View file @
49641726
...
...
@@ -44,7 +44,7 @@ public class AmazonAdGenerateReportIdJob extends PointJob {
try
{
JobAccountLogMapper
jobAccountLogMapper
=
SessionUtil
.
getSession
().
getMapper
(
JobAccountLogMapper
.
class
);
int
pageSize
=
totalPage
%
shardingContext
.
getShardingTotalCount
()
==
0
?
totalPage
/
shardingContext
.
getShardingTotalCount
()
:
totalPage
/
shardingContext
.
getShardingTotalCount
()
+
1
;
List
<
JobAccountLog
>
listByPage
=
jobAccountLogMapper
.
getListByPageAmazon
(
pageSize
*
shardingContext
.
getShardingItem
(),
pageSize
);
List
<
JobAccountLog
>
listByPage
=
jobAccountLogMapper
.
getListByPageAmazon
(
p
latformId
,
p
ageSize
*
shardingContext
.
getShardingItem
(),
pageSize
);
if
(
listByPage
!=
null
&&
listByPage
.
size
()
>
0
)
{
for
(
JobAccountLog
jobAccountLog
:
listByPage
)
{
if
(
jobAccountLog
.
getId
()
==
null
)
{
//Id为null在任务表无记录
...
...
data-common/src/main/java/com/bailuntec/mapper/JobAccountLogMapper.java
View file @
49641726
...
...
@@ -124,6 +124,6 @@ public interface JobAccountLogMapper {
List
<
JobAccountLog
>
getListByPage
(
@Param
(
"platformId"
)
Integer
platformId
,
@Param
(
"pageIndex"
)
Integer
pageIndex
,
@Param
(
"pageSize"
)
Integer
pageSize
);
List
<
JobAccountLog
>
getListByPageAmazon
(
@Param
(
"pageIndex"
)
Integer
pageIndex
,
@Param
(
"pageSize"
)
Integer
pageSize
);
List
<
JobAccountLog
>
getListByPageAmazon
(
@Param
(
"p
latformId"
)
Integer
platformId
,
@Param
(
"p
ageIndex"
)
Integer
pageIndex
,
@Param
(
"pageSize"
)
Integer
pageSize
);
}
\ No newline at end of file
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