|
@@ -40,8 +40,9 @@ public interface SiMzDao {
|
|
|
"rtrim(b.doctor_code) as atddrNo, " +
|
|
|
"drName=(select rtrim(name) from a_employee_mi where code=b.doctor_code), " +
|
|
|
"rtrim(b.visit_dept_code) as deptCode, " +
|
|
|
- "deptName=(select rtrim(name) from zd_unit_code where code=b.visit_dept_code), " +
|
|
|
- "caty=(select si_caty from zd_unit_code where code=b.visit_dept_code) " +
|
|
|
+ "caty=(select si_caty from zd_unit_code where code=b.visit_dept_code), " +
|
|
|
+ "deptName=(select z.name from t_yb_dept z where z.code=" +
|
|
|
+ "(select t.si_caty from zd_unit_code t where t.code=b.visit_dept_code)) " +
|
|
|
"from t_si_pat_info a, mz_visit_table b where a.pat_no=#{patNo} and a.times=#{times} " +
|
|
|
"and a.pat_no=b.patient_id and a.times=b.times")
|
|
|
Regstrtn selectRegstrtn(@Param("patNo") String patNo, @Param("times") int times);
|
|
@@ -68,8 +69,11 @@ public interface SiMzDao {
|
|
|
"his_item_code as medinsListCodg, " +
|
|
|
"charge_fee as detItemFeeSumamt, " +
|
|
|
"quantity as cnt, price as pric, " +
|
|
|
- "bilgDeptCodg=(select rtrim(dept_code) from a_employee_mi where code=input_staff) , " +
|
|
|
- "bilgDeptName=(select rtrim(name) from zd_unit_code where code=(select rtrim(dept_code) from a_employee_mi where code=input_staff)), " +
|
|
|
+ "bilgDeptCodg=(select t.si_caty from zd_unit_code t where t.code=" +
|
|
|
+ "(select rtrim(m.dept_code) from a_employee_mi m where m.code=input_staff)), " +
|
|
|
+ "bilgDeptName=(select z.name from t_yb_dept z where z.code=" +
|
|
|
+ "(select t.si_caty from zd_unit_code t where t.code=" +
|
|
|
+ "(select rtrim(m.dept_code) from a_employee_mi m where m.code=input_staff))), " +
|
|
|
"bilgDrCodg=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
|
|
|
"ordersDrCode=(select rtrim(yb_code) from a_employee_mi where code=input_staff), " +
|
|
|
"input_man as bilgDrName,input_man as ordersDrName " +
|