Kaynağa Gözat

优化排序

lihong 1 ay önce
ebeveyn
işleme
f35116cd79

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/inpatient/charge/CashierProcessDao.java

@@ -26,7 +26,7 @@ public interface CashierProcessDao {
 
     @Select("<script>" +
             " select top ${pageSize} * from ( " +
-            "                       SELECT    ROW_NUMBER() OVER (ORDER BY  zy_actpatient.inpatient_no  ) AS rowNumber, " +
+            "                       SELECT    ROW_NUMBER() OVER (ORDER BY  zy_actpatient.inpatient_no,zy_actpatient.admiss_times desc   ) AS rowNumber, " +
             "                              zy_actpatient.inpatient_no, " +
             "                              zy_actpatient.admiss_times, " +
             "                              zy_actpatient.name, " +