Ecology-Dev-chaofa/ShangHaiShuZhi/interface/shsz/checkRzqrData.jsp

30 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ 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" %>
<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_rzgljmb where ygzt in ('0','1','2') and sfzh=?",sfzh);
while(rs.next()){
flag = "1";
String xmid = Util.null2String(rs.getString("ygrlzy"));
String xmname = new ResourceComInfo().getLastname(xmid);
String subcomid = new ResourceComInfo().getSubCompanyID(xmid);
String subcomname = new SubCompanyComInfo().getSubCompanyname(subcomid);
//姓名(身份证号),已在“所属分部”(所属分部要加黑)存在在职记录
mess = xmname+""+sfzh+"),已在 《 "+subcomname+" 》 存在在职记录!";
}
json.put("flag",flag);
json.put("mess",mess);
out.print(JSONObject.toJSONString(json));
%>