|
@@ -112,7 +112,18 @@ public interface PublicDao {
|
|
|
* @param code 人员代码
|
|
|
* @return 返回人员
|
|
|
*/
|
|
|
- @Select("<script>" + "select distinct rtrim(code) code,rtrim(name) name," + " dept_name = (select rtrim(name) from zd_unit_code where zd_unit_code.code = dept_code)," + " emp_tit_name = (select rtrim(name) from zd_emp_title where zd_emp_title.code = emp_tit_code)," + " rtrim(yb_code) as yb_code " + "from a_employee_mi where " + "(code like #{code} or name like #{code} or code_rs like #{code} or py_code like #{code}) " + "and isnull(del_flag,0) = 0 " + "<if test=\"deptCode != null and deptCode != '' \">" + "and dept_code = #{deptCode} " + "</if>" + "</script>")
|
|
|
+ @Select("<script>" +
|
|
|
+ "select distinct rtrim(code) as code,rtrim(name) as name,py_code, d_code as w_code," +
|
|
|
+ " dept_name = (select rtrim(name) from zd_unit_code where zd_unit_code.code = dept_code)," +
|
|
|
+ " emp_tit_name = (select rtrim(name) from zd_emp_title where zd_emp_title.code = emp_tit_code)," +
|
|
|
+ " rtrim(yb_code) as yb_code " +
|
|
|
+ "from a_employee_mi where " +
|
|
|
+ "(code like #{code} or name like #{code} or code_rs like #{code} or py_code like #{code}) " +
|
|
|
+ "and isnull(del_flag,0) = 0 " +
|
|
|
+ "<if test=\"deptCode != null and deptCode != '' \">" +
|
|
|
+ "and dept_code = #{deptCode} " +
|
|
|
+ "</if>" +
|
|
|
+ "</script>")
|
|
|
List<GetDropdownBox> getRenYuan(String code, String deptCode);
|
|
|
|
|
|
/**
|