|
@@ -12,7 +12,10 @@ import java.util.List;
|
|
|
@Mapper
|
|
|
public interface FrontSheetExportDao {
|
|
|
|
|
|
- @Select("select * from t_case_frontsheet_main where dismiss_date>=#{begin} and dismiss_date<=#{end}")
|
|
|
+ @Select("select *, " +
|
|
|
+ "clinicDiagCode=(select top 1 rtrim(code) from zd_icd_code_new where yb_code=clinic_diag_code), " +
|
|
|
+ "clinicDiagStr=(select top 1 rtrim(name) from zd_icd_code_new where yb_code=clinic_diag_code) " +
|
|
|
+ "from t_case_frontsheet_main where dismiss_date>=#{begin} and dismiss_date<=#{end}")
|
|
|
List<CaseFrontsheetMain> fetchSheets(@Param("begin") String begin, @Param("end") String end);
|
|
|
|
|
|
@Select("select no,code,name,admiss_status,dismiss_status from t_case_frontsheet_disdiag where bah=#{bah} and times=#{times}")
|