Commit 219461aed958c1963a06050fcdbc4b05c80537bb
1 parent
0472393a0d
Exists in
master
and in
6 other branches
update
Showing 1 changed file with 30 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
219461a
... | ... | @@ -3322,6 +3322,36 @@ |
3322 | 3322 | } |
3323 | 3323 | |
3324 | 3324 | |
3325 | + @RequestMapping(value = "/setOrgAreaUrlConfig", method = RequestMethod.GET) | |
3326 | + @ResponseBody | |
3327 | + public String setOrgAreaUrlConfig(@RequestParam(required = true) String cityId) | |
3328 | + { | |
3329 | + Map<String,String> urlMap = new HashMap<>(); | |
3330 | + urlMap.put("2","https://area-qhd-api.healthbaby.com.cn:18019");//,"秦皇岛" | |
3331 | + urlMap.put("5113aa","https://area-nc-api.healthbaby.com.cn:12356");//,"南充" | |
3332 | + urlMap.put("9","https://area-chengde-api.healthbaby.com.cn:12356");//,"承德" | |
3333 | + urlMap.put("4", "https://rp-api.healthbaby.com.cn");//,"线上" | |
3334 | + OrganizationQuery query = new OrganizationQuery(); | |
3335 | + query.setCityId(cityId); | |
3336 | + List<Organization> orgs = organizationService.queryOrganization(query); | |
3337 | + List<Map> list = new ArrayList<>(); | |
3338 | + for (Organization organization : orgs) | |
3339 | + { | |
3340 | + Map config = new HashMap(); | |
3341 | + config.put("hospitalId",organization.getId()); | |
3342 | + config.put("domain",urlMap.get(cityId)); | |
3343 | + config.put("yn",1); | |
3344 | + config.put("title", organization.getName()); | |
3345 | + list.add(config); | |
3346 | + } | |
3347 | + String str = HttpClientUtil.doPostSSL("https://dev-app-member-api.healthbaby.com.cn/v1/setOrgAreaUrlConfig",list); | |
3348 | + return str; | |
3349 | + } | |
3350 | + | |
3351 | + | |
3352 | + | |
3353 | + | |
3354 | + | |
3325 | 3355 | /** |
3326 | 3356 | * 返回秦皇岛就诊卡的密码 |
3327 | 3357 | * 根据传入的卡的id来计算解密卡号的密码 |