Browse Source

费用按执行科室抽取

lighter 2 years ago
parent
commit
415d88b785

+ 1 - 1
src/main/java/thyyxxk/webserver/dao/his/api/forpowersi/drgdip/DrgDipDao.java

@@ -203,7 +203,7 @@ public interface DrgDipDao {
             "prescrDept=(select rtrim(d.name) from zd_unit_code d where d.code=a.dept_code), " +
             "rtrim(a.exec_unit) as execDeptId, " +
             "execDept=(select rtrim(d.name) from zd_unit_code d where d.code=a.exec_unit), " +
-            "visitDeptId=isnull((select rtrim(d.small_dept) from zy_actpatient d where d.inpatient_no=a.inpatient_no), " +
+            "visitDeptId=rtrim(a.exec_unit), " +
             "(select rtrim(d.small_dept) from zy_inactpatient d where d.inpatient_no=a.inpatient_no and d.admiss_times=a.admiss_times)), " +
             "cast(cast(a.order_no as decimal) as varchar) as mdclAdviceId, " +
             "hospSend=case when trans_flag_yb=1 then 'Y' else 'N' end, " +