Commit c8956ad43b6e9fd4bd24b9a791ee6dad3ff2703e
1 parent
37c54b84fa
Exists in
master
and in
6 other branches
数据同步
Showing 1 changed file with 2 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/SyncDataTaskService.java
View file @
c8956ad
| ... | ... | @@ -58,7 +58,7 @@ |
| 58 | 58 | urls.put("area-kaifeng-api.healthbaby.com.cn:12356","开封"); |
| 59 | 59 | urls.put("area-weixian-api.healthbaby.com.cn:12356","威县"); |
| 60 | 60 | urls.put("area-zhucheng-api.healthbaby.com.cn:12356","诸城市妇幼保健院"); |
| 61 | - urls.put("area-weihai.healthbaby.com.cn:12356","威海"); | |
| 61 | + urls.put("area-weihai-api.healthbaby.com.cn:12356","威海市妇幼"); | |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | @Autowired |
| 65 | 65 | |
| ... | ... | @@ -167,13 +167,11 @@ |
| 167 | 167 | for (final String url : urls.keySet()) |
| 168 | 168 | { |
| 169 | 169 | try{ |
| 170 | - System.out.println(" areaurl = "+ url ); | |
| 171 | - String areaName = urls.get(url); | |
| 172 | 170 | String json = HttpClientUtil.doPost("https://"+url+"/findSyncData", new HashMap<String, String>(), "utf-8"); |
| 173 | 171 | if (com.lyms.platform.common.utils.StringUtils.isNotEmpty(json)) |
| 174 | 172 | { |
| 175 | 173 | List<SyncDataModel> list = JsonUtil.toList(json, SyncDataModel.class); |
| 176 | - System.out.println(areaName+" syncdata size = "+ list.size()); | |
| 174 | + System.out.println(DateUtil.getyyyy_MM_dd_hms(new Date())+url+" ; syncdata size = "+ list.size()); | |
| 177 | 175 | int batchSize = 200; |
| 178 | 176 | int end = 0; |
| 179 | 177 | for (int i = 0; i < list.size(); i += batchSize) { |