فهرست منبع

修复匹配bug

lighter 3 سال پیش
والد
کامیت
019c92a75c
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/main/java/thyyxxk/webserver/service/dictionary/NationalMatchService.java

+ 4 - 0
src/main/java/thyyxxk/webserver/service/dictionary/NationalMatchService.java

@@ -122,6 +122,10 @@ public class NationalMatchService {
             dao.matchMedicineAndHerbal(param.getCode(), staffId, param.getNationalCode(), param.getNationalName());
         } else {
             ChargeItemMatch chargeItemMatch = dao.selectServiceAbout(param.getNationalCode());
+            if (null == chargeItemMatch) {
+                chargeItemMatch = new ChargeItemMatch();
+                chargeItemMatch.setNationalCode(param.getNationalCode());
+            }
             chargeItemMatch.setHisCode(param.getCode());
             chargeItemMatch.setStaffId(staffId);
             chargeItemMatch.setNationalName(param.getNationalName());