|
@@ -724,7 +724,8 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
List<TempDismissCount> selectDismissCount(@Param("start") String start,
|
|
|
@Param("end") String end);
|
|
|
|
|
|
- @Select("select rtrim(a.inpatient_no) as patNo,a.admiss_times as times, " +
|
|
|
+ @Select("<script>" +
|
|
|
+ "select rtrim(a.inpatient_no) as patNo,a.admiss_times as times, " +
|
|
|
"rtrim(a.name) as name,gender=(case when a.sex='1' then '男' else '女' end), " +
|
|
|
"age=datediff(year,b.birth_date,getdate()),a.admiss_date,a.dis_date, " +
|
|
|
"inHospDays=datediff(day, a.admiss_date, a.dis_date),a.total_charge, " +
|
|
@@ -738,12 +739,17 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"from zy_inactpatient a, a_patient_mi b, batj_ba2 c where " +
|
|
|
"a.inpatient_no not like 'S%' and " +
|
|
|
"a.inpatient_no not like 'JT%' and " +
|
|
|
+ "<if test=\" dept!=null and dept!='' \">" +
|
|
|
+ "a.zk_ward=#{dept} and " +
|
|
|
+ "</if>" +
|
|
|
"charindex('$',a.inpatient_no)=0 and " +
|
|
|
- "a.dis_date>=#{begntime} and a.dis_date<=#{endtime} and " +
|
|
|
+ "a.dis_date>=#{begntime} and a.dis_date<=#{endtime} and " +
|
|
|
"a.inpatient_no=b.inpatient_no and a.inpatient_no=c.zyh and a.admiss_times=c.zycs " +
|
|
|
- "order by a.zk_ward")
|
|
|
+ "order by a.zk_ward " +
|
|
|
+ "</script>")
|
|
|
List<DismissCount> selectDismissDetailCount(@Param("begntime") String begntime,
|
|
|
- @Param("endtime") String endtime);
|
|
|
+ @Param("endtime") String endtime,
|
|
|
+ @Param("dept") String dept);
|
|
|
|
|
|
@Update("update zd_icd_code set weight=(weight+1) where code=#{code}")
|
|
|
void increaseDiagWeight(@Param("code") String code);
|