|
@@ -10,21 +10,21 @@ import java.util.List;
|
|
|
|
|
|
@Mapper
|
|
|
public interface SheetSearchDao {
|
|
|
- @Select("select top 10 surgical_operation_code as code, operation_operation_name as name from " +
|
|
|
+ @Select("select top 10 rtrim(code) as code, rtrim(name) as name from " +
|
|
|
"(SELECT ROW_NUMBER() OVER(ORDER BY code) AS 'Number', * " +
|
|
|
- "from t_si_dl_oprtn with(nolock) where ${method} like #{content}) a " +
|
|
|
+ "from zd_icd9_cm3 with(nolock) where ${method} like #{content}) a " +
|
|
|
"where a.[Number]>10*(#{page}-1)")
|
|
|
List<PureCodeName> searchSurgery(@Param("method") String method, @Param("content") String content, @Param("page") int page);
|
|
|
|
|
|
@Select("select top 10 rtrim(code) as code, rtrim(name) as name from " +
|
|
|
"(SELECT ROW_NUMBER() OVER(ORDER BY code) AS 'Number', * " +
|
|
|
- "from zd_icd_code with(nolock) where ${method} like #{content} ) a " +
|
|
|
+ "from zd_icd_code_new with(nolock) where ${method} like #{content} ) a " +
|
|
|
"where a.[Number]>10*(#{page}-1) order by weight desc")
|
|
|
List<PureCodeName> searchClinicdiag(@Param("method") String method, @Param("content") String content, @Param("page") int page);
|
|
|
|
|
|
- @Select("select top 10 rtrim(CODE) code, rtrim(NAME) name from " +
|
|
|
+ @Select("select top 10 rtrim(code) code, rtrim(name) name from " +
|
|
|
"(SELECT ROW_NUMBER() OVER(ORDER BY CODE) AS 'Number', * " +
|
|
|
- "from zd_pathologic_diag_code with(nolock) where ${method} like #{content}) a " +
|
|
|
+ "from zd_icd_m_code with(nolock) where ${method} like #{content}) a " +
|
|
|
"where a.[Number]>10*(#{page})")
|
|
|
List<PureCodeName> searchPathologicDiag(@Param("method") String method, @Param("content") String content, @Param("page") int page);
|
|
|
|
|
@@ -36,7 +36,7 @@ public interface SheetSearchDao {
|
|
|
|
|
|
@Select("select top 10 rtrim(code) code, rtrim(name) name from " +
|
|
|
"(SELECT ROW_NUMBER() OVER(ORDER BY code) AS 'Number', * " +
|
|
|
- "from zd_icd_code with(nolock) where PATINDEX('%[V-Y]%',code)=1 and ${method} like #{content}) a " +
|
|
|
+ "from zd_icd_code_new with(nolock) where PATINDEX('%[V-Y]%',code)=1 and ${method} like #{content}) a " +
|
|
|
"where a.[Number]>10*(#{page}) order by weight desc")
|
|
|
List<PureCodeName> searchHurtReason(@Param("method") String method, @Param("content") String content, @Param("page") int page);
|
|
|
|
|
@@ -46,9 +46,6 @@ public interface SheetSearchDao {
|
|
|
"where a.[Number]>10*(#{page})")
|
|
|
List<PureCodeName> searchEmployee(@Param("method") String method, @Param("content") String content, @Param("page") int page);
|
|
|
|
|
|
- @Select("select rtrim(code) code, rtrim(name) name from zd_cm3_new with(nolock)")
|
|
|
- List<PureCodeName> getAllItem();
|
|
|
-
|
|
|
@Select("select rtrim(dis_diag) from zy_dis_diag_yb where inpatient_no=#{bah} and admiss_times=#{times} and dis_diag_no=1")
|
|
|
String selectMainMedinsDiag(@Param("bah") String bah, @Param("times") int times);
|
|
|
|
|
@@ -87,7 +84,7 @@ public interface SheetSearchDao {
|
|
|
"inpatient_no=#{patNo} and admiss_times=#{times} and dis_diag_no=1")
|
|
|
PureCodeName selectMainDisDiag(@Param("patNo") String patNo, @Param("times") String times);
|
|
|
|
|
|
- @Select("select diagnosis_code as code, diagnosis_name as name " +
|
|
|
- "from t_si_dl_dss_dns where diagnosis_code like '${code}%' ")
|
|
|
+ @Select("select rtrim(yb_code) as code, rtrim(yb_name) as name " +
|
|
|
+ "from zd_icd_code_new where yb_code like '${code}%' ")
|
|
|
List<PureCodeName> selectMedinsDiags(@Param("code") String code);
|
|
|
}
|