32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
<%@ page contentType="text/html; charset=UTF-8" %>
|
|
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
|
<%@ page import="weaver.general.*" %>
|
|
<%@ page import="weaver.hrm.resource.ResourceComInfo" %>
|
|
<%@ page import="weaver.hrm.company.SubCompanyComInfo" %>
|
|
<%@ page import="weaver.hrm.company.DepartmentComInfo" %>
|
|
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
|
|
<%
|
|
JSONObject json = new JSONObject();
|
|
String flag = "0";
|
|
String mess = "";
|
|
String sfzh = Util.null2String(request.getParameter("sfzh"));
|
|
rs.executeQuery("select * from uf_hmdk where sfqy='0' and sfzh=?",sfzh);
|
|
while(rs.next()){
|
|
flag = "1";
|
|
String xmid = Util.null2String(rs.getString("xm"));
|
|
String xmname = new ResourceComInfo().getLastname(xmid);
|
|
String subcomid = new ResourceComInfo().getSubCompanyID(xmid);
|
|
String subcomname = new SubCompanyComInfo().getSubCompanyname(subcomid);
|
|
String deptid = new ResourceComInfo().getDepartmentID(xmid);
|
|
String deptname = new DepartmentComInfo().getDepartmentName(deptid);
|
|
String sjhm = Util.null2String(rs.getString("sjhm"));
|
|
|
|
mess = subcomname+"、"+deptname+"、"+xmname+"、"+sjhm+",员工已存在黑名单中不允许入职!";
|
|
}
|
|
json.put("flag",flag);
|
|
json.put("mess",mess);
|
|
out.print(JSONObject.toJSONString(json));
|
|
%>
|
|
|
|
|