Browse Source

psnCertType=01是身份证,mdtrtCertType=02是身份证,两个要做个转换

lighter 9 months ago
parent
commit
aaa73b3bf9

+ 6 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/impl/JzYbData.java

@@ -32,6 +32,9 @@ public class JzYbData implements ZyOrJzYbData {
         if (null == admMdtrtinfo) {
             throw new BizException("没有查询到此患者的参保信息,请按正确流程操作。");
         }
+        if (admMdtrtinfo.getMdtrtCertType().equals("01")) {
+            admMdtrtinfo.setMdtrtCertType("02");
+        }
         Date setlEndTime = dao.selectSetlEndTime(jzptnt.getInpatientNo(), jzptnt.getAdmissTimes());
         if (null != setlEndTime && setlEndTime.after(admMdtrtinfo.getBegntime())) {
             throw new BizException(ExceptionEnum.LOGICAL_ERROR, "此患者有 " +
@@ -65,6 +68,9 @@ public class JzYbData implements ZyOrJzYbData {
 
     private List<AdmDiseinfo> makeAdmDiseinfoFromIcd(String patNo, int times, CodeName icd) {
         AdmMdtrtinfo admMdtrtinfo = dao.selectAdmMdtrtinfo(patNo, times);
+        if (admMdtrtinfo.getMdtrtCertType().equals("01")) {
+            admMdtrtinfo.setMdtrtCertType("02");
+        }
         String[] icdCodeArr = icd.getCode().split(",");
         String[] icdNameArr = icd.getName().split(",");
         List<AdmDiseinfo> list = new ArrayList<>();

+ 3 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/impl/ZyYbData.java

@@ -32,6 +32,9 @@ public class ZyYbData implements ZyOrJzYbData {
         if (null == admMdtrtinfo) {
             throw new BizException("没有查询到此患者的参保信息,请按正确流程操作。");
         }
+        if (admMdtrtinfo.getMdtrtCertType().equals("01")) {
+            admMdtrtinfo.setMdtrtCertType("02");
+        }
         Gender idGender = IdCardUtil.getGenderByIdCard(zyptnt.getSocialNo());
         Gender inputGender = Gender.getGenderByCode(zyptnt.getSex());
         if (idGender != Gender.UNKNOWN && idGender != inputGender) {