Browse Source

使用医生的医保编码

lighter 3 years ago
parent
commit
84e8a1b869
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/main/java/thyyxxk/simzfeeoprnsystm/dao/SiMzDao.java

+ 4 - 3
src/main/java/thyyxxk/simzfeeoprnsystm/dao/SiMzDao.java

@@ -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' " +