|
@@ -41,10 +41,13 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
"and status_flag > '2' and isnull(group_no,'00' )='00' and order_code in ('06026','06053','05973')) > 0 " +
|
|
|
"then 1 else 0 end " +
|
|
|
"FROM yz_zy_patient_fee a left join zy_actpatient b on (a.inpatient_no = b.inpatient_no and a.admiss_times = b.admiss_times) " +
|
|
|
- "where a.charge_status ${liShi}'3' and a.exec_unit in " +
|
|
|
+ "where a.charge_status ${liShi}'3' " +
|
|
|
+ "<if test=\"list.size > 0\">" +
|
|
|
+ "and a.exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
" #{item} " +
|
|
|
"</foreach>" +
|
|
|
+ "</if>" +
|
|
|
"<if test=\"inpatientNo !=null and inpatientNo != '' \">" +
|
|
|
" and a.inpatient_no = #{inpatientNo} " +
|
|
|
"</if>" +
|
|
@@ -94,10 +97,13 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
"and status_flag > '2' and isnull(group_no,'00' )='00' and order_code in ('06026','06053','05973')) > 0 " +
|
|
|
"then 1 else 0 end " +
|
|
|
"FROM yz_zy_patient_fee a left join zy_actpatient b on (a.inpatient_no = b.inpatient_no and a.admiss_times = b.admiss_times) " +
|
|
|
- "where a.charge_status ${liShi} '3' and a.exec_unit in " +
|
|
|
+ "where a.charge_status ${liShi} '3' " +
|
|
|
+ "<if test=\"list.size > 0\">" +
|
|
|
+ "and a.exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
" #{item} " +
|
|
|
"</foreach>" +
|
|
|
+ "</if>" +
|
|
|
"<if test=\"inpatientNo !=null and inpatientNo != '' \">" +
|
|
|
" and a.inpatient_no = #{inpatientNo} " +
|
|
|
"</if>" +
|
|
@@ -144,10 +150,12 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
" and convert(varchar(20),a.occ_time,23)<=convert(varchar(20),getdate(),23) " +
|
|
|
"</otherwise>" +
|
|
|
"</choose>" +
|
|
|
+ "<if test=\"list.size > 0\">" +
|
|
|
"and a.exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
" #{item} " +
|
|
|
"</foreach>" +
|
|
|
+ "</if>" +
|
|
|
"and a.inpatient_no in " +
|
|
|
"<foreach collection='inpatientNoList' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
" #{item.inpatientNo} " +
|
|
@@ -187,10 +195,12 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
"left join zd_unit_code f on (a.ward_code = f.code) " +
|
|
|
"where a.charge_status <> '3' " +
|
|
|
" and convert(varchar(20),a.occ_time,23)<=convert(varchar(20),getdate(),23) " +
|
|
|
+ "<if test=\"list.size > 0\">" +
|
|
|
" and a.exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
" #{item} " +
|
|
|
"</foreach>" +
|
|
|
+ "</if>" +
|
|
|
"<if test=\"yiQueFeiShuJu != null and yiQueFeiShuJu.size > 0 \">" +
|
|
|
" and a.inpatient_no in " +
|
|
|
"<foreach collection='yiQueFeiShuJu' item='item' index='index' open='(' close=')' separator=','>" +
|