Browse Source

psnCertType优化

lighter 1 year ago
parent
commit
96202aed40

+ 2 - 1
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/SiQueryDao.java

@@ -33,7 +33,8 @@ public interface SiQueryDao {
      * @param patNo 门诊号
      * @return 门诊患者的身份证和姓名
      */
-    @Select("select social_no,rtrim(name) as name,times from mz_patient_mi where patient_id=#{patNo}")
+    @Select("select rtrim(social_no) as socialNo,rtrim(name) as name,times, " +
+            "certificate_type as psnCertType from mz_patient_mi where patient_id=#{patNo}")
     QryPsnBsInfo selectMzSocialAndName(@Param("patNo") String patNo);
 
     /**

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

@@ -106,6 +106,7 @@ public class SiQueryService {
             }
             qryPsnBsInfo.setName(qpbi.getName());
             qryPsnBsInfo.setSocialNo(qpbi.getSocialNo());
+            qryPsnBsInfo.setPsnCertType(qpbi.getPsnCertType());
             qryPsnBsInfo.setLedgerSn(0);
         }
         if (null != qryPsnBsInfo.getLedgerSn() && qryPsnBsInfo.getLedgerSn() != 0) {