Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_api
Project
Project
Details
Activity
Releases
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
高宇
dataC_api
Commits
72bb2d7a
Commit
72bb2d7a
authored
May 18, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改月度拉取
parent
b2ffa4f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Jnsp7xtmDqsjServiceImpl.java
...us/jnsp7xtmdqsj/service/impl/Jnsp7xtmDqsjServiceImpl.java
+7
-3
No files found.
src/main/java/org/rcisoft/bus/jnsp7xtmdqsj/service/impl/Jnsp7xtmDqsjServiceImpl.java
View file @
72bb2d7a
...
...
@@ -221,9 +221,12 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
Jnsp7xtmDqsjPageHandleDto
jnsp7xtmDqsjPageHandleDto
=
Jnsp7xtmDqsjPageHandleDto
.
builder
().
page
(
i
).
rows
(
pageQuerySize
).
build
();
addJnsp7xtmDqsjByPage
(
jnsp7xtmDqsjPageHandleDto
);
}
Thread
.
sleep
(
5000
);
log
.
info
(
"查询耗时秒"
+
stopwatch
.
elapsed
().
getSeconds
());
log
.
info
(
"查询耗时毫秒"
+
stopwatch
.
elapsed
(
TimeUnit
.
MILLISECONDS
));
QueryWrapper
<
TaskInfo
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"tack_id"
,
taskId
);
TaskInfo
taskInfo
=
taskInfoRepository
.
selectOne
(
queryWrapper
);
taskInfo
.
setStatus
(
"1"
);
taskInfoRepository
.
updateById
(
taskInfo
);
log
.
info
(
"数据同步需要多少秒"
+
stopwatch
.
elapsed
().
getSeconds
());
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CyServiceException
(
501
,
"数据同步异常"
);
...
...
@@ -266,6 +269,7 @@ public class Jnsp7xtmDqsjServiceImpl extends ServiceImpl<Jnsp7xtmDqsjRepository,
try
{
taskInfo
.
setStatus
(
"0"
);
taskInfo
.
setTackId
(
CyIdGenUtil
.
uuid
());
taskInfo
.
setFlag
(
"1"
);
taskInfoRepository
.
insert
(
taskInfo
);
return
taskInfo
;
}
catch
(
Exception
e
)
{
...
...
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