| | |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.mapper.BaseOrganizationMapper; |
| | | import com.smartor.mapper.PatArchiveMapper; |
| | | import com.smartor.mapper.ServiceSubtaskMapper; |
| | | import com.smartor.service.IServiceTaskService; |
| | | import com.smartor.service.ISvyTaskSingleService; |
| | |
| | | |
| | | @Autowired |
| | | private RedisCache redisCache; |
| | | @Autowired |
| | | private PatArchiveMapper patArchiveMapper; |
| | | |
| | | |
| | | @Override |
| | |
| | | log.error("360查询条件为空"); |
| | | throw new BaseException("360查询条件为空"); |
| | | } |
| | | String token = LSHospTokenUtil.getToken(serviceQueryInfo.getXiaoXiTou().getFaSongJGID(),serviceQueryInfo.getUrl()); |
| | | String token = ""; |
| | | if(ObjectUtils.isNotEmpty(serviceQueryInfo.getUrl())){ |
| | | token = LSHospTokenUtil.getToken(serviceQueryInfo.getXiaoXiTou().getFaSongJGID(),serviceQueryInfo.getUrl()); |
| | | } |
| | | |
| | | //用户信息,通过ZuZhiJGID去bse_organization中获取机构信息 |
| | | if (StringUtils.isBlank(serviceQueryInfo.getYeWuXX().getYongHuXX().getZuZhiJGID())) |
| | |
| | | result = OkHttpExample.sendPostRequest("https://9.0.124.104:13021/mediinfo-grus-fuwuzxwg/api/esb/lyraSyncRun", jsonString, token); |
| | | }else if (serviceQueryInfo.getXiaoXiTou().getFaSongJGID().equals("47231022633110211A2101")) { //中医院 |
| | | result = OkHttpExample.sendPostRequest("https://9.0.124.104:13011/mediinfo-grus-fuwuzxwg/api/esb/lyraSyncRun", jsonString, token); |
| | | }else if (serviceQueryInfo.getXiaoXiTou().getFaSongJGID().equals("1")) { //杭州市一 |
| | | YeWuXX yeWuXX = serviceQueryInfo.getYeWuXX(); |
| | | BingRenXX bingRenXX = ObjectUtils.isNotEmpty(yeWuXX) ? yeWuXX.getBingRenXX() : null; |
| | | PatArchive patArchive = new PatArchive(); |
| | | if (ObjectUtils.isNotEmpty(bingRenXX)) { |
| | | patArchive.setIdcardno(bingRenXX.getZhengJianHM()); |
| | | if(ObjectUtils.isNotEmpty(patArchive.getIdcardno())){ |
| | | List<PatArchive> patArchives = patArchiveMapper.selectPatArchiveList(patArchive); |
| | | if(CollectionUtils.isNotEmpty(patArchives)){ |
| | | String patidHis = patArchives.get(0).getPatidHis(); |
| | | result = OkHttpExample.getUnsafe("http://192.200.81.189:9100/blj/view?BINGRENID="+ patidHis +"&YONGHUID=DBA", token); |
| | | } |
| | | } |
| | | } |
| | | }else if(ObjectUtils.isNotEmpty(serviceQueryInfo.getUrl360())){ |
| | | result = OkHttpExample.sendPostRequest(serviceQueryInfo.getUrl360(), jsonString, token); |
| | | } |