Browse Source

病案首页患者列表包含small_dept,ward,zk_ward,zk_dept

lighter 2 years ago
parent
commit
9707560a62

+ 4 - 10
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/CaseFrontSheetDao.java

@@ -19,16 +19,10 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
     @Select("select count(1) from zy_actpatient where inpatient_no=#{bah} and admiss_times=#{times}")
     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), " +
-            "admiss_date " +
-            "from zy_actpatient with(nolock) where (small_dept=#{ward} or ward=#{ward}) and " +
-            "charindex('$',inpatient_no)=0 " +
+    @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), " +
+            "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);