Parcourir la source

优化psnNo的获取

lighter il y a 1 an
Parent
commit
a6f0feeee0

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

@@ -96,7 +96,7 @@ public interface SiQueryDao {
      * @param patNo 住院号/门诊ID
      * @return 患者的医保个人编号
      */
-    @Select("select top 1 psn_no from t_si_pat_info where pat_no=#{patNo}")
+    @Select("select top 1 psn_no from t_si_pat_info where pat_no=#{patNo} order by times desc")
     String selectPsnNo(@Param("patNo") String patNo);
 
     @Select("select * from t_si_pat_info where mdtrt_id=#{mdtrtId}")