|
|
@@ -41,7 +41,7 @@ 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' " +
|
|
|
+ "where a.charge_status ='3' " +
|
|
|
"<if test=\"list.size > 0\">" +
|
|
|
"and a.exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
@@ -71,8 +71,7 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
@Param("list") List<String> list,
|
|
|
@Param("startTime") String startTime,
|
|
|
@Param("endTime") String endTime,
|
|
|
- @Param("fenLei") String fenLei,
|
|
|
- @Param("liShi") String liShi);
|
|
|
+ @Param("fenLei") String fenLei);
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -97,7 +96,7 @@ 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' " +
|
|
|
+ "where a.charge_status = '3' " +
|
|
|
"<if test=\"list.size > 0\">" +
|
|
|
"and a.exec_unit in " +
|
|
|
"<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
@@ -126,8 +125,7 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
@Param("wardCode") String wardCode,
|
|
|
@Param("list") List<String> list,
|
|
|
@Param("startTime") String startTime,
|
|
|
- @Param("endTime") String endTime,
|
|
|
- @Param("liShi") String liShi);
|
|
|
+ @Param("endTime") String endTime);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
"select a.charge_status,e.name docotr_name,a.act_order_no,c.name charge_name,a.charge_code,a.charge_fee," +
|
|
|
@@ -137,11 +135,11 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
",op_id_name = (select rtrim(name) name from a_employee_mi where a_employee_mi.code = a.op_id)," +
|
|
|
"a.op_date" +
|
|
|
"</if>" +
|
|
|
- "from yz_zy_patient_fee a left join zd_charge_item c on (a.charge_code=c.code)\n" +
|
|
|
- "left join yz_act_order d on (a.inpatient_no=d.inpatient_no and a.admiss_times=d.admiss_times and a.act_order_no=d.act_order_no )\n" +
|
|
|
+ "from yz_zy_patient_fee a left join zd_charge_item c on (a.charge_code=c.code) " +
|
|
|
+ "left join yz_act_order d on (a.inpatient_no=d.inpatient_no and a.admiss_times=d.admiss_times and a.act_order_no=d.act_order_no ) " +
|
|
|
"left join a_employee_mi e on (d.physician=e.code)" +
|
|
|
"where " +
|
|
|
- "a.charge_status ${liShi} '3' " +
|
|
|
+ "a.charge_status = '3' " +
|
|
|
"<choose>" +
|
|
|
"<when test=\"startTime != null and startTime != '' \">" +
|
|
|
" and a.occ_time >= #{startTime} and a.occ_time <= #{endTime} " +
|
|
|
@@ -164,8 +162,45 @@ public interface QueRenYiZhuShouFeiDao {
|
|
|
List<YzActOrder> getXuQueFeiXiangXiXinXi(@Param("list") List<String> list,
|
|
|
@Param("inpatientNoList") List<YzActOrder> inpatientNoList,
|
|
|
@Param("startTime") String startTime,
|
|
|
- @Param("endTime") String endTime,
|
|
|
- @Param("liShi") String liShi);
|
|
|
+ @Param("endTime") String endTime);
|
|
|
+
|
|
|
+
|
|
|
+ @Select("<script>" +
|
|
|
+ "select a.charge_status,e.name docotr_name,a.act_order_no,c.name charge_name,a.charge_code,a.charge_fee, " +
|
|
|
+ " a.order_count,occ_time,rtrim(a.inpatient_no) inpatient_no,op_id,a.op_date, " +
|
|
|
+ " a.admiss_times, " +
|
|
|
+ " op_id_name = (select rtrim(name) name from a_employee_mi where a_employee_mi.code = a.op_id)," +
|
|
|
+ " name = (select rtrim(name) from zy_patient where zy_patient.inpatient_no = a.inpatient_no " +
|
|
|
+ "and zy_patient.admiss_times = a.admiss_times), " +
|
|
|
+ " a.op_date " +
|
|
|
+ "from yz_zy_patient_fee a left join zd_charge_item c on (a.charge_code=c.code) " +
|
|
|
+ " left join yz_act_order d on (a.inpatient_no=d.inpatient_no and a.admiss_times=d.admiss_times and a.act_order_no=d.act_order_no ) " +
|
|
|
+ " left join a_employee_mi e on (d.physician=e.code) " +
|
|
|
+ "where occ_time >= #{startTime} and occ_time <= #{endTime} " +
|
|
|
+ "and a.charge_status <> '3' " +
|
|
|
+ "<if test=\"inpatientNo != null and inpatientNo != '' \">" +
|
|
|
+ "and a.inpatient_no = #{inpatientNo} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"execUnitList.size > 0\">" +
|
|
|
+ "and a.exec_unit in " +
|
|
|
+ "<foreach collection='execUnitList' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
+ " #{item} " +
|
|
|
+ "</foreach>" +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"wardCode != null and wardCode != '' \">" +
|
|
|
+ "and a.ward_code = #{wardCode} " +
|
|
|
+ "</if>" +
|
|
|
+ "<if test=\"code != null and code != '' \">" +
|
|
|
+ "and a.op_id = #{code}" +
|
|
|
+ "</if>" +
|
|
|
+ "order by a.inpatient_no" +
|
|
|
+ "</script>")
|
|
|
+ List<YzActOrder> huoQuLiShiXinXi(@Param("startTime") String startTime,
|
|
|
+ @Param("endTime") String endTime,
|
|
|
+ @Param("inpatientNo") String inpatientNo,
|
|
|
+ @Param("execUnitList") List<String> execUnitList,
|
|
|
+ @Param("wardCode") String wardCode,
|
|
|
+ @Param("code") String code);
|
|
|
|
|
|
|
|
|
@Update("<script>" +
|