Browse Source

住院诊断优化

lihong 2 years ago
parent
commit
b1b38706ef

+ 3 - 0
src/main/java/cn/hnthyy/thmz/controller/api/MedicalViewApiController.java

@@ -637,6 +637,7 @@ public class MedicalViewApiController {
             return results;
         }
         try {
+            log.info("微信查询待缴费记录传参====>{}",JsonUtil.object2Json(haiciCharge));
             String[] arr = haiciCharge.getHisOrdNum().split("_");
             MzChargeDetail mzChargeDetail = new MzChargeDetail(arr[0], Integer.valueOf(arr[1]));
             mzChargeDetail.setBillItemCode("100");
@@ -685,6 +686,8 @@ public class MedicalViewApiController {
                 map.put("execDeptAddress", (unitCode == null || unitCode.getOfficePos() == null) ? "" : unitCode.getOfficePos());
                 returnList.add(map);
             }
+            log.info("微信查询待缴费门诊号===>{},就诊次数====>{}", arr[0], arr[1]);
+            log.info("微信查询待缴费记录明细===>{}",JsonUtil.object2Json(returnList));
             results.put("resultCode", 0);
             results.put("resultMessage", "待缴费记录明细查询成功");
             results.put("data", returnList);

+ 2 - 10
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -2524,16 +2524,8 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
             mzZyReq.setReqWard(mzZyReq.getReqDept());
             mzZyReq.setIcdCodeNew(mzPrescriptionVo.getIcdCode());
             mzZyReq.setIcdTextNew(mzPrescriptionVo.getIcdText());
-            if (mzZyReq.getIcdCodeNew() != null && mzZyReq.getIcdCodeNew().length() > 10) {
-                mzZyReq.setIcdCode(mzZyReq.getIcdCodeNew().substring(0, 9));
-            } else {
-                mzZyReq.setIcdCode(mzZyReq.getIcdCodeNew());
-            }
-            if (mzZyReq.getIcdTextNew() != null && mzZyReq.getIcdTextNew().length() > 25) {
-                mzZyReq.setIcdText(mzZyReq.getIcdTextNew().substring(0, 20));
-            } else {
-                mzZyReq.setIcdText(mzZyReq.getIcdTextNew());
-            }
+            mzZyReq.setIcdCode(mzZyReq.getIcdCodeNew());
+            mzZyReq.setIcdText(mzZyReq.getIcdTextNew());
             mzZyReq.setReqStatus(ZyReqEnum.UN_CONFIRM.code);
             mzZyReq.setVisitDate(now);
             mzZyReq.setName(mzPatientMi.getName());