|
@@ -25,7 +25,7 @@ public interface ChargeListDao {
|
|
|
@Select("select rtrim(inpatient_no) as patNo,admiss_times as times,rtrim(name) as name, " +
|
|
|
"rtrim(a.bed_no) as bedNo,datediff(day,admiss_date,isnull(dis_date,getdate())) as days, " +
|
|
|
"gender=(case when sex='1' then '男' when sex='2' then '女' else '未知' end), " +
|
|
|
- "rtrim(admiss_dept) as dept,admiss_date as admdate,med_type as medtype, " +
|
|
|
+ "rtrim(zk_ward) as dept,admiss_date as admdate,med_type as medtype, " +
|
|
|
"admiss_date as begndate,dis_date as enddate, " +
|
|
|
"balance=(select ((select isnull(sum(t.depo_amount),0) from zy_deposit_file t " +
|
|
|
"where t.inpatient_no=a.inpatient_no and t.admiss_times=a.admiss_times and t.status in (1,2)) + " +
|