|
@@ -19,18 +19,17 @@ public interface ManageDoctorInfoDao {
|
|
@Select("select rtrim(code) code, rtrim(name) name, rtrim(py_code) pyCode from zd_unit_code where mz_flag=1")
|
|
@Select("select rtrim(code) code, rtrim(name) name, rtrim(py_code) pyCode from zd_unit_code where mz_flag=1")
|
|
List<CodeName> getAllMzDept();
|
|
List<CodeName> getAllMzDept();
|
|
|
|
|
|
- @Select("select rtrim(b.name) titleName, " +
|
|
|
|
- "rtrim(b.code) titleCode, " +
|
|
|
|
|
|
+ @Select("select titleName=(select rtrim(name) from zd_emp_title where code=a.emp_tit_code), " +
|
|
|
|
+ "rtrim(a.emp_tit_code) titleCode, " +
|
|
"rtrim(a.name) name, " +
|
|
"rtrim(a.name) name, " +
|
|
"isnull(a.sex_code, 9) sex, " +
|
|
"isnull(a.sex_code, 9) sex, " +
|
|
"rtrim(a.code) code, " +
|
|
"rtrim(a.code) code, " +
|
|
"isnull(a.wx_homepage_flag, 0) wxHomepageFlag, " +
|
|
"isnull(a.wx_homepage_flag, 0) wxHomepageFlag, " +
|
|
"rtrim(a.dept_code) deptCode, " +
|
|
"rtrim(a.dept_code) deptCode, " +
|
|
"deptName=(select rtrim(name) from zd_unit_code where code=a.dept_code) " +
|
|
"deptName=(select rtrim(name) from zd_unit_code where code=a.dept_code) " +
|
|
- "from a_employee_mi a,zd_emp_title b " +
|
|
|
|
|
|
+ "from a_employee_mi a " +
|
|
"where a.dept_code like #{deptCode} " +
|
|
"where a.dept_code like #{deptCode} " +
|
|
"and a.name like #{doctorName} " +
|
|
"and a.name like #{doctorName} " +
|
|
- "and a.emp_tit_code=b.code " +
|
|
|
|
"and a.code not in ('00000', '00026') " +
|
|
"and a.code not in ('00000', '00026') " +
|
|
"and isnull(a.del_flag,0)<>1 " +
|
|
"and isnull(a.del_flag,0)<>1 " +
|
|
"and a.show_manage_flag=1")
|
|
"and a.show_manage_flag=1")
|