Commit 5ba630de3027e20717adabcbfedb8065ec925f01

Authored by gengxiaokai
1 parent bfa25fdff4

滦平分娩接口

Showing 1 changed file with 18 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/hospitalapi/zcfy/ZcfyHisService.java View file @ 5ba630d
... ... @@ -74,7 +74,7 @@
74 74 {
75 75 if (zc != null && StringUtils.isNotEmpty(zc.getCardNo()))
76 76 {
77   - vcCardNos.add(zc.getCardNo());
  77 + vcCardNos.add(getZcVcardNo(zc.getCardNo()));
78 78 }
79 79 }
80 80 }
... ... @@ -84,6 +84,23 @@
84 84 }
85 85 return vcCardNos;
86 86 }
  87 +
  88 +
  89 + /**
  90 + * 诸城就诊卡号处理
  91 + * @param vcCardNo
  92 + * @return
  93 + */
  94 + private String getZcVcardNo(String vcCardNo) {
  95 + if (StringUtils.isNotEmpty(vcCardNo) && vcCardNo.length() > 7)
  96 + {
  97 + String no = "0000"+vcCardNo.substring(0,8);
  98 + System.out.println(no);
  99 + return no;
  100 + }
  101 + return vcCardNo;
  102 + }
  103 +
87 104  
88 105 }