|
|
@@ -58,8 +58,9 @@ public interface SiMzDao {
|
|
|
"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)), " +
|
|
|
- "input_staff as bilgDrCodg, " +
|
|
|
- "input_man as bilgDrName " +
|
|
|
+ "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 " +
|
|
|
"from t_mt_receipt where patient_id=#{patNo} and times=#{times} and yb_trans_flag=0 ")
|
|
|
List<FeeDetail> selectOutpatientFees(@Param("patNo") String patNo, @Param("times") int times);
|
|
|
|
|
|
@@ -88,7 +89,7 @@ public interface SiMzDao {
|
|
|
"rtrim(icd_code) as diagCode, " +
|
|
|
"rtrim(icd_text) as diagName, " +
|
|
|
"rtrim(visit_dept_code) as diagDept, " +
|
|
|
- "rtrim(doctor_code) as diseDorNo, " +
|
|
|
+ "diseDorNo=(select rtrim(yb_code) from a_employee_mi where code=doctor_code), " +
|
|
|
"diseDorName=(select rtrim(name) from a_employee_mi where code=doctor_code), " +
|
|
|
"visit_date as diagTime, " +
|
|
|
"valiFlag='1' " +
|