308 lines
11 KiB
Plaintext
308 lines
11 KiB
Plaintext
<%@ page contentType="text/html; charset=UTF-8" %>
|
|
<%@ page import="weaver.general.Util" %>
|
|
<%@ page import="com.alibaba.fastjson.JSONObject" %>
|
|
<%@ page import="com.alibaba.fastjson.JSONArray" %>
|
|
<%@ page import="weaver.conn.RecordSet" %>
|
|
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />
|
|
<jsp:useBean id="rs1" class="weaver.conn.RecordSet" scope="page" />
|
|
<jsp:useBean id="rs2" class="weaver.conn.RecordSet" scope="page" />
|
|
<jsp:useBean id="rs3" class="weaver.conn.RecordSet" scope="page" />
|
|
<%
|
|
JSONObject jsonObject = new JSONObject();
|
|
boolean flag = false;
|
|
String mobile = Util.null2String(request.getParameter("mobile"));
|
|
rs.executeQuery("select * from uf_ybygzqbssjtz where yddh=?",mobile);
|
|
while(rs.next()) {
|
|
//民族
|
|
String mz = Util.null2String(rs.getString("mz"));
|
|
jsonObject.put("mz",mz);
|
|
//籍贯
|
|
String jg = Util.null2String(rs.getString("jg"));
|
|
jsonObject.put("jg",jg);
|
|
//个人邮箱
|
|
String gryx = Util.null2String(rs.getString("gryx"));
|
|
jsonObject.put("gryx",gryx);
|
|
//户口类别
|
|
String hklb = Util.null2String(rs.getString("hklb"));
|
|
jsonObject.put("hklb",hklb);
|
|
//现通讯地址
|
|
String xtxdz = Util.null2String(rs.getString("xtxdz"));
|
|
jsonObject.put("xtxdz",xtxdz);
|
|
//婚姻状况
|
|
String hyzk = Util.null2String(rs.getString("hyzk"));
|
|
jsonObject.put("hyzk",hyzk);
|
|
//学校
|
|
String xx = Util.null2String(rs.getString("xx"));
|
|
jsonObject.put("xx",xx);
|
|
//姓名
|
|
String xm = Util.null2String(rs.getString("xm"));
|
|
jsonObject.put("xm",xm);
|
|
//政治面貌
|
|
String zzmm = Util.null2String(rs.getString("zzmm"));
|
|
String zzmmname = getSelectNameById("9556",zzmm);
|
|
String newzzmm = getSelectidByName("8342",zzmmname);
|
|
jsonObject.put("zzmm",newzzmm);
|
|
//年龄
|
|
String nl = Util.null2String(rs.getString("nl"));
|
|
jsonObject.put("nl",nl);
|
|
//学历
|
|
String xl = Util.null2String(rs.getString("xl"));
|
|
jsonObject.put("xl",xl);
|
|
//专业
|
|
String zy = Util.null2String(rs.getString("zy"));
|
|
jsonObject.put("zy",zy);
|
|
//性别
|
|
String xb = Util.null2String(rs.getString("xb"));
|
|
jsonObject.put("xb",xb);
|
|
//身份证号码
|
|
String sfzhm = Util.null2String(rs.getString("sfzhm"));
|
|
jsonObject.put("sfzhm",sfzhm);
|
|
}
|
|
|
|
//教育经历
|
|
JSONArray jyjl_array = new JSONArray();
|
|
rs1.executeQuery("select * from uf_jxjl where yddh=?",mobile);
|
|
while(rs1.next()) {
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
//入学时间
|
|
String rxsj = Util.null2String(rs1.getString("rxsj"));
|
|
if(rxsj != null && !"".equals(rxsj)) {
|
|
jsonObject1.put("rxsj", rxsj);
|
|
}
|
|
//毕业时间
|
|
String bysj = Util.null2String(rs1.getString("bysj"));
|
|
if(bysj != null && !"".equals(bysj)) {
|
|
jsonObject1.put("bysj", bysj);
|
|
}
|
|
//毕业院校
|
|
String byyx = Util.null2String(rs1.getString("byyx"));
|
|
if(byyx != null && !"".equals(byyx)) {
|
|
jsonObject1.put("byyx", byyx);
|
|
}
|
|
//学习专业
|
|
String xxzy = Util.null2String(rs1.getString("xxzy"));
|
|
if(xxzy != null && !"".equals(xxzy)) {
|
|
jsonObject1.put("xxzy", xxzy);
|
|
}
|
|
//院校类别
|
|
String yxlb = Util.null2String(rs1.getString("yxlb"));
|
|
if(yxlb != null && !"".equals(yxlb)) {
|
|
jsonObject1.put("yxlb", yxlb);
|
|
}
|
|
//所在学院
|
|
String szxy = Util.null2String(rs1.getString("szxy"));
|
|
if(szxy != null && !"".equals(szxy)){
|
|
jsonObject1.put("szxy",szxy);
|
|
}
|
|
//学制
|
|
String xz = Util.null2String(rs1.getString("xz"));
|
|
if(xz != null && !"".equals(xz)){
|
|
jsonObject1.put("xz",xz);
|
|
}
|
|
//学习形式
|
|
String xxxs = Util.null2String(rs1.getString("xxxs"));
|
|
if(xxxs != null && !"".equals(xxxs)){
|
|
jsonObject1.put("xxxs",xxxs);
|
|
}
|
|
//是否最高学历
|
|
String sfzgxl = Util.null2String(rs1.getString("sfzgxl"));
|
|
if(sfzgxl != null && !"".equals(sfzgxl)){
|
|
jsonObject1.put("sfzgxl",sfzgxl);
|
|
}
|
|
//学位
|
|
String xw = Util.null2String(rs1.getString("xw"));
|
|
if(xw != null && !"".equals(xw)){
|
|
jsonObject1.put("xw",xw);
|
|
}
|
|
//学位授予日期
|
|
String xwsyrq = Util.null2String(rs1.getString("xwsyrq"));
|
|
if(xwsyrq != null && !"".equals(xwsyrq)){
|
|
jsonObject1.put("xwsyrq",xwsyrq);
|
|
}
|
|
//学位专业名称
|
|
String xwzymc = Util.null2String(rs1.getString("xwzymc"));
|
|
if(xwzymc != null && !"".equals(xwzymc)){
|
|
jsonObject1.put("xwzymc",xwzymc);
|
|
}
|
|
//学位类别
|
|
String xwlb = Util.null2String(rs1.getString("xwlb"));
|
|
if(xwlb != null && !"".equals(xwlb)){
|
|
jsonObject1.put("xwlb",xwlb);
|
|
}
|
|
//是否最高学位
|
|
String sfzgxw = Util.null2String(rs1.getString("sfzgxw"));
|
|
if(sfzgxw != null && !"".equals(sfzgxw)){
|
|
jsonObject1.put("sfzgxw",sfzgxw);
|
|
}
|
|
//学历
|
|
String xl1 = Util.null2String(rs1.getString("xl1"));
|
|
if(xl1 != null && !"".equals(xl1)){
|
|
jsonObject1.put("xl1",xl1);
|
|
}
|
|
//身份证号开发用
|
|
String sfzhkfy = Util.null2String(rs1.getString("sfzhkfy"));
|
|
if(sfzhkfy != null && !"".equals(sfzhkfy)){
|
|
jsonObject1.put("sfzhkfy",sfzhkfy);
|
|
}
|
|
|
|
jyjl_array.add(jsonObject1);
|
|
}
|
|
jsonObject.put("jyjls",jyjl_array);
|
|
|
|
//家庭情况
|
|
JSONArray jtqk_array = new JSONArray();
|
|
rs2.executeQuery("select * from uf_jtqk where yddh=?",mobile);
|
|
while(rs2.next()) {
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
//关系
|
|
String gx = Util.null2String(rs2.getString("gx"));
|
|
if(gx != null && !"".equals(gx)) {
|
|
jsonObject1.put("gx", gx);
|
|
}
|
|
//家庭成员姓名
|
|
String jtcyxm = Util.null2String(rs2.getString("jtcyxm"));
|
|
if(jtcyxm != null && !"".equals(jtcyxm)) {
|
|
jsonObject1.put("jtcyxm", jtcyxm);
|
|
}
|
|
//工作单位
|
|
String gzdw = Util.null2String(rs2.getString("gzdw"));
|
|
if(gzdw != null && !"".equals(gzdw)) {
|
|
jsonObject1.put("gzdw", gzdw);
|
|
}
|
|
//政治面貌
|
|
String zzmm = Util.null2String(rs2.getString("zzmm"));
|
|
if(zzmm != null && !"".equals(zzmm)) {
|
|
String zzmmname = getSelectNameById("9556", zzmm);
|
|
String newzzmm = getSelectidByName("10661", zzmmname);
|
|
jsonObject1.put("zzmm", newzzmm);
|
|
}
|
|
//出生日期
|
|
String csrq = Util.null2String(rs2.getString("csrq"));
|
|
if(csrq != null && !"".equals(csrq)) {
|
|
jsonObject1.put("csrq", csrq);
|
|
}
|
|
//职务
|
|
String zw = Util.null2String(rs2.getString("zw"));
|
|
if(zw != null && !"".equals(zw)) {
|
|
jsonObject1.put("zw", zw);
|
|
}
|
|
//身份证号码
|
|
String sfzhm = Util.null2String(rs2.getString("sfzhm"));
|
|
if(sfzhm != null && !"".equals(sfzhm)) {
|
|
jsonObject1.put("sfzhm", sfzhm);
|
|
}
|
|
//身份证号开发用
|
|
String sfzhkfy = Util.null2String(rs2.getString("sfzhkfy"));
|
|
if(sfzhkfy != null && !"".equals(sfzhkfy)) {
|
|
jsonObject1.put("sfzhkfy", sfzhkfy);
|
|
}
|
|
|
|
jtqk_array.add(jsonObject1);
|
|
}
|
|
jsonObject.put("jtqks",jtqk_array);
|
|
|
|
//工作经历
|
|
JSONArray gzjl_array = new JSONArray();
|
|
rs3.executeQuery("select * from uf_gzjj where yddh=?",mobile);
|
|
while(rs3.next()) {
|
|
JSONObject jsonObject1 = new JSONObject();
|
|
//劳动关系所属单位
|
|
String ldgxszdw = Util.null2String(rs3.getString("ldgxszdw"));
|
|
if(ldgxszdw != null && !"".equals(ldgxszdw)) {
|
|
jsonObject1.put("ldgxszdw", ldgxszdw);
|
|
}
|
|
//履历单位
|
|
String lldw = Util.null2String(rs3.getString("lldw"));
|
|
if(lldw != null && !"".equals(lldw)) {
|
|
jsonObject1.put("lldw", lldw);
|
|
}
|
|
//起始时间
|
|
String qssj = Util.null2String(rs3.getString("qssj"));
|
|
if(qssj != null && !"".equals(qssj)) {
|
|
jsonObject1.put("qssj", qssj);
|
|
}
|
|
//终止时间
|
|
String zzsj = Util.null2String(rs3.getString("zzsj"));
|
|
if(zzsj != null && !"".equals(zzsj)) {
|
|
jsonObject1.put("zzsj", zzsj);
|
|
}
|
|
//工作履历
|
|
String gzll = Util.null2String(rs3.getString("gzll"));
|
|
if(gzll != null && !"".equals(gzll)) {
|
|
jsonObject1.put("gzll", gzll);
|
|
}
|
|
//所在部门
|
|
String szbm = Util.null2String(rs3.getString("szbm"));
|
|
if(szbm != null && !"".equals(szbm)) {
|
|
jsonObject1.put("szbm", szbm);
|
|
}
|
|
//任职岗位
|
|
String rzgw = Util.null2String(rs3.getString("rzgw"));
|
|
if(rzgw != null && !"".equals(rzgw)) {
|
|
jsonObject1.put("rzgw", rzgw);
|
|
}
|
|
//任职类型
|
|
String rzlx = Util.null2String(rs3.getString("rzlx"));
|
|
if(rzlx != null && !"".equals(rzlx)) {
|
|
jsonObject1.put("rzlx", rzlx);
|
|
}
|
|
//地点
|
|
String dd = Util.null2String(rs3.getString("dd"));
|
|
if(dd != null && !"".equals(dd)) {
|
|
jsonObject1.put("dd", dd);
|
|
}
|
|
//职务/职位等级
|
|
String zwzwdj = Util.null2String(rs3.getString("zwzwdj"));
|
|
if(zwzwdj != null && !"".equals(zwzwdj)) {
|
|
jsonObject1.put("zwzwdj", zwzwdj);
|
|
}
|
|
//身份证号开发用
|
|
String sfzhkfy = Util.null2String(rs3.getString("sfzhkfy"));
|
|
if(sfzhkfy != null && !"".equals(sfzhkfy)) {
|
|
jsonObject1.put("sfzhkfy", sfzhkfy);
|
|
}
|
|
|
|
jsonObject1.put("gzll","1");
|
|
|
|
gzjl_array.add(jsonObject1);
|
|
}
|
|
jsonObject.put("gzjls",gzjl_array);
|
|
|
|
jsonObject.put("flag",flag);
|
|
out.print(JSONObject.toJSONString(jsonObject));
|
|
%>
|
|
|
|
<%!
|
|
/**
|
|
* 根据政治面貌名称获取下拉框选项名称
|
|
* @param fieldid
|
|
* @param name
|
|
* @return
|
|
*/
|
|
public String getSelectNameById(String fieldid,String name) {
|
|
String jobtitleId = "";
|
|
RecordSet rs = new RecordSet();
|
|
rs.executeQuery("select selectname from workflow_selectitem where 1=1 and fieldid=? and (cancel is null or cancel=0) and selectvalue = ?", fieldid, name);
|
|
if (rs.next()) {
|
|
jobtitleId = rs.getString("selectname");
|
|
}
|
|
return jobtitleId;
|
|
}
|
|
|
|
/**
|
|
* 根据政治面貌名称获取下拉框id
|
|
* @param fieldid
|
|
* @param name
|
|
* @return
|
|
*/
|
|
public String getSelectidByName(String fieldid,String name) {
|
|
String jobtitleId = "";
|
|
RecordSet rs = new RecordSet();
|
|
rs.executeQuery("select selectvalue from workflow_selectitem where 1=1 and fieldid=? and (cancel is null or cancel=0) and selectname = ?", fieldid, name);
|
|
if (rs.next()) {
|
|
jobtitleId = rs.getString("selectvalue");
|
|
}
|
|
return jobtitleId;
|
|
}
|
|
|
|
%> |