Explorar el Código

病案首页添加“只看我的病人”功能

lighter hace 1 año
padre
commit
ca3ea89f6b

+ 6 - 3
src/main/java/thyyxxk/webserver/dao/his/inpatient/casefrontsheet/CaseFrontSheetDao.java

@@ -22,14 +22,16 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
     int selectActCount(@Param("bah") String bah, @Param("times") int times);
 
     @Select("select bedNo=rtrim(bed_no),bah=rtrim(inpatient_no),times=rtrim(admiss_times),name=rtrim(name),sex," +
-            "file_status,doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=refer_physician), " +
+            "file_status,doctorCode=rtrim(refer_physician)," +
+            "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=refer_physician), " +
             "admiss_date from zy_actpatient with(nolock) where charindex('$',inpatient_no)=0 and " +
             "(small_dept=#{ward} or ward=#{ward} or zk_ward=#{ward} or zk_dept=#{ward}) " +
             "ORDER BY cast(bed_no AS int)")
     List<SheetOverview> getPatientOverview(@Param("ward") String ward);
 
     @Select("select bedNo=rtrim(bed_no),bah=rtrim(inpatient_no),times=rtrim(admiss_times),name=rtrim(name),sex," +
-            "file_status,doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=refer_physician) " +
+            "file_status,doctorCode=rtrim(refer_physician)," +
+            "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=refer_physician) " +
             "from zy_inactpatient with(nolock) where dis_date>=#{start} and dis_date<=#{end} and " +
             "(small_dept=#{ward} or ward=#{ward} or zk_ward=#{ward} or zk_dept=#{ward}) and " +
             "charindex('$',inpatient_no)=0 ORDER BY cast(bed_no AS int)")
@@ -497,7 +499,8 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "select distinct " +
             "a.bah,a.admiss_times as times, " +
             "a.name,a.sex,fileStatus=1, " +
-            "a.admiss_doctor_name as doctorName, " +
+            "a.admiss_doctor_name as doctorName," +
+            "a.admiss_doctor as doctorCode, " +
             "a.sign_date, " +
             "a.dismiss_date," +
             "a.admiss_dept, " +

+ 1 - 0
src/main/java/thyyxxk/webserver/entity/casefrontsheet/request/SheetOverview.java

@@ -19,6 +19,7 @@ public class SheetOverview {
     private String genderName;
     private Date admissDate;
     private String deptName;
+    private String doctorCode;
     private String doctorName;
     private Date disDate;
     private String zyDismissWay;