Browse Source

优化门诊共济

lighter 2 years ago
parent
commit
9df69f0035

+ 2 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiMzService.java

@@ -74,6 +74,8 @@ public class SiMzService {
         queryMzChargeListParam.put("patCardType", 21);
         queryMzChargeListParam.put("patCardNo", patNo);
         queryMzChargeListParam.put("hisOrdNum", "");
+        queryMzChargeListParam.put("ybRequest", 1);
+
         Map<String, Object> mzChargeListMap = thmz.getMzChargeDetailForUnPaid(thmzApiUrl, queryMzChargeListParam);
         if (null == mzChargeListMap) {
             return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);

+ 1 - 2
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiQueryService.java

@@ -1399,8 +1399,7 @@ public class SiQueryService {
             }
             for (int i = 0; i < output.size(); i++) {
                 JSONObject feeItem = output.getJSONObject(i);
-                String[] mzFeeDetlSn = feeItem.getString("feedetl_sn").split("_");
-                feeItem.replace("feedetl_sn", Integer.parseInt(mzFeeDetlSn[mzFeeDetlSn.length - 1]));
+                feeItem.replace("feedetl_sn", i + 1);
                 SiSetlFeeDetl fee = JSONObject.parseObject(feeItem.toJSONString(), SiSetlFeeDetl.class);
                 if (StringUtil.isBlank(fee.getSetlId())) {
                     fee.setSetlId(setlId);