|
@@ -47,11 +47,11 @@ public interface CaseFrontSheetAnalyzeDao {
|
|
|
"from zy_inactpatient a, a_patient_mi b, batj_ba2 c, " +
|
|
|
"(select inpatient_no,admiss_times,start_time from yz_act_order " +
|
|
|
"where start_time>=#{begntime} and start_time<=#{endtime} " +
|
|
|
- "and order_code='05973' and exec_unit like #{dept} " +
|
|
|
+ "and order_code='05973' and group_no='00' and exec_unit like #{dept} " +
|
|
|
"union " +
|
|
|
"select inpatient_no,admiss_times,start_time from yz_inact_order " +
|
|
|
"where start_time>=#{begntime} and start_time<=#{endtime} " +
|
|
|
- "and order_code='05973' and exec_unit like #{dept}) d " +
|
|
|
+ "and order_code='05973' and group_no='00' and exec_unit like #{dept}) d " +
|
|
|
"where a.inpatient_no=b.inpatient_no and a.inpatient_no=c.zyh and " +
|
|
|
" a.inpatient_no=d.inpatient_no and a.admiss_times=c.zycs and " +
|
|
|
" a.admiss_times=d.admiss_times " +
|
|
@@ -68,10 +68,10 @@ public interface CaseFrontSheetAnalyzeDao {
|
|
|
"from zy_actpatient a, a_patient_mi b, batj_ba2 c, " +
|
|
|
"(select inpatient_no,admiss_times,start_time from yz_act_order " +
|
|
|
"where start_time>=#{begntime} and start_time<=#{endtime} " +
|
|
|
- "and order_code='05973' and exec_unit like #{dept} union " +
|
|
|
+ "and order_code='05973' and group_no='00' and exec_unit like #{dept} union " +
|
|
|
"select inpatient_no,admiss_times,start_time from yz_inact_order " +
|
|
|
"where start_time>=#{begntime} and start_time<=#{endtime} " +
|
|
|
- "and order_code='05973' and exec_unit like #{dept}) d " +
|
|
|
+ "and order_code='05973' and group_no='00' and exec_unit like #{dept}) d " +
|
|
|
"where a.inpatient_no=b.inpatient_no and a.inpatient_no=c.zyh and " +
|
|
|
" a.inpatient_no=d.inpatient_no and a.admiss_times=c.zycs and " +
|
|
|
" a.admiss_times=d.admiss_times ")
|