|
@@ -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);
|
|
|
}
|