|
@@ -32,18 +32,11 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"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) " +
|
|
|
- "from zy_inactpatient with(nolock) where " +
|
|
|
- "dis_date>=#{start} and dis_date<=#{end} and " +
|
|
|
- "(small_dept=#{ward} or ward=#{ward}) and " +
|
|
|
- "charindex('$',inpatient_no)=0 " +
|
|
|
- "ORDER BY cast(bed_no AS int)")
|
|
|
+ @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) " +
|
|
|
+ "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)")
|
|
|
List<SheetOverview> getOutPatients(GetOutSheet param);
|
|
|
|
|
|
@Select("select " +
|