Commit 6f7dc909abdb275d6450d4fa13b00dd6cf4eeced
1 parent
877a64db9a
Exists in
master
and in
6 other branches
荣成公卫
Showing 1 changed file with 52 additions and 26 deletions
platform-operate-api/src/main/java/com/lyms/hospitalapi/rcfy/ws/RcGwInterface.java
View file @
6f7dc90
... | ... | @@ -129,14 +129,15 @@ |
129 | 129 | //4 调用webservice客户端。 |
130 | 130 | String operate = "ca65a3ac7b9fe63e31a841f6aeac5011";//第一次随访接口 |
131 | 131 | String webServiceStr = getWebServiceStr(key, operate, xmlString); |
132 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
132 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
133 | 133 | |
134 | 134 | } catch (Exception e) { |
135 | 135 | e.printStackTrace(); |
136 | - ExceptionUtils.catchException("6 异常: "+antExChuModel.getId()); | |
136 | + ExceptionUtils.catchException("6 异常: " + antExChuModel.getId()); | |
137 | 137 | continue; |
138 | 138 | } |
139 | 139 | } |
140 | + System.out.println("第一次随访,执行完"); | |
140 | 141 | } else { |
141 | 142 | br.setErrorcode(ErrorCodeConstants.NO_DATA); |
142 | 143 | br.setErrormsg("没有初诊数据"); |
... | ... | @@ -216,7 +217,7 @@ |
216 | 217 | xmlString = getFuZhenXMLStr(fu, basicInfoMap, patients); |
217 | 218 | operate = basicInfoMap.get("operate"); |
218 | 219 | webServiceStr = getWebServiceStr(key, operate, xmlString); |
219 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
220 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
220 | 221 | break; |
221 | 222 | |
222 | 223 | case 1://第三随访 |
... | ... | @@ -226,7 +227,7 @@ |
226 | 227 | xmlString = getFuZhen3XMLStr(fu, basicInfoMap, patients); |
227 | 228 | operate = basicInfoMap.get("operate"); |
228 | 229 | webServiceStr = getWebServiceStr(key, operate, xmlString); |
229 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
230 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
230 | 231 | break; |
231 | 232 | case 2://第四随访 |
232 | 233 | basicInfoMap.put("suiFangB", "T_FB_CQJCJLSIC"); |
... | ... | @@ -235,7 +236,7 @@ |
235 | 236 | xmlString = getFuZhen3XMLStr(fu, basicInfoMap, patients); |
236 | 237 | operate = basicInfoMap.get("operate"); |
237 | 238 | webServiceStr = getWebServiceStr(key, operate, xmlString); |
238 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
239 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
239 | 240 | break; |
240 | 241 | case 3://第五随访 |
241 | 242 | basicInfoMap.put("suiFangB", "T_FB_CQJCJLWUC"); |
... | ... | @@ -244,7 +245,7 @@ |
244 | 245 | xmlString = getFuZhen3XMLStr(fu, basicInfoMap, patients); |
245 | 246 | operate = basicInfoMap.get("operate"); |
246 | 247 | webServiceStr = getWebServiceStr(key, operate, xmlString); |
247 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
248 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
248 | 249 | break; |
249 | 250 | } |
250 | 251 | |
251 | 252 | |
... | ... | @@ -252,11 +253,13 @@ |
252 | 253 | |
253 | 254 | |
254 | 255 | } catch (Exception e) { |
255 | - ExceptionUtils.catchException("6 异常: "+list.get(i).getParentId()); | |
256 | + ExceptionUtils.catchException("6 异常: " + list.get(i).getParentId()); | |
256 | 257 | continue; |
257 | 258 | } |
258 | 259 | |
259 | 260 | } |
261 | + | |
262 | + System.out.println("第2 3 4 5次随访,执行完"); | |
260 | 263 | } else { |
261 | 264 | br.setErrorcode(ErrorCodeConstants.NO_DATA); |
262 | 265 | br.setErrormsg("没有复诊数据"); |
263 | 266 | |
264 | 267 | |
... | ... | @@ -318,13 +321,15 @@ |
318 | 321 | //4 调用webservice客户端。 |
319 | 322 | String operate = "62f6653bf6eb40b4b38a01efd11aa27a";//产后访视接口 |
320 | 323 | String webServiceStr = getWebServiceStr(key, operate, xmlString); |
321 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
324 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
322 | 325 | } catch (Exception e) { |
323 | - ExceptionUtils.catchException("6 异常: "+matdeliverFollowModel.getId()); | |
326 | + ExceptionUtils.catchException("6 异常: " + matdeliverFollowModel.getId()); | |
324 | 327 | continue; |
325 | 328 | } |
326 | 329 | |
327 | 330 | } |
331 | + System.out.println("访视,执行完"); | |
332 | + | |
328 | 333 | } else { |
329 | 334 | br.setErrorcode(ErrorCodeConstants.NO_DATA); |
330 | 335 | br.setErrormsg("没有访视数据"); |
331 | 336 | |
332 | 337 | |
... | ... | @@ -386,14 +391,15 @@ |
386 | 391 | //4 调用webservice客户端。 |
387 | 392 | String operate = "9b360fa937d34960ba5c214fa55fad1b";//产后42天接口 |
388 | 393 | String webServiceStr = getWebServiceStr(key, operate, xmlString); |
389 | - ExceptionUtils.catchException("5 调用webservice客户端: "+webServiceStr); | |
394 | + ExceptionUtils.catchException("5 调用webservice客户端: " + webServiceStr); | |
390 | 395 | |
391 | 396 | } catch (Exception e) { |
392 | - ExceptionUtils.catchException("6 异常: "+postReviewModel.getId()); | |
397 | + ExceptionUtils.catchException("6 异常: " + postReviewModel.getId()); | |
393 | 398 | continue; |
394 | 399 | } |
395 | 400 | |
396 | 401 | } |
402 | + System.out.println("产后42天,执行完"); | |
397 | 403 | } else { |
398 | 404 | br.setErrorcode(ErrorCodeConstants.NO_DATA); |
399 | 405 | br.setErrormsg("没有产后42天数据"); |
... | ... | @@ -440,9 +446,13 @@ |
440 | 446 | String dueDate = chu.getDueDate() != null ? sdf.format(chu.getDueDate()) : ""; |
441 | 447 | String FMcyj = chu.getLastMenses() != null ? sdf.format(patients.getLastMenses()) : ""; |
442 | 448 | //血压 |
443 | - Map maps = (Map) JSON.parse(chu.getBp()); | |
444 | - String ssy = maps.get("ssy").toString(); | |
445 | - String szy = maps.get("szy").toString(); | |
449 | + String ssy = ""; | |
450 | + String szy = ""; | |
451 | + if (StringUtils.isNotEmpty(chu.getBp())) { | |
452 | + Map maps = (Map) JSON.parse(chu.getBp()); | |
453 | + ssy = maps.get("ssy").toString(); | |
454 | + szy = maps.get("szy").toString(); | |
455 | + } | |
446 | 456 | xmlString = |
447 | 457 | "<?xml version=\"1.0\" encoding=\"utf-8\"?><XMLTOPERSONS return=\"TRUE\" biaoshi=\"2\" prgid=\"" + pRgid + "\" username=\"" + username + "\" value=\"0\">" |
448 | 458 | + "<row name=\"T_DA_JKDA_RKXZL\">" |
... | ... | @@ -580,9 +590,13 @@ |
580 | 590 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
581 | 591 | String getCheckDate = fu.getCheckDate() != null ? sdf.format(fu.getCheckDate()) : ""; |
582 | 592 | //血压 |
583 | - Map maps = (Map) JSON.parse(fu.getBp()); | |
584 | - String ssy = maps.get("ssy").toString(); | |
585 | - String szy = maps.get("szy").toString(); | |
593 | + String ssy = ""; | |
594 | + String szy = ""; | |
595 | + if (StringUtils.isNotEmpty(fu.getBp())) { | |
596 | + Map maps = (Map) JSON.parse(fu.getBp()); | |
597 | + ssy = maps.get("ssy").toString(); | |
598 | + szy = maps.get("szy").toString(); | |
599 | + } | |
586 | 600 | //胎心率 |
587 | 601 | String heartRate = getTxlStr(fu); |
588 | 602 | |
... | ... | @@ -663,9 +677,13 @@ |
663 | 677 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
664 | 678 | String getCheckDate = fu.getCheckDate() != null ? sdf.format(fu.getCheckDate()) : ""; |
665 | 679 | //血压 |
666 | - Map maps = (Map) JSON.parse(fu.getBp()); | |
667 | - String ssy = maps.get("ssy").toString(); | |
668 | - String szy = maps.get("szy").toString(); | |
680 | + String ssy = ""; | |
681 | + String szy = ""; | |
682 | + if (StringUtils.isNotEmpty(fu.getBp())) { | |
683 | + Map maps = (Map) JSON.parse(fu.getBp()); | |
684 | + ssy = maps.get("ssy").toString(); | |
685 | + szy = maps.get("szy").toString(); | |
686 | + } | |
669 | 687 | //胎心率 |
670 | 688 | String heartRate = getTxlStr(fu); |
671 | 689 | |
... | ... | @@ -744,9 +762,13 @@ |
744 | 762 | String getUpdateDate = fs.getUpdateDate() != null ? sdf.format(fs.getUpdateDate()) : ""; |
745 | 763 | String getNextVisitDate = fs.getNextVisitDate() != null ? sdf.format(fs.getNextVisitDate()) : ""; |
746 | 764 | //血压 |
747 | - Map maps = (Map) JSON.parse(fs.getBp()); | |
748 | - String ssy = maps.get("ssy").toString(); | |
749 | - String szy = maps.get("szy").toString(); | |
765 | + String ssy = ""; | |
766 | + String szy = ""; | |
767 | + if (StringUtils.isNotEmpty(fs.getBp())) { | |
768 | + Map maps = (Map) JSON.parse(fs.getBp()); | |
769 | + ssy = maps.get("ssy").toString(); | |
770 | + szy = maps.get("szy").toString(); | |
771 | + } | |
750 | 772 | String getBreast = fs.getBreast() == 1 ? "1" : ""; |
751 | 773 | String getLochia = fs.getLochia() == 1 ? "1" : ""; |
752 | 774 | String getWound = fs.getWound() == 1 ? "1" : ""; |
... | ... | @@ -828,9 +850,13 @@ |
828 | 850 | String getCreated = fc.getCreated() != null ? sdf.format(fc.getCreated()) : ""; |
829 | 851 | String getCheckTime = fc.getCheckTime() != null ? sdf.format(fc.getCheckTime()) : ""; |
830 | 852 | //血压 |
831 | - Map maps = (Map) JSON.parse(fc.getBp()); | |
832 | - String ssy = maps.get("ssy").toString(); | |
833 | - String szy = maps.get("szy").toString(); | |
853 | + String ssy = ""; | |
854 | + String szy = ""; | |
855 | + if (StringUtils.isNotEmpty(fc.getBp())) { | |
856 | + Map maps = (Map) JSON.parse(fc.getBp()); | |
857 | + ssy = maps.get("ssy").toString(); | |
858 | + szy = maps.get("szy").toString(); | |
859 | + } | |
834 | 860 | String getBreast = fc.getBreast() == "未见异常" ? "1" : "99"; |
835 | 861 | String getBreastStr = getBreast == "99" ? fc.getBreast() : ""; |
836 | 862 | String getMatrix = fc.getMatrix() == "未见异常" ? "1" : "99"; |