|
@@ -126,4 +126,22 @@ public interface IllegalChargesAnalysisDao {
|
|
|
" and dis_diag_no = 1" +
|
|
|
"</script>")
|
|
|
List<IllegalChargeData> queryZhenDuan(@Param("inpatientNoList") List<IllegalChargeData> inpatientNoList);
|
|
|
+
|
|
|
+
|
|
|
+ @Select("select inpatient_no, " +
|
|
|
+ " rtrim(name) name, " +
|
|
|
+ " dept_name = (select rtrim(name) name from zd_unit_code where code = small_dept), " +
|
|
|
+ " admiss_date, " +
|
|
|
+ " dis_date, " +
|
|
|
+ " differ_date = DATEDIFF(day, admiss_date, dis_date) " +
|
|
|
+ "from zy_inactpatient " +
|
|
|
+ "where DATEDIFF(day, admiss_date, dis_date) <= #{tianShu} " +
|
|
|
+ " and admiss_date >= #{startTime} " +
|
|
|
+ " and admiss_date < #{endTime} " +
|
|
|
+ " and inpatient_no not like 'S%' " +
|
|
|
+ " order by differ_date")
|
|
|
+ List<IllegalChargeData> zhuYuanTianShu(@Param("startTime") String startTime,
|
|
|
+ @Param("endTime") String endTime,
|
|
|
+ @Param("tianShu") Integer tianShu);
|
|
|
}
|
|
|
+
|