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