Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
1bc70223
Commit
1bc70223
authored
Mar 21, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件地址拼接
parent
c03b3088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
base-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMatterTaskImpl.java
.../java/com/mortals/xhx/daemon/task/SyncMatterTaskImpl.java
+22
-7
No files found.
base-manager/src/main/java/com/mortals/xhx/daemon/task/SyncMatterTaskImpl.java
View file @
1bc70223
...
@@ -28,6 +28,7 @@ import com.mortals.xhx.module.site.service.SiteService;
...
@@ -28,6 +28,7 @@ import com.mortals.xhx.module.site.service.SiteService;
import
com.mortals.xhx.module.site.service.SiteThemeMatterService
;
import
com.mortals.xhx.module.site.service.SiteThemeMatterService
;
import
com.mortals.xhx.module.site.service.SiteThemeService
;
import
com.mortals.xhx.module.site.service.SiteThemeService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.checkerframework.checker.units.qual.A
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
...
@@ -49,12 +50,14 @@ public class SyncMatterTaskImpl implements ITaskExcuteService {
...
@@ -49,12 +50,14 @@ public class SyncMatterTaskImpl implements ITaskExcuteService {
@Autowired
@Autowired
private
SiteService
siteService
;
private
SiteService
siteService
;
@Autowired
@Autowired
private
SiteMatterService
siteMatterService
;
private
SiteMatterService
siteMatterService
;
@Autowired
@Autowired
private
MatterExtService
matterExtService
;
private
MatterExtService
matterExtService
;
@Autowired
private
DeptService
deptService
;
@Override
@Override
...
@@ -62,19 +65,31 @@ public class SyncMatterTaskImpl implements ITaskExcuteService {
...
@@ -62,19 +65,31 @@ public class SyncMatterTaskImpl implements ITaskExcuteService {
log
.
info
(
"开始同步事项!"
);
log
.
info
(
"开始同步事项!"
);
List
<
SiteEntity
>
siteEntities
=
siteService
.
find
(
new
SiteEntity
());
List
<
SiteEntity
>
siteEntities
=
siteService
.
find
(
new
SiteEntity
());
for
(
SiteEntity
siteEntity
:
siteEntities
)
{
for
(
SiteEntity
siteEntity
:
siteEntities
)
{
StopWatch
stopWatch
=
new
StopWatch
(
"stopwatch syncmatter"
);
StopWatch
stopWatch
=
new
StopWatch
(
"stopwatch syncmatter"
);
log
.
info
(
"开始同步事项==》{}"
,
siteEntity
.
getSiteName
());
log
.
info
(
"开始同步站点部门==》{}"
,
siteEntity
.
getSiteName
());
stopWatch
.
start
(
"开始同步站点部门"
);
deptService
.
syncDeptBySiteId
(
siteEntity
,
null
);
stopWatch
.
stop
();
log
.
info
(
"同步站点部门完成,耗时:{}s"
,
stopWatch
.
getLastTaskTimeMillis
()
/
1000
);
log
.
info
(
"开始同步事项==》{}"
,
siteEntity
.
getSiteName
());
stopWatch
.
start
(
"开始同步事项方法"
);
stopWatch
.
start
(
"开始同步事项方法"
);
matterExtService
.
doMatterBySiteId
(
siteEntity
,
null
);
matterExtService
.
doMatterBySiteId
(
siteEntity
,
null
);
stopWatch
.
stop
();
stopWatch
.
stop
();
log
.
info
(
"同步事项完成,耗时:{}s"
,
stopWatch
.
getLastTaskTimeMillis
()
/
1000
);
log
.
info
(
"同步事项完成,耗时:{}s"
,
stopWatch
.
getLastTaskTimeMillis
()
/
1000
);
log
.
info
(
"开始添加站点事项==》{}"
,
siteEntity
.
getSiteName
());
log
.
info
(
"开始添加站点事项==》{}"
,
siteEntity
.
getSiteName
());
stopWatch
.
start
(
"开始添加站点事项"
);
stopWatch
.
start
(
"开始添加站点事项"
);
siteMatterService
.
doSyncSiteMatter
(
siteEntity
,
null
);
siteMatterService
.
doSyncSiteMatter
(
siteEntity
,
null
);
stopWatch
.
stop
();
stopWatch
.
stop
();
log
.
info
(
"开始添加站点事项,耗时:{} s"
,
stopWatch
.
getLastTaskTimeMillis
()/
1000
);
log
.
info
(
"开始添加站点事项,耗时:{} s"
,
stopWatch
.
getLastTaskTimeMillis
()
/
1000
);
// syncMatter(siteEntity);
//同步主题
stopWatch
.
start
(
"开始同步主题事项"
);
matterExtService
.
doMatterThemeBySiteId
(
siteEntity
,
null
);
stopWatch
.
stop
();
log
.
info
(
"同步主题事项完成,耗时:{}s"
,
stopWatch
.
getLastTaskTimeMillis
()
/
1000
);
}
}
// syncDevice();
// syncDevice();
log
.
info
(
"结束同步事项!"
);
log
.
info
(
"结束同步事项!"
);
...
...
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