|
@@ -60,4 +60,25 @@ public interface YbUtilDao {
|
|
|
" ) ")
|
|
|
List<Map<String, Object>> selectChemotherapyDigan(@Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
+ @Select("<script> " +
|
|
|
+ "select rtrim(name) as label, rtrim(code) as value from zd_unit_code with(nolock) where code not like '8%' and del_flag = 0 " +
|
|
|
+ "<if test=\"str != null and str != '' \"> " +
|
|
|
+ " and (name like '%${str}%' or code like '%${str}%' or py_code like ('%' + upper(#{str}) + '%') or d_code like ('%' + upper(#{str}) + '%') ) " +
|
|
|
+ "</if> " +
|
|
|
+ "order by code " +
|
|
|
+ "</script> ")
|
|
|
+ List<Map<String, Object>> selectAllSmallDept(@Param("str") String str);
|
|
|
+
|
|
|
+ @Select("<script> " +
|
|
|
+ "select rtrim(name) as label, rtrim(code) as value from a_employee_mi with(nolock) where 1 = 1 " +
|
|
|
+ "<if test=\"str != null and str != '' \"> " +
|
|
|
+ " and (name like '%${str}%' or code like '%${str}%' or py_code like ('%' + upper(#{str}) + '%') or d_code like ('%' + upper(#{str}) + '%') ) " +
|
|
|
+ "</if> " +
|
|
|
+ "<if test=\"dept != null and dept != '' \"> " +
|
|
|
+ "and dept_code = #{dept} " +
|
|
|
+ "</if> " +
|
|
|
+ "order by py_code " +
|
|
|
+ "</script> ")
|
|
|
+ List<Map<String, Object>> selectAllDoctor(@Param("str") String str, @Param("dept") String dept);
|
|
|
+
|
|
|
}
|