|
@@ -156,7 +156,7 @@ public interface DrgDipDao {
|
|
|
"birthday=convert(varchar(10), b.birth_date, 21),rtrim(b.social_no) as idCard, " +
|
|
|
"status='11',rtrim(a.small_dept) as visitDeptId, " +
|
|
|
"hsptzdTime=convert(varchar(19), a.admiss_date, 21), " +
|
|
|
- "rtrim(a.refer_physician) as tbDoctorId, " +
|
|
|
+ "rtrim(isnull(a.refer_physician,a.admiss_physician)) as tbDoctorId, " +
|
|
|
"rtrim(a.zk_ward) as hospDischDeptId, " +
|
|
|
"hospDischTime=convert(varchar(19),a.dis_date,21), " +
|
|
|
"insurAreaId=(select d.insuplc_admdvs from t_si_pat_info d where d.pat_no=#{patNo} and d.times=#{times} and d.ledger_sn=#{sn}), " +
|