Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hphy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
向怀芳
hphy
Commits
5628f52a
Commit
5628f52a
authored
Jan 27, 2021
by
向怀芳
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增 xstream 依赖
parent
c2be2a42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
pom.xml
smart-health-modules/theme-schema/pom.xml
+6
-0
RefreshJob.java
...n/java/cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java
+6
-1
No files found.
smart-health-modules/theme-schema/pom.xml
View file @
5628f52a
...
...
@@ -42,6 +42,12 @@
<artifactId>
fastjson
</artifactId>
<version>
1.2.58
</version>
</dependency>
<dependency>
<groupId>
com.thoughtworks.xstream
</groupId>
<artifactId>
xstream
</artifactId>
<version>
1.4.10
</version>
</dependency>
</dependencies>
<build>
...
...
smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java
View file @
5628f52a
package
cn
.
sh
.
stc
.
sict
.
theme
.
hphy
.
schedule
;
import
cn.sh.stc.sict.theme.hphy.wd.HosInfo
;
import
cn.sh.stc.sict.theme.hphy.wd.WanDaHttpUtil
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
/**
* 定时任务
* 1. 每月更新医院信息
...
...
@@ -15,7 +19,8 @@ public class RefreshJob {
@Scheduled
(
cron
=
""
)
public
void
updateHosp
(){
HosInfo
hosInfo
=
new
HosInfo
();
List
<
HosInfo
>
list
=
WanDaHttpUtil
.
getHospitalInfo
(
hosInfo
);
}
@Scheduled
(
cron
=
""
)
...
...
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