|
@@ -12,9 +12,13 @@ public interface DailyPatientCountDao {
|
|
|
"isnull(b.group_no,'00' )='00' and b.order_code in ('06026','06053','05973'))), " +
|
|
|
"admissCount=(select count(1) from zy_actpatient with(nolock) where datediff(day,admiss_date,getdate())=1), " +
|
|
|
"dismissCount=((select count(1) from yz_act_order with(nolock) where status_flag > '2' and " +
|
|
|
- "datediff(day,start_time,getdate())=1 and isnull(group_no,'00' )='00' and order_code in ('06026','06053','05973')) " +
|
|
|
+ "datediff(day,start_time,getdate())=1 and isnull(group_no,'00' )='00' and order_code in ('06026','06053')) " +
|
|
|
"+ (select count(1) from yz_inact_order with(nolock) where status_flag > '2' and " +
|
|
|
- "datediff(day,start_time,getdate())=1 and isnull(group_no,'00' )='00' and order_code in ('06026','06053','05973'))), " +
|
|
|
+ "datediff(day,start_time,getdate())=1 and isnull(group_no,'00' )='00' and order_code in ('06026','06053'))), " +
|
|
|
+ "deadCount=((select count(1) from yz_act_order with(nolock) where status_flag > '2' and " +
|
|
|
+ "datediff(day,start_time,getdate())=1 and isnull(group_no,'00' )='00' and order_code='05973') + " +
|
|
|
+ "(select count(1) from yz_inact_order with(nolock) where status_flag > '2' and " +
|
|
|
+ "datediff(day,start_time,getdate())=1 and isnull(group_no,'00' )='00' and order_code='05973'))," +
|
|
|
"heavyCount=(select count(1) from yz_act_order with(nolock) where status_flag!='5' " +
|
|
|
"and isnull(group_no,'00' )='00' and order_code='05888'), " +
|
|
|
"dangerCount=(select count(1) from yz_act_order with(nolock) where status_flag!='5' " +
|