|
|
@@ -5,9 +5,9 @@ import org.apache.ibatis.annotations.Mapper;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
|
-import thyyxxk.webserver.entity.casefrontsheet.CaseFrontsheetDisdiag;
|
|
|
import thyyxxk.webserver.entity.casefrontsheet.CaseFrontsheetSurgery;
|
|
|
import thyyxxk.webserver.entity.casefrontsheet.request.DismissedSheetInquiry;
|
|
|
+import thyyxxk.webserver.entity.casefrontsheet.request.SheetOverview;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -32,7 +32,7 @@ public interface BasSelectOverviewDao extends BaseMapper<CaseFrontsheetSurgery>
|
|
|
"a.dis_date>=#{start} and " +
|
|
|
"a.dis_date<=#{end} and " +
|
|
|
"isnull(a.file_status, 0)!=1 order by a.zk_ward,b.zyys")
|
|
|
- List<CaseFrontsheetDisdiag.SheetOverview> selectPatientsForBasByBah(DismissedSheetInquiry param);
|
|
|
+ List<SheetOverview> selectPatientsForBasByBah(DismissedSheetInquiry param);
|
|
|
|
|
|
@Select("select count(1) from zy_actpatient where inpatient_no=#{bah} ")
|
|
|
int selectInHospCount(String bah);
|
|
|
@@ -44,7 +44,7 @@ public interface BasSelectOverviewDao extends BaseMapper<CaseFrontsheetSurgery>
|
|
|
"dismiss_date as disDate from t_case_frontsheet_main with(nolock) " +
|
|
|
"where bah=#{bah} and file_status=#{fileStatus} and dismiss_date>=#{start} and " +
|
|
|
"dismiss_date<=#{end} order by admiss_dept,admiss_doctor")
|
|
|
- List<CaseFrontsheetDisdiag.SheetOverview> selectPatientsFromSignedBase(DismissedSheetInquiry param);
|
|
|
+ List<SheetOverview> selectPatientsFromSignedBase(DismissedSheetInquiry param);
|
|
|
|
|
|
@Select("select " +
|
|
|
"fileStatus=0, " +
|
|
|
@@ -68,7 +68,7 @@ public interface BasSelectOverviewDao extends BaseMapper<CaseFrontsheetSurgery>
|
|
|
"a.zk_ward = #{ward} and " +
|
|
|
"isnull(a.file_status, 0)!=1 and " +
|
|
|
"charindex('$',a.inpatient_no)=0 order by a.zk_ward,b.zyys")
|
|
|
- List<CaseFrontsheetDisdiag.SheetOverview> selectPatientsForBasByWard(DismissedSheetInquiry param);
|
|
|
+ List<SheetOverview> selectPatientsForBasByWard(DismissedSheetInquiry param);
|
|
|
|
|
|
@Select("select sign_date,file_status,bah,admiss_times as times, " +
|
|
|
"name,sex,admiss_date,dismiss_dept as deptName,admiss_doctor_name as doctorName, " +
|
|
|
@@ -76,7 +76,7 @@ public interface BasSelectOverviewDao extends BaseMapper<CaseFrontsheetSurgery>
|
|
|
"dismiss_date as disDate from t_case_frontsheet_main with(nolock) " +
|
|
|
"where dismiss_date>=#{start} and dismiss_date<=#{end} and file_status=#{fileStatus} " +
|
|
|
"and dismiss_dept_code=#{ward} order by dismiss_dept, admiss_doctor")
|
|
|
- List<CaseFrontsheetDisdiag.SheetOverview> selectPatientsForBasByWard2(DismissedSheetInquiry param);
|
|
|
+ List<SheetOverview> selectPatientsForBasByWard2(DismissedSheetInquiry param);
|
|
|
|
|
|
@Select("select " +
|
|
|
"fileStatus=0, " +
|
|
|
@@ -98,7 +98,7 @@ public interface BasSelectOverviewDao extends BaseMapper<CaseFrontsheetSurgery>
|
|
|
"a.dis_date<=#{end} and " +
|
|
|
"isnull(a.file_status, 0)!=1 and " +
|
|
|
"charindex('$',a.inpatient_no)=0 order by a.zk_ward,b.zyys")
|
|
|
- List<CaseFrontsheetDisdiag.SheetOverview> selectPatientsForBasByFileStatus(DismissedSheetInquiry param);
|
|
|
+ List<SheetOverview> selectPatientsForBasByFileStatus(DismissedSheetInquiry param);
|
|
|
|
|
|
@Select("select sign_date,file_status,bah,admiss_times as times," +
|
|
|
"name,sex,admiss_date,dismiss_dept as deptName,admiss_doctor_name as doctorName," +
|
|
|
@@ -106,7 +106,7 @@ public interface BasSelectOverviewDao extends BaseMapper<CaseFrontsheetSurgery>
|
|
|
"dismiss_date as disDate from t_case_frontsheet_main with(nolock) " +
|
|
|
"where dismiss_date>=#{start} and dismiss_date<=#{end} and " +
|
|
|
"file_status=#{fileStatus} order by trans_dept,admiss_doctor")
|
|
|
- List<CaseFrontsheetDisdiag.SheetOverview> selectPatientsForBasByFileStatus2(DismissedSheetInquiry param);
|
|
|
+ List<SheetOverview> selectPatientsForBasByFileStatus2(DismissedSheetInquiry param);
|
|
|
|
|
|
@Update("update zy_actpatient set file_status=#{status} where inpatient_no=#{bah} and admiss_times=#{times};" +
|
|
|
"update zy_inactpatient set file_status=#{status} where inpatient_no=#{bah} and admiss_times=#{times};")
|