|
@@ -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);
|
|
|
|