|
|
|
@ -25,6 +25,7 @@ import org.apache.commons.collections.CollectionUtils;
|
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
import weaver.conn.RecordSet;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
import weaver.hrm.company.SubCompanyComInfo;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
@ -77,13 +78,14 @@ public class JobBrowserService extends BrowserService {
|
|
|
|
|
Map<String, Object> apidatas = new HashMap<>();
|
|
|
|
|
String q = Util.null2String(httpServletRequest.getParameter("q"));
|
|
|
|
|
List<String> sqlParams = new ArrayList<>();
|
|
|
|
|
SubCompanyComInfo subInfo = new SubCompanyComInfo();
|
|
|
|
|
String keyword = "";
|
|
|
|
|
if (q.length() > 0) {
|
|
|
|
|
keyword = "%" + q + "%";
|
|
|
|
|
}
|
|
|
|
|
RecordSet rs = new RecordSet();
|
|
|
|
|
String sqlwhere = " where t.delete_type = 0 ";
|
|
|
|
|
String backfields = "t.id, t.job_no, h.jobtitlename as name ";
|
|
|
|
|
String backfields = "t.id,t.ec_company, t.job_no, h.jobtitlename as name ";
|
|
|
|
|
String fromSql = "FROM jcl_org_job t left join hrmjobtitles h on t.ec_jobTitle = h.id ";
|
|
|
|
|
String orderby = " order by t.id ";
|
|
|
|
|
sqlwhere += " ";
|
|
|
|
@ -104,7 +106,8 @@ public class JobBrowserService extends BrowserService {
|
|
|
|
|
Map<String, String> item = new HashMap<>(3);
|
|
|
|
|
item.put("id", Util.null2String(rs.getString("id")));
|
|
|
|
|
String name = Util.null2String(rs.getString("name"));
|
|
|
|
|
item.put("name", name);
|
|
|
|
|
String subCompanyname = subInfo.getSubCompanyname(Util.null2String(rs.getString("ec_company")));
|
|
|
|
|
item.put("name", name+"("+subCompanyname+")");
|
|
|
|
|
item.put("title", name);
|
|
|
|
|
datas.add(item);
|
|
|
|
|
}
|
|
|
|
|