From 5628f52a1edefb98d17c163ce8f7fb5a91b941ca Mon Sep 17 00:00:00 2001 From: fshenye <512914587@qq.com> Date: Wed, 27 Jan 2021 16:32:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20xstream=20=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smart-health-modules/theme-schema/pom.xml | 6 ++++++ .../cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/smart-health-modules/theme-schema/pom.xml b/smart-health-modules/theme-schema/pom.xml index 87ab5bd..ff4e675 100644 --- a/smart-health-modules/theme-schema/pom.xml +++ b/smart-health-modules/theme-schema/pom.xml @@ -42,6 +42,12 @@ fastjson 1.2.58 + + + com.thoughtworks.xstream + xstream + 1.4.10 + diff --git a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java index 9902f9f..a43f1b7 100644 --- a/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java +++ b/smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/schedule/RefreshJob.java @@ -1,8 +1,12 @@ 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 list = WanDaHttpUtil.getHospitalInfo(hosInfo); } @Scheduled(cron = "") -- 2.22.0