Kaynağa Gözat

首页的住院患者按床位号排序

lighter 1 yıl önce
ebeveyn
işleme
33247ed013

+ 3 - 1
src/main/java/thyyxxk/webserver/dao/his/dashboard/DashboardDao.java

@@ -27,6 +27,8 @@ public interface DashboardDao {
             "sickLevelOrderName=(select top 1 rtrim(order_name) from yz_act_order t where " +
             "t.order_code in ('05887','05888') and t.group_no='00' and t.status_flag in ('3','4')  " +
             "and t.inpatient_no=a.inpatient_no order by t.start_time desc)  " +
-            "from zy_actpatient a where (zk_ward=#{dept} or zk_ward in (select small_dept from zd_dept_all t where t.dept=#{dept}))")
+            "from zy_actpatient a where (zk_ward=#{dept} or zk_ward in " +
+            "(select small_dept from zd_dept_all t where t.dept=#{dept})) " +
+            "order by cast(bed_no as int)")
     List<InpatientBrief> selectInpatientBrief(@Param("dept") String dept);
 }