joyHR系统压测(第2期)
-- 环境:t8
-- 数据库:joyhr_new_yc
-- 租户数量:350
select count(1) from t_company;
-- 部门数量:8w
select count(1) from t_organ;
-- 岗位数量:32w
select count(1) from t_gangwei;
-- 员工数量:44w
select count(1) from wec_user;
压测对象:
1)组织架构树搜索(前端)
2)部门复制(单线程场景)
3)部门列表(单线程 场景)
4)部门搜索(单线程场景)
5)岗位列表(单线程场景)
6)岗位搜索(单线程场景)
7)人员搜索(单线程场景)
8)入职(新增,审批,详情,自定义查询)(单线程场景)
9)花名册(修改,详情,自定义查询)(单线程场景)
10)人员导入(单线程场景)
11)人员修改导入(单线程场景)
12)转正(新增,审批,详情,自定义查询)(并发场景)
13)调动(新增,审批,详情,自定义查询)(并发场景)
14)借调(新增,审批,详情,自定义查询)(并发场景)
15)离职(新增,审批,详情,自定义查询)(并发场景)
1、造数据
t8环境,注册20个新租户,给每个租户添加1000个组织,添加4000个岗位,添加7000个员工
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.yangzc.utils.Constants;
import com.yangzc.utils.DBUtil;
import com.yangzc.utils.DBUtilT8;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NoHttpResponseException;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.apache.log4j.Logger;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
*
* 同步老系统数据到t8环境
*
* @author yangzc
*
*/
public class SynJoyHRDataTest {
private Connection conn;
private Connection conn2;
private CloseableHttpClient client;
private static Logger logger= Logger.getLogger(SynJoyHRDataTest.class);
@DataProvider(parallel=false)
public Object[][] data(){
Object[][] arr = {
//{"1002", Constants.PHONE,Constants.PASSWD,4351,"90b2ad4cb9274c1b80c97eae193b99fa"},//新加坡
{"1000", Constants.PHONE,Constants.PASSWD,4352,"4f37cc9accc24b49927666fff9eddd47"},//广东
//{"1001",Constants.PHONE,Constants.PASSWD,4353,"2f3c1f4be06640c39e703a459b26771d"},//浙江
//{"999",Constants.PHONE,Constants.PASSWD,4354,"425a8b5ad5c24d81a956124928071020"},//北京
//{"998",Constants.PHONE,Constants.PASSWD,4355,"59611a66b64e4db3a5e1f18b4c1a2bf9"}//江苏
};
return arr;
}
@BeforeTest
public void begin() throws Exception{
conn = DBUtil.getConnection();
conn2 = DBUtilT8.getConnection();
client = HttpClients.custom()
.setDefaultRequestConfig(RequestConfig.custom()
.setCookieSpec(CookieSpecs.STANDARD).build())
//不使用这种方式,不方便看日志,使用下面自定义的retry
//.setRetryHandler(new DefaultHttpRequestRetryHandler(3,true))
.setRetryHandler((exception, executionCount, context) -> {
if (executionCount > 3) {
logger.warn("Maximum tries reached for client http pool ");
return false;
}
if (exception instanceof NoHttpResponseException //NoHttpResponseException 重试
|| exception instanceof ConnectTimeoutException //连接超时重试
// || exception instanceof SocketTimeoutException //响应超时不重试,避免造成业务数据不一致
) {
logger.warn("NoHttpResponseException on " + executionCount + " call");
return true;
}
return false;
})
.build();
}
@AfterTest
public void end() throws Exception{
client.close();
conn.close();
conn2.close();
}
@Test(dataProvider="data")
public void f(String corpId,String userName,String password,int branchId,String root) throws Exception{
String ssoSysToken = null;
String cookie = null;
String companyId = null;
boolean loginSuccess = false;
//登录
HttpPost login = new HttpPost(Constants.BASEURL+"/uac/account/login");
//构造发送的数据
HttpEntity send_data = new StringEntity("{\"corpId\":\""+corpId+"\",\"loginType\":1,\"passwordOrCode\":\""+password+"\",\"source\":1,\"userName\":\""+userName+"\"}","utf-8");
login.setEntity(send_data); //将send_data设置为请求的正文
login.setHeader("Content-Type", "application/json;charset=UTF-8");
try{
HttpResponse response = client.execute(login); //execute方法会返回接口发送回来的数据
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
JSONObject obj = (JSONObject) JSON.parse(str);
if(((String)obj.get("code")).equals("0")){
JSONObject data = (JSONObject)obj.get("data");
ssoSysToken = (String)data.get("token");
companyId = (String)data.get("companyId");
loginSuccess = true;
}
} catch (Exception e){
logger.info("登录出现异常");
e.printStackTrace();
//PreparedStatement ps4 = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = null where branch_id = " + branchId + " and id = " + organId);
//ps4.executeUpdate();
}
Thread.sleep(10000);
if(loginSuccess){
//同步组织
organAdd(ssoSysToken,cookie,companyId,branchId,root);
organUpdate(ssoSysToken,cookie,branchId);
//同步岗位
gangweiAdd(ssoSysToken,cookie,companyId,branchId);
gangweiUpdate(ssoSysToken,cookie,companyId,branchId);
//同步人员
userAdd(ssoSysToken,cookie,companyId,branchId);
}
//退出登录
HttpPost logout = new HttpPost(Constants.BASEURL + "/uac/account/loginOut");
logout.setHeader("sso_sys_token", ssoSysToken);
logout.setHeader("Content-Type", "application/json;charset=UTF-8");
HttpResponse response = client.execute(logout);
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
Thread.sleep(5000);
}
/**
* 添加组织
* @param ssoSysToken
* @param cookie
* @param companyId
* @param branchId
* @param root
* @throws Exception
*/
public void organAdd(String ssoSysToken,String cookie,String companyId,int branchId,String root)throws Exception{
//String sql = "select * from t_lc_sync_organ where branch_id = "+ branchId + " and parent_id is not null and is_start = 1 and ums_organ_id is null";
String sql = "select * from t_lc_sync_organ where branch_id = "+ branchId + " and parent_id is not null and is_start = 1";
//初始化
PreparedStatement ps = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = null where branch_id = ?");
ps.setInt(1,branchId);
ps.executeUpdate();
ps = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = ? where branch_id = ? and parent_id is null");
ps.setString(1,root);
ps.setInt(2,branchId);
ps.executeUpdate();
ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
//CloseableHttpClient client = HttpClients.createDefault();
int organType;
while(rs.next()){
Thread.sleep(500);
int organId = rs.getInt("id");
switch (rs.getInt("depart_type")){
case 1:
organType = 10;
break;
case 2:
organType = 50;
break;
case 3:
organType = 30;
break;
case 4:
organType = 20;
break;
default:
organType = 20;
}
String organName = rs.getString("organ_name")+organId;
HttpPost request = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/organ/addOrgan");
//构造发送的数据
HttpEntity send_data = new StringEntity("{\"organ\":{\"organName\":\"" + organName +"\",\"organType\":" + organType + ",\"codeNum\":\"\",\"geshuiCostCenter\":\"\",\"gongziCostCenter\":\"\",\"pid\":\"" + root + "\",\"chargeUserId\":\"\",\"chargeGangweiId\":\"\",\"description\":\"\",\"address\":\"\",\"latitude\":0,\"longitude\":0,\"districtName\":\"\",\"salaryLevel\":\"\",\"businesslicensePicAddr\":\"\",\"startTime\":\"\",\"endTime\":\"\",\"businessArea\":\"\",\"chargeUser\":\"\",\"businesslicenseNum\":\"\",\"member\":\"1\",\"telephone\":\"\"},\"organStore\":{\"businessArea\":\"\"},\"customJson\":\"{}\"}","utf-8");
request.setEntity(send_data); //将send_data设置为请求的正文
request.setHeader("sso_sys_token", ssoSysToken);
request.setHeader("Content-Type", "application/json;charset=UTF-8");
//request.setHeader("Cookie", cookie);
try{
HttpResponse response = client.execute(request); //execute方法会返回接口发送回来的数据
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
JSONObject obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
PreparedStatement ps2 = conn2.prepareStatement("select * from t_organ where company_id = ? and organ_name = ?");
ps2.setString(1,companyId);
ps2.setString(2,organName);
ResultSet rs2 = ps2.executeQuery();
String umsOrganId = null;
while(rs2.next()){
umsOrganId = rs2.getString("id");
break;
}
PreparedStatement ps3 = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = ? where branch_id = ? and id = ?");
ps3.setString(1,umsOrganId);
ps3.setInt(2,branchId);
ps3.setInt(3,organId);
int rows = ps3.executeUpdate();
logger.info("影响的行数:" + rows);
}
}
catch (Exception e){
logger.info("添加组织出现异常,组织名称:"+organName);
e.printStackTrace();
//PreparedStatement ps4 = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = null where branch_id = " + branchId + " and id = " + organId);
//ps4.executeUpdate();
}
}
}
/**
* 修改组织
* @param ssoSysToken
* @param cookie
* @param branchId
* @throws Exception
*/
public void organUpdate(String ssoSysToken,String cookie,int branchId) throws Exception{
String sql = "select * from t_lc_sync_organ where branch_id = "+ branchId +" and parent_id is not null and is_start = 1";
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
//CloseableHttpClient client = HttpClients.createDefault();
while(rs.next()) {
Thread.sleep(500);
String organName = rs.getString("organ_name").replace(rs.getInt("id") + "", "");
String umsOrganId = rs.getString("ums_organ_id");
int parentId = rs.getInt("parent_id");
String umsParentId = null;
PreparedStatement ps4 = conn.prepareStatement("select * from t_lc_sync_organ where branch_id = ? and id = ?");
ps4.setInt(1, branchId);
ps4.setInt(2, parentId);
ResultSet rs4 = ps4.executeQuery();
while (rs4.next()) {
umsParentId = rs4.getString("ums_organ_id");
break;
}
PreparedStatement ps5 = conn2.prepareStatement("select * from t_organ where id = ?");
ps5.setString(1, umsOrganId);
ResultSet rs5 = ps5.executeQuery();
String codeNum = null;
String gongziCostCenter = null;
int organType = 20;
while (rs5.next()) {
logger.info("组织名称:" + organName);
codeNum = rs5.getString("code_num");
gongziCostCenter = rs5.getString("gongzi_cost_center");
organType = rs5.getInt("organ_type");
HttpPost request = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/organ/updateOrgan");
//构造发送的数据
HttpEntity send_data = new StringEntity("{\"organ\":{\"organName\":\"" + organName + "\",\"organType\":" + organType + ",\"codeNum\":\"" + codeNum + "\",\"geshuiCostCenter\":\"\",\"gongziCostCenter\":\"" + gongziCostCenter + "\",\"pid\":\"" + umsParentId + "\",\"chargeUserId\":\"\",\"chargeGangweiId\":\"\",\"description\":\"\",\"address\":\"\",\"latitude\":0,\"longitude\":0,\"districtName\":\"\",\"salaryLevel\":\"\",\"businesslicensePicAddr\":\"\",\"startTime\":\"\",\"endTime\":\"\",\"businessArea\":\"\",\"chargeUser\":\"\",\"businesslicenseNum\":\"\",\"member\":\"1\",\"telephone\":\"\",\"id\":\"" + umsOrganId + "\"},\"organStore\":{\"businessArea\":\"\"},\"customJson\":\"{}\"}", "utf-8");
request.setEntity(send_data); //将send_data设置为请求的正文
request.setHeader("sso_sys_token", ssoSysToken);
request.setHeader("Content-Type", "application/json;charset=UTF-8");
//request.setHeader("Cookie", cookie);
try{
HttpResponse response = client.execute(request); //execute方法会返回接口发送回来的数据
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
}catch (Exception e){
logger.info("修改组织出现异常,组织名称:" + organName);
e.printStackTrace();
}
}
}
}
/**
* 添加岗位
* @param ssoSysToken
* @param cookie
* @param companyId
* @param branchId
* @throws Exception
*/
public void gangweiAdd(String ssoSysToken,String cookie,String companyId,int branchId) throws Exception{
String zhijiLow = "";
// zhijiupper
String zhijiUpper = "";
//String sql = "select * from t_lc_sync_organ where branch_id = "+ branchId + " and parent_id is not null and is_start = 1 and ums_organ_id is null";
String sql = "select t1.id,t1.gangwei_name,t3.ums_organ_id,t2.zhiwei_name \n" +
"from t_lc_sync_gangwei t1 \n" +
"left join t_lc_sync_zhiwei_ref t2 \n" +
"on t1.post_type = t2.id and t1.branch_id = t2.branch_id\n" +
"LEFT JOIN t_lc_sync_organ t3 \n" +
"on t1.depart_id = t3.id and t1.branch_id = t3.branch_id\n" +
"where t1.branch_id = "+ branchId +" and t1.is_start = 1 \n" +
"and t3.ums_organ_id is not null;";
//初始化
PreparedStatement ps = conn.prepareStatement("update t_lc_sync_gangwei set ums_gangwei_id = null where branch_id = ?");
ps.setInt(1,branchId);
ps.executeUpdate();
ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
//CloseableHttpClient client = HttpClients.createDefault();
while(rs.next()){
Thread.sleep(500);
String gangweiName = rs.getString("gangwei_name");
int gangweiId = rs.getInt("id");
String organId = rs.getString("ums_organ_id");
// zhiwei
String zhiweiName = rs.getString("zhiwei_name");
String zhiweiId = "";
PreparedStatement ps6 = conn2.prepareStatement("select * from t_zhiwei where company_id = ? and zhiwei_name = ?");
ps6.setString(1,companyId);
ps6.setString(2,zhiweiName);
ResultSet rs6 = ps6.executeQuery();
while(rs6.next()){
zhiweiId = rs6.getString("id");
break;
}
if(zhiweiId.equals("")){
zhijiLow = "";
zhijiUpper = "";
}
HttpPost request = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/gangwei/addGangwei");
//构造发送的数据
HttpEntity send_data = new StringEntity("gangweiSysJson={\"gangweiName\":\""+ gangweiName + "\",\"zhiweiId\":\"" + zhiweiId + "\",\"gangweiCode\":\"\",\"organId\":\"" + organId + "\",\"member\":\"1\",\"pid\":\"\",\"zhijiLower\":\"" + zhijiLow + "\",\"zhijiTop\":\"" + zhijiUpper + "\",\"gangweiDesc\":\"<p><br></p>\",\"gangweiDuty\":\"<p><br></p>\",\"skillJson\":[{\"skillId\":\"\",\"skillLevelTopId\":\"\",\"skillLevelLowerId\":\"\",\"value\":{\"list\":[]},\"initSelectList\":[]}],\"agentJson\":[{\"agentLevelId\":1,\"agentType\":0,\"agentGangweiId\":\"\",\"gangweiName\":\"\",\"gangweiNameText\":\"\"}]}","utf-8");
request.setEntity(send_data); //将send_data设置为请求的正文
request.setHeader("sso_sys_token", ssoSysToken);
request.setHeader("Content-Type", "application/x-www-form-urlencoded");
//request.setHeader("Cookie", cookie);
try{
HttpResponse response = client.execute(request); //execute方法会返回接口发送回来的数据
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
JSONObject obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
PreparedStatement ps2 = conn2.prepareStatement("select * from t_gangwei where organ_id = ? and gangwei_name = ?");
ps2.setString(1,organId);
ps2.setString(2,gangweiName);
ResultSet rs2 = ps2.executeQuery();
String umsGangweiId = null;
while(rs2.next()){
umsGangweiId = rs2.getString("id");
break;
}
PreparedStatement ps3 = conn.prepareStatement("update t_lc_sync_gangwei set ums_gangwei_id = ? where branch_id = ? and id = ?");
ps3.setString(1,umsGangweiId);
ps3.setInt(2,branchId);
ps3.setInt(3,gangweiId);
int rows = ps3.executeUpdate();
logger.info("影响的行数:" + rows);
}
}
catch (Exception e){
logger.info("添加岗位出现异常,岗位名称:"+gangweiName);
e.printStackTrace();
//PreparedStatement ps4 = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = null where branch_id = " + branchId + " and id = " + organId);
//ps4.executeUpdate();
}
}
}
/**
* 修改岗位
* @param ssoSysToken
* @param cookie
* @param companyId
* @param branchId
* @throws Exception
*/
public void gangweiUpdate(String ssoSysToken,String cookie,String companyId,int branchId) throws Exception{
// zhijilow
String zhijiLow = "";
// zhijiupper
String zhijiUpper = "";
String sql = "select t1.ums_gangwei_id,t2.ums_gangwei_id as ums_parent_gangwei_id, t3.poxy_post_id,t1.gangwei_name " +
"from t_lc_sync_gangwei t1 " +
"left join t_lc_sync_gangwei t2 " +
"on t1.parent_id = t2.id and t1.branch_id = t2.branch_id " +
"left join t_lc_sync_poxy_gangwei t3 " +
"on t1.id = t3.post_id and t1.branch_id = t3.branch_id " +
"where t1.branch_id = " + branchId +
" and t1.is_start = 1 and t1.ums_gangwei_id is not null";
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
//CloseableHttpClient client = HttpClients.createDefault();
while(rs.next()){
Thread.sleep(500);
String gangweiName = rs.getString("gangwei_name");
String gangweiId = rs.getString("ums_gangwei_id");
String parentGangweiId = rs.getString("ums_parent_gangwei_id");
if(parentGangweiId == null){
parentGangweiId = "";
}
int proxyPost = rs.getInt("poxy_post_id");
String organId = "";
// zhiwei
//String zhiweiName = rs.getString("zhiwei_name");
String zhiweiId = "";
String gangweiCode = "";
PreparedStatement ps6 = conn2.prepareStatement("select * from t_gangwei where id = ?");
ps6.setString(1,gangweiId);
ResultSet rs6 = ps6.executeQuery();
while(rs6.next()){
organId = rs6.getString("organ_id");
zhiweiId = rs6.getString("zhiwei_id");
zhijiLow = rs6.getString("zhiji_lower");
zhijiUpper = rs6.getString("zhiji_top");
gangweiCode = rs6.getString("gangwei_code");
break;
}
if(zhijiLow == null){
zhijiLow = "";
}
if(zhijiUpper == null){
zhijiUpper = "";
}
String proxyGangweiId = "";
if(proxyPost != 0){
PreparedStatement ps7 = conn.prepareStatement("select * from t_lc_sync_gangwei where branch_id = ? and id = ? and is_start = 1");
ps7.setInt(1,branchId);
ps7.setInt(2,proxyPost);
ResultSet rs7 = ps7.executeQuery();
while(rs7.next()){
proxyGangweiId = rs7.getString("ums_gangwei_id");
break;
}
}
if(proxyGangweiId == null){
proxyGangweiId = "";
}
HttpPost request = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/gangwei/updateGangweiInfo");
//构造发送的数据
HttpEntity send_data = new StringEntity("gangweiJson={\"gangweiName\":\""+ gangweiName + "\",\"zhiweiId\":\"" + zhiweiId + "\",\"gangweiCode\":\"" + gangweiCode + "\",\"organId\":\"" + organId + "\",\"member\":\"1\",\"pid\":\"" + parentGangweiId + "\",\"zhijiLower\":\"" + zhijiLow + "\",\"zhijiTop\":\"" + zhijiUpper + "\",\"gangweiDesc\":\"<p><br></p>\",\"gangweiDuty\":\"<p><br></p>\",\"skillJson\":[{\"skillId\":\"\",\"skillLevelTopId\":\"\",\"skillLevelLowerId\":\"\",\"value\":{\"list\":[]},\"initSelectList\":[]}],\"agentJson\":[{\"agentLevelId\":1,\"agentType\":0,\"agentGangweiId\":\"" + proxyGangweiId + "\",\"gangweiName\":\"\",\"gangweiNameText\":\"\"}],\"id\":\""+ gangweiId +"\"}","utf-8");
request.setEntity(send_data); //将send_data设置为请求的正文
request.setHeader("sso_sys_token", ssoSysToken);
request.setHeader("Content-Type", "application/x-www-form-urlencoded");
//request.setHeader("Cookie", cookie);
try{
HttpResponse response = client.execute(request); //execute方法会返回接口发送回来的数据
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
//JSONObject obj = (JSONObject) JSON.parse(str);
}
catch (Exception e){
logger.info("修改岗位出现异常,岗位名称:"+gangweiName);
e.printStackTrace();
//PreparedStatement ps4 = conn.prepareStatement("update t_lc_sync_organ set ums_organ_id = null where branch_id = " + branchId + " and id = " + organId);
//ps4.executeUpdate();
}
}
}
/**
* 添加人员
* @param ssoSysToken
* @param cookie
* @param companyId
* @param branchId
* @throws Exception
*/
public void userAdd(String ssoSysToken,String cookie,String companyId,int branchId) throws Exception{
int idType = 5;//海外证件
//String sql = "select * from t_lc_sync_organ where branch_id = "+ branchId + " and parent_id is not null and is_start = 1 and ums_organ_id is null";
String sql = "select t1.id, t1.user_name,t1.emp_no,t3.ums_organ_id as organ_id,t4.ums_gangwei_id as gangwei_id,\n" +
"t1.phone_prefix,t1.phone,t1.id_type,t1.pnid,t1.gender, \n" +
"t1.solar_birthday,t1.age,t1.residence,t1.residence_addr,t1.address,\n" +
"t2.entry_date,t2.entry_shop_date,t2.work_type,t2.work_status,\n" +
"t2.trial_limit,t2.expect_regular_date,t2.regular_status\n" +
"from t_lc_sync_user t1,t_lc_sync_user_work t2,\n" +
"t_lc_sync_organ t3,t_lc_sync_gangwei t4 \n" +
"where t1.id = t2.id and \n" +
"t1.branch_id=t2.branch_id and \n" +
"t2.organ_id = t3.id AND\n" +
"t2.branch_id = t3.branch_id and \n" +
"t2.zhiwei_id = t4.id AND\n" +
"t2.branch_id = t4.branch_id AND\n" +
"t3.ums_organ_id is not null AND\n" +
"t4.ums_gangwei_id is not null AND\n" +
"t1.branch_id = " + branchId + ";";
PreparedStatement ps = conn.prepareStatement(sql);
ResultSet rs = ps.executeQuery();
//CloseableHttpClient client = HttpClients.createDefault();
while(rs.next()){
Thread.sleep(500);
String userId = "";
String resumeId = "";
int id = rs.getInt("id");
String userName = rs.getString("user_name");
String empNo = rs.getString("emp_no");
String organId = rs.getString("organ_id");
String gangweiId = rs.getString("gangwei_id");
String phone = rs.getString("phone");
String pnid = rs.getString("pnid");
int gender = rs.getString("gender").equals("男")?1:2;
String solorBirthday = rs.getString("solar_birthday");
int age = rs.getInt("age");
String address = rs.getString("address");
String entryDate = rs.getString("entry_date");
String entryShopDate = rs.getString("entry_shop_date");
int tryLimit = rs.getInt("trial_limit");
String expectRegularDate = rs.getString("expect_regular_date");
int userStatus = rs.getString("regular_status").equals("是")?30:20;
int workType = rs.getString("work_type").equals("全职工")?10:20;//工作类型
int workStatus = rs.getString("work_status").equals("合同工")?10:20;;//工作状态
String organName = "";
String gangweiName = "";
String kqjCardNo = "";
//
String zhiweiId = "";
PreparedStatement ps2 = conn2.prepareStatement("select * from t_gangwei where id = ?");
ps2.setString(1,gangweiId);
ResultSet rs2 = ps2.executeQuery();
while(rs2.next()){
zhiweiId = rs2.getString("zhiwei_id");
break;
}
if(zhiweiId == null){
zhiweiId = "";
}
String gongziCostCenter = "";
PreparedStatement ps3 = conn2.prepareStatement("select * from t_organ where id = ?");
ps3.setString(1,organId);
ResultSet rs3 = ps3.executeQuery();
while(rs3.next()){
gongziCostCenter = rs3.getString("gongzi_cost_center");
break;
}
if(gongziCostCenter == null){
gongziCostCenter = "";
}
HttpPost addUserResumeInfo = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/userResume/addUserResumeInfo");
//构造发送的数据
HttpEntity send_data = new StringEntity("{\"companyId\":null,\"userId\":null,\"empNum\":null,\"resumeId\":null,\"userName\":\"" + userName + "\",\"solarBirthday\":\"" + solorBirthday + "\",\"age\":" + age + ",\"gender\":null,\"residenceAddr\":null,\"phonePrefix\":86,\"phone\":\"" + phone + "\",\"idType\":" + idType + ",\"pnid\":\"" + pnid + "\",\"organId\":\"" + organId + "\",\"gangweiId\":\"" + gangweiId + "\",\"zhiweiId\":\"" + zhiweiId + "\",\"workType\":null,\"workStatus\":null,\"userStatus\":null,\"entrySource\":1,\"qrCode\":null}","utf-8");
addUserResumeInfo.setEntity(send_data); //将send_data设置为请求的正文
addUserResumeInfo.setHeader("sso_sys_token", ssoSysToken);
addUserResumeInfo.setHeader("Content-Type", "application/json;charset=UTF-8");
//addUserResumeInfo.setHeader("Cookie", cookie);
try{
//进草稿
HttpResponse response = client.execute(addUserResumeInfo); //execute方法会返回接口发送回来的数据
//打印响应正文
String str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
JSONObject obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
JSONObject result = (JSONObject)obj.get("result");
JSONObject currentData = (JSONObject)result.get("currentData");
JSONObject userResume = (JSONObject)currentData.get("userResume");
userId = (String)userResume.get("userId");
resumeId = (String)userResume.get("id");
organName = (String)userResume.get("organName");
gangweiName = (String)userResume.get("gangweiName");
kqjCardNo = (String)userResume.get("kqjCardNo");
//保存个人信息
boolean personSaveSuccess = false;
HttpPost userResumePersonCreate = new HttpPost(Constants.BASEURL + "/form/xlc-ops-b/form/web/formInstance/create");
userResumePersonCreate.setHeader("sso_sys_token", ssoSysToken);
userResumePersonCreate.setHeader("Content-Type", "application/json;charset=UTF-8");
//userResumePersonCreate.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"bizTypeId\":10028,\"bizTypeName\":\"个人信息\",\"business\":\""+userName+"\",\"companyId\":\"" + companyId + "\",\"createTime\":\"2021-10-03T04:35:39.726Z\",\"updateTime\":\"2021-10-03T04:35:39.726Z\",\"createUid\":\"sys\",\"updateUid\":\"sys\",\"dataSource\":\"入职管理\",\"dataType\":1,\"formName\":\"入职个人信息系统表单\",\"formObjType\":1,\"formStatus\":1,\"formTemplateId\":\"601a187aa919ce1b135fb559\",\"formType\":1,\"targetId\":\""+resumeId+"\",\"formTemplateInstance\":{\"id\":\"601a187aa919ce1b135fb559\",\"companyId\":\""+companyId+"\",\"companyName\":\"北京微海管理咨询有限公司\",\"formName\":\"入职个人信息系统表单\",\"bizTypeId\":10028,\"status\":null,\"belongto\":1,\"formId\":null,\"open\":null,\"createDate\":null,\"updateDate\":null,\"updateUid\":null,\"rangeData\":null,\"fieldList\":\"{\\\"model\\\":{\\\"wec_user_resume_userName\\\":\\\""+userName+"\\\",\\\"wec_user_resume_phonePrefix\\\":86,\\\"wec_user_resume_phone\\\":\\\""+phone+"\\\",\\\"wec_user_resume_idType\\\":"+idType+",\\\"wec_user_resume_pnid\\\":\\\""+pnid+"\\\",\\\"wec_user_resume_idExpireDate\\\":\\\"\\\",\\\"wec_user_resume_ext_birthdayType\\\":1,\\\"wec_user_resume_ext_solarBirthday\\\":\\\""+solorBirthday+"\\\",\\\"wec_user_resume_ext_age\\\":"+age+",\\\"wec_user_resume_ext_gender\\\":\\\""+gender+"\\\",\\\"wec_user_resume_ext_residenceAddr\\\":\\\""+address+"\\\"},\\\"fieldList\\\":[{\\\"fieldName\\\":\\\"userName\\\",\\\"column\\\":\\\"user_name\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[{\\\"message\\\":\\\"姓名必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"姓名\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_userName\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"phonePrefix\\\",\\\"column\\\":\\\"phone_prefix\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"手机号必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"手机号\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":86,\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"phonePrefix\\\",\\\"optionsType\\\":\\\"SJHQZ\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_phonePrefix\\\",\\\"cols\\\":7,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"phone\\\",\\\"column\\\":\\\"phone\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[{\\\"message\\\":\\\"手机号必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"手机号\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_phone\\\",\\\"cols\\\":5,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"idType\\\",\\\"column\\\":\\\"id_type\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"证件类型\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"idType\\\",\\\"optionsType\\\":\\\"ZJLX\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_idType\\\",\\\"cols\\\":6,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"pnid\\\",\\\"column\\\":\\\"pnid\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"证件号\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_pnid\\\",\\\"cols\\\":6,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"idExpireDate\\\",\\\"column\\\":\\\"id_expire_date\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"证件到期时间\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"hasPickerOptions\\\":true,\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"pickerOptions\\\":{},\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"wec_user_resume_idExpireDate\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"birthdayType\\\",\\\"column\\\":\\\"birthday_type\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"生日\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":1,\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"birthdayType\\\",\\\"optionsType\\\":\\\"SR\\\",\\\"options\\\":[],\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_ext_birthdayType\\\",\\\"cols\\\":6,\\\"table\\\":\\\"wec_user_resume_ext\\\"},{\\\"fieldName\\\":\\\"solarBirthday\\\",\\\"column\\\":\\\"solar_birthday\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"生日\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":true,\\\"showLabel\\\":false,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"wec_user_resume_ext_solarBirthday\\\",\\\"cols\\\":6,\\\"table\\\":\\\"wec_user_resume_ext\\\"},{\\\"fieldName\\\":\\\"age\\\",\\\"column\\\":\\\"age\\\",\\\"icon\\\":\\\"icon-number\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"年龄\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":0,\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":true,\\\"readonly\\\":true,\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":50,\\\"isPermHidden\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"NUMBER\\\",\\\"model\\\":\\\"wec_user_resume_ext_age\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume_ext\\\"},{\\\"fieldName\\\":\\\"gender\\\",\\\"column\\\":\\\"gender\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"性别\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"gender\\\",\\\"optionsType\\\":\\\"XB\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_ext_gender\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume_ext\\\"},{\\\"fieldName\\\":\\\"residenceAddr\\\",\\\"column\\\":\\\"residence_addr\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"个人信息\\\",\\\"fieldCN\\\":\\\"户籍地址\\\",\\\"tableName\\\":\\\"个人信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_ext_residenceAddr\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume_ext\\\"}]}\",\"formWidth\":910,\"business\":\"个人信息\",\"formModel\":\"normal\",\"formSize\":\"medium\",\"labelPosition\":\"right\",\"disabled\":false,\"span\":10,\"showGrid\":true,\"needApprove\":true,\"role\":null,\"createUser\":null,\"updateUser\":\"王惠武\",\"formInstanceId\":0,\"labelWidth\":140,\"createUserPhone\":null,\"targetId\":\""+resumeId+"\"}}","utf-8");
userResumePersonCreate.setEntity(send_data);
response = client.execute(userResumePersonCreate);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
int instanceId = (Integer)obj.get("result");
HttpPost updateUserResumePerson = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/userResume/updateUserResumePerson");
updateUserResumePerson.setHeader("sso_sys_token", ssoSysToken);
updateUserResumePerson.setHeader("Content-Type", "application/json;charset=UTF-8");
//updateUserResumePerson.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"userResumeFull\":{\"userResume\":{\"companyId\":\""+companyId+"\",\"userId\":\""+userId+"\",\"id\":\""+resumeId+"\",\"userName\":\""+userName+"\",\"shigangForm\":1,\"phonePrefix\":86,\"phone\":\""+phone+"\",\"idType\":"+idType+",\"pnid\":\""+pnid+"\",\"idExpireDate\":\"\"},\"userResumeCustom\":{\"companyId\":\""+companyId+"\",\"userId\":\""+userId+"\",\"id\":\""+resumeId+"\"},\"userResumeExt\":{\"companyId\":\""+companyId+"\",\"userId\":\""+userId+"\",\"id\":\""+resumeId+"\",\"birthdayType\":1,\"solarBirthday\":\""+solorBirthday+"\",\"age\":"+age+",\"gender\":\""+gender+"\",\"residenceAddr\":\""+address+"\"}},\"userName\":\""+userName+"\",\"formId\":"+instanceId+"}","utf-8");
updateUserResumePerson.setEntity(send_data);
response = client.execute(updateUserResumePerson);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
personSaveSuccess = true;
}
}
//保存工作信息
boolean workSaveSuccess = false;
HttpPost userResumeWorkCreate = new HttpPost(Constants.BASEURL + "/form/xlc-ops-b/form/web/formInstance/create");
userResumeWorkCreate.setHeader("sso_sys_token", ssoSysToken);
userResumeWorkCreate.setHeader("Content-Type", "application/json;charset=UTF-8");
//userResumeWorkCreate.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"bizTypeId\":10029,\"bizTypeName\":\"工作信息\",\"business\":\""+userName+"\",\"companyId\":\""+companyId+"\",\"createTime\":\"2021-10-03T04:36:15.518Z\",\"updateTime\":\"2021-10-03T04:36:15.518Z\",\"createUid\":\"sys\",\"updateUid\":\"sys\",\"dataSource\":\"入职管理\",\"dataType\":1,\"formName\":\"入职工作信息系统表\",\"formObjType\":1,\"formStatus\":1,\"formTemplateId\":\"604327eba919ce456d9ed64a\",\"formType\":1,\"targetId\":\""+resumeId+"\",\"formTemplateInstance\":{\"id\":\"604327eba919ce456d9ed64a\",\"companyId\":\""+companyId+"\",\"companyName\":\"北京微海管理咨询有限公司\",\"formName\":\"入职工作信息系统表\",\"bizTypeId\":10029,\"status\":null,\"belongto\":1,\"formId\":null,\"open\":null,\"createDate\":null,\"updateDate\":null,\"updateUid\":null,\"rangeData\":null,\"fieldList\":\"{\\\"model\\\":{\\\"wec_user_resume_empNo\\\":\\\""+empNo+"\\\",\\\"wec_user_resume_organId\\\":{\\\"id\\\":\\\""+organId+"\\\",\\\"name\\\":\\\""+organName+"\\\",\\\"value-key\\\":\\\"id\\\"},\\\"wec_user_resume_gangweiId\\\":{\\\"id\\\":\\\""+gangweiId+"\\\",\\\"name\\\":\\\""+gangweiName+"\\\",\\\"value-key\\\":\\\"id\\\"},\\\"wec_user_resume_ext_workCityId\\\":[],\\\"wec_user_resume_entryDate\\\":\\\""+entryDate+"\\\",\\\"wec_user_resume_workType\\\":\\\""+workType+"\\\",\\\"wec_user_resume_workStatus\\\":\\\""+workStatus+"\\\",\\\"wec_user_resume_trialLimit\\\":"+tryLimit+",\\\"wec_user_resume_expectRegularDate\\\":\\\""+expectRegularDate+"\\\",\\\"wec_user_resume_userStatus\\\":\\\""+userStatus+"\\\",\\\"wec_user_resume_attendCardNo\\\":\\\""+kqjCardNo+"\\\",\\\"wec_user_resume_attendStatus\\\":3,\\\"wec_user_resume_ext_entryTimes\\\":1},\\\"fieldList\\\":[{\\\"fieldName\\\":\\\"empNo\\\",\\\"column\\\":\\\"emp_no\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[{\\\"message\\\":\\\"工号必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"工号\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_empNo\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"organId\\\",\\\"column\\\":\\\"organ_id\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"部门必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"tree\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"部门\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"remoteFunc\\\":\\\"organTreeList\\\",\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"isPermHidden\\\":false,\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"props\\\":{\\\"children\\\":\\\"children\\\",\\\"label\\\":\\\"organName\\\"},\\\"patternList\\\":[],\\\"belongTo\\\":1,\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"el-icon-arrow-down\\\",\\\"requiredMessage\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false},\\\"style\\\":\\\"ORGANTREE\\\",\\\"model\\\":\\\"wec_user_resume_organId\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"gangweiId\\\",\\\"column\\\":\\\"gangwei_id\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"岗位必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"tree\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"岗位\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"remoteFunc\\\":[\\\"organTreeList\\\",\\\"getGangweiPageByOrganId\\\"],\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"isPermHidden\\\":false,\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"patternList\\\":[],\\\"belongTo\\\":1,\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"el-icon-arrow-down\\\",\\\"requiredMessage\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false},\\\"style\\\":\\\"GANGWEITREE\\\",\\\"model\\\":\\\"wec_user_resume_gangweiId\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"workCityId\\\",\\\"icon\\\":\\\"icon-jilianxuanze\\\",\\\"rules\\\":[],\\\"type\\\":\\\"cascader\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"工作地点\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"hidden\\\":false,\\\"defaultValue\\\":[],\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":false,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"\\\",\\\"optionsType\\\":\\\"99999999999999999999999999999999\\\",\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"containerContent\\\",\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"level\\\":2,\\\"isPermHidden\\\":false,\\\"props\\\":{\\\"children\\\":\\\"children\\\",\\\"label\\\":\\\"name\\\",\\\"checkStrictly\\\":true,\\\"value\\\":\\\"id\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"CUSTOMCONTAINER\\\",\\\"model\\\":\\\"wec_user_resume_ext_workCityId\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume_ext\\\"},{\\\"fieldName\\\":\\\"entryDate\\\",\\\"column\\\":\\\"entry_date\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"入职时间\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":true,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"pickerOptions\\\":{\\\"shortcuts\\\":[{\\\"text\\\":\\\"今天\\\"},{\\\"text\\\":\\\"昨天\\\"},{\\\"text\\\":\\\"一周前\\\"},{\\\"text\\\":\\\"永久\\\"}]},\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"wec_user_resume_entryDate\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"workType\\\",\\\"column\\\":\\\"work_type\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"工作类型必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"工作类型\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"workType\\\",\\\"optionsType\\\":\\\"GZLX\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_workType\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"workStatus\\\",\\\"column\\\":\\\"work_status\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"工作状态\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"workStatus\\\",\\\"optionsType\\\":\\\"GZZT\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_workStatus\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"trialLimit\\\",\\\"column\\\":\\\"trial_limit\\\",\\\"icon\\\":\\\"icon-number\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"试用期\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":0,\\\"maxlength\\\":50,\\\"isPermHidden\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"(月)\\\"},\\\"style\\\":\\\"NUMBER\\\",\\\"model\\\":\\\"wec_user_resume_trialLimit\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"expectRegularDate\\\",\\\"column\\\":\\\"expect_regular_date\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"预计转正时间\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":true,\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"pickerOptions\\\":{\\\"shortcuts\\\":[{\\\"text\\\":\\\"今天\\\"},{\\\"text\\\":\\\"昨天\\\"},{\\\"text\\\":\\\"一周前\\\"},{\\\"text\\\":\\\"永久\\\"}]},\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"wec_user_resume_expectRegularDate\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"userStatus\\\",\\\"column\\\":\\\"user_status\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"员工状态\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"userStatus\\\",\\\"optionsType\\\":\\\"YGZT\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_userStatus\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"attendCardNo\\\",\\\"column\\\":\\\"attend_card_no\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"考勤卡号\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":true,\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":0,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_attendCardNo\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"attendStatus\\\",\\\"column\\\":\\\"attend_status\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"考勤状态\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":3,\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":true,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"attendStatus\\\",\\\"optionsType\\\":\\\"KQZT\\\",\\\"options\\\":[],\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"dictCategory\\\":0,\\\"props\\\":{\\\"label\\\":\\\"itemDesc\\\",\\\"value\\\":\\\"itemValue\\\"},\\\"remoteType\\\":\\\"func\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"wec_user_resume_attendStatus\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume\\\"},{\\\"fieldName\\\":\\\"entryTimes\\\",\\\"column\\\":\\\"entry_times\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[{\\\"message\\\":\\\"必须填写\\\",\\\"required\\\":true}],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作信息\\\",\\\"fieldCN\\\":\\\"入职次数\\\",\\\"tableName\\\":\\\"工作信息\\\",\\\"tableGroup\\\":\\\"wec_user_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":true,\\\"showLabel\\\":true,\\\"readonly\\\":true,\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"wec_user_resume_ext_entryTimes\\\",\\\"cols\\\":12,\\\"table\\\":\\\"wec_user_resume_ext\\\"}]}\",\"formWidth\":910,\"business\":\"工作信息\",\"formModel\":\"normal\",\"formSize\":\"medium\",\"labelPosition\":\"right\",\"disabled\":false,\"span\":10,\"showGrid\":true,\"needApprove\":true,\"role\":null,\"createUser\":null,\"updateUser\":\"叶学来\",\"formInstanceId\":0,\"labelWidth\":140,\"createUserPhone\":null,\"targetId\":\""+resumeId+"\"}}","utf-8");
userResumeWorkCreate.setEntity(send_data);
response = client.execute(userResumeWorkCreate);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
int instanceId = (Integer)obj.get("result");
HttpPost updateUserResumeWork = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/userResume/updateUserResumeWork");
updateUserResumeWork.setHeader("sso_sys_token", ssoSysToken);
updateUserResumeWork.setHeader("Content-Type", "application/json;charset=UTF-8");
//updateUserResumeWork.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"userResumeFull\":{\"userResume\":{\"id\":\""+resumeId+"\",\"userId\":\""+userId+"\",\"empNo\":\""+empNo+"\",\"companyId\":\""+companyId+"\",\"gangweiId\":\""+gangweiId+"\",\"zhiweiId\":\""+zhiweiId+"\",\"corporationId\":null,\"corporationBankId\":null,\"userName\":\""+userName+"\",\"status\":1,\"phonePrefix\":86,\"phone\":\""+phone+"\",\"email\":null,\"nickName\":null,\"headPic\":null,\"createDate\":\"2021-10-03 12:34:08\",\"createUid\":\"sys\",\"updateDate\":\"2021-10-03 12:35:40\",\"updateUid\":\"sys\",\"idType\":"+idType+",\"pnid\":\""+pnid+"\",\"idExpireDate\":null,\"bankId\":null,\"bankName\":null,\"firstWorkDate\":null,\"organId\":\""+organId+"\",\"entryDate\":\""+entryDate+"\",\"entryShopDate\":\""+entryShopDate+"\",\"workType\":\""+workType+"\",\"workStatus\":\""+workStatus+"\",\"trialLimit\":"+tryLimit+",\"expectRegularDate\":\""+expectRegularDate+"\",\"actualRegularDate\":null,\"attendStatus\":3,\"attendCardNo\":\""+kqjCardNo+"\",\"userStatus\":\""+userStatus+"\",\"auditStatus\":1,\"shigangStatus\":1,\"shigangForm\":1,\"endShigangDate\":null,\"zhiji\":null,\"zhideng\":null,\"kqjUserId\":null,\"kqjCardNo\":\""+kqjCardNo+"\",\"gzPwd\":null,\"isFix\":0,\"healthOverTime\":null,\"leftDate\":null,\"outsourceCompany\":null},\"userResumeCustom\":{\"id\":\""+resumeId+"\",\"companyId\":\""+companyId+"\",\"c1\":null,\"c2\":null,\"c3\":null,\"c4\":null,\"c5\":null,\"c6\":null,\"c7\":null,\"c8\":null,\"c9\":null,\"c10\":null,\"c11\":null,\"c12\":null,\"c13\":null,\"c14\":null,\"c15\":null,\"c16\":null,\"c17\":null,\"c18\":null,\"c19\":null,\"c20\":null,\"c21\":null,\"c22\":null,\"c23\":null,\"c24\":null,\"c25\":null,\"c26\":null,\"c27\":null,\"c28\":null,\"c29\":null,\"c30\":null,\"c31\":null,\"c32\":null,\"c33\":null,\"c34\":null,\"c35\":null,\"c36\":null,\"c37\":null,\"c38\":null,\"c39\":null,\"c40\":null,\"c41\":null,\"c42\":null,\"c43\":null,\"c44\":null,\"c45\":null,\"c46\":null,\"c47\":null,\"c48\":null,\"c49\":null,\"c50\":null,\"userId\":\""+userId+"\"},\"userResumeExt\":{\"id\":\""+resumeId+"\",\"companyId\":\""+companyId+"\",\"createDate\":1633235648000,\"createUid\":\"sys\",\"updateDate\":1633235740695,\"updateUid\":\"sys\",\"birthdayType\":1,\"lunarBirthday\":null,\"solarBirthday\":\""+solorBirthday+"\",\"age\":"+age+",\"gender\":"+gender+",\"nation\":null,\"politicsStatus\":null,\"residenceType\":null,\"residenceAddr\":\"\",\"address\":null,\"eduLevel\":null,\"major\":null,\"entryWay\":null,\"entrySource\":1,\"recommendUser\":null,\"grandTime\":null,\"recommendName\":null,\"recommendAmount\":null,\"marryStatus\":null,\"hurryUpMan\":null,\"hurryRelative\":null,\"hurryUpPhone\":null,\"seniority\":null,\"seniorityDeduction\":null,\"seniorityCountDate\":null,\"workYear\":null,\"workProvinceId\":\"\",\"workCityId\":\"\",\"workDistrictId\":\"\",\"gongziCostCenter\":\""+gongziCostCenter+"\",\"geshuiCostCenter\":null,\"periodSecretary\":null,\"entryTimes\":1,\"otherEntryTimes\":null,\"constellation\":null,\"landline\":null,\"englishLevel\":null,\"remark\":null,\"userId\":\""+userId+"\"}},\"userName\":\""+userName+"\",\"formId\":"+instanceId+"}","utf-8");
updateUserResumeWork.setEntity(send_data);
response = client.execute(updateUserResumeWork);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
workSaveSuccess = true;
}
}
//保存工作经历
PreparedStatement ps5 = conn.prepareStatement("select * from t_lc_sync_user_workexp where branch_id = ? and id = ?");
ps5.setInt(1,branchId);
ps5.setInt(2,id);
ResultSet rs5 = ps5.executeQuery();
String company = "";
String zhiwei = "";
String startDate = "";
String endDate = "";
String confirmMem = "";
String confirmPhone = "";
String remark = "";
while(rs5.next()){
company = rs5.getString("company");
zhiwei = rs5.getString("zhiwei");
startDate = rs5.getString("start_date");
endDate = rs5.getString("end_date");
confirmMem = rs5.getString("confir_mem");
confirmPhone = rs5.getString("confir_phone");
remark = rs5.getString("remark");
break;
}
if(company == null){
company = "";
}
if(zhiwei == null){
zhiwei = "";
}
if(startDate == null){
startDate = "";
}
if(endDate == null){
endDate = "";
}
if(confirmMem == null){
confirmMem = "";
}
if(confirmPhone == null){
confirmPhone = "";
}
if(remark == null){
remark = "";
}
HttpPost empWorkexpsInfoCreate = new HttpPost(Constants.BASEURL + "/form/xlc-ops-b/form/web/formInstance/create");
empWorkexpsInfoCreate.setHeader("sso_sys_token", ssoSysToken);
empWorkexpsInfoCreate.setHeader("Content-Type", "application/json;charset=UTF-8");
//empWorkexpsInfoCreate.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"bizTypeId\":10031,\"bizTypeName\":\"工作经历\",\"business\":\""+userName+"\",\"companyId\":\""+companyId+"\",\"createTime\":\"2021-10-03T04:37:15.720Z\",\"updateTime\":\"2021-10-03T04:37:15.720Z\",\"createUid\":\"sys\",\"updateUid\":\"sys\",\"dataSource\":\"入职管理\",\"dataType\":1,\"formName\":\"工作经历\",\"formObjType\":1,\"formStatus\":1,\"formTemplateId\":\"60bdcf74624eed2f7ee2449f\",\"formType\":1,\"targetId\":\""+resumeId+"\",\"formTemplateInstance\":{\"id\":\"60bdcf74624eed2f7ee2449f\",\"companyId\":\""+companyId+"\",\"companyName\":\"乐才(北京)科技有限公司(运营)\",\"formName\":\"工作经历\",\"bizTypeId\":10031,\"status\":null,\"belongto\":1,\"formId\":null,\"open\":null,\"createDate\":null,\"updateDate\":null,\"updateUid\":null,\"rangeData\":null,\"fieldList\":\"{\\\"model\\\":{\\\"LIST_1623052103000_84425_10031\\\":[{\\\"t_emp_workexp_resume_company\\\":\\\""+company+"\\\",\\\"t_emp_workexp_resume_zhiwei\\\":\\\""+zhiwei+"\\\",\\\"t_emp_workexp_resume_startDate\\\":\\\""+startDate+"\\\",\\\"t_emp_workexp_resume_endDate\\\":\\\""+endDate+"\\\",\\\"t_emp_workexp_resume_confirMem\\\":\\\""+confirmMem+"\\\",\\\"t_emp_workexp_resume_confirPhone\\\":\\\""+confirmPhone+"\\\",\\\"t_emp_workexp_resume_remark\\\":\\\""+remark+"\\\",\\\"opt\\\":true}]},\\\"fieldList\\\":[{\\\"fieldName\\\":\\\"LIST_1623052103000_84425_10031\\\",\\\"icon\\\":\\\"icon-zhage\\\",\\\"options\\\":{\\\"btnLineMax\\\":20,\\\"canDel\\\":1,\\\"defaultValue\\\":[{\\\"opt\\\":false}],\\\"width\\\":\\\"100%\\\",\\\"customClass\\\":\\\"\\\",\\\"isList\\\":true,\\\"btnPosition\\\":0,\\\"listType\\\":0,\\\"required\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"showLabel\\\":true},\\\"style\\\":\\\"LIST\\\",\\\"rules\\\":[],\\\"model\\\":\\\"LIST_1623052103000_84425_10031\\\",\\\"type\\\":\\\"list\\\",\\\"list\\\":[{\\\"fieldName\\\":\\\"company\\\",\\\"column\\\":\\\"company\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"公司名称\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"t_emp_workexp_resume_company\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"},{\\\"fieldName\\\":\\\"zhiwei\\\",\\\"column\\\":\\\"zhiwei\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"职位\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"t_emp_workexp_resume_zhiwei\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"},{\\\"fieldName\\\":\\\"startDate\\\",\\\"column\\\":\\\"start_date\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"开始时间\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"hasPickerOptions\\\":false,\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"pickerOptions\\\":{},\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"t_emp_workexp_resume_startDate\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"},{\\\"fieldName\\\":\\\"endDate\\\",\\\"column\\\":\\\"end_date\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"结束时间\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"hasPickerOptions\\\":false,\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"pickerOptions\\\":{},\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"t_emp_workexp_resume_endDate\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"},{\\\"fieldName\\\":\\\"confirMem\\\",\\\"column\\\":\\\"confir_mem\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"证明人\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"t_emp_workexp_resume_confirMem\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"},{\\\"fieldName\\\":\\\"confirPhone\\\",\\\"column\\\":\\\"confir_phone\\\",\\\"icon\\\":\\\"icon-input\\\",\\\"rules\\\":[],\\\"type\\\":\\\"text\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"证明人电话\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"prepend\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"prefix-icon\\\":\\\"\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"suffix-icon\\\":\\\"\\\",\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":100,\\\"dataType\\\":\\\"string\\\",\\\"isPermHidden\\\":false,\\\"dataTypeCheck\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"showPassword\\\":false,\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"dataTypeMessage\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"append\\\":\\\"\\\"},\\\"style\\\":\\\"TEXT\\\",\\\"model\\\":\\\"t_emp_workexp_resume_confirPhone\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"},{\\\"fieldName\\\":\\\"remark\\\",\\\"column\\\":\\\"remark\\\",\\\"icon\\\":\\\"icon-diy-com-textarea\\\",\\\"rules\\\":[],\\\"type\\\":\\\"textarea\\\",\\\"tableDesc\\\":\\\"工作经历表\\\",\\\"fieldCN\\\":\\\"备注\\\",\\\"tableName\\\":\\\"工作经历表\\\",\\\"tableGroup\\\":\\\"t_emp_workexp_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"pattern\\\":\\\"\\\",\\\"labelWidth\\\":100,\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"canDel\\\":1,\\\"maxlength\\\":500,\\\"isPermHidden\\\":false,\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"show-word-limit\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"autosize\\\":{\\\"minRows\\\":4,\\\"maxRows\\\":4}},\\\"style\\\":\\\"TEXTAREA\\\",\\\"model\\\":\\\"t_emp_workexp_resume_remark\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_workexp_resume\\\"}],\\\"cols\\\":24,\\\"fieldCN\\\":\\\"列表容器\\\"}]}\",\"formWidth\":910,\"business\":\"工作经历\",\"formModel\":\"normal\",\"formSize\":\"medium\",\"labelPosition\":\"right\",\"disabled\":false,\"span\":10,\"showGrid\":true,\"needApprove\":true,\"role\":null,\"createUser\":null,\"updateUser\":\"陈省省\",\"formInstanceId\":0,\"labelWidth\":140,\"createUserPhone\":null,\"targetId\":\""+resumeId+"\"}}","utf-8");
empWorkexpsInfoCreate.setEntity(send_data);
response = client.execute(empWorkexpsInfoCreate);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
int instanceId = (Integer)obj.get("result");
HttpPost saveEmpWorkexpsInfo = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/userRelate/saveEmpWorkexpsInfo");
saveEmpWorkexpsInfo.setHeader("sso_sys_token", ssoSysToken);
saveEmpWorkexpsInfo.setHeader("Content-Type", "application/json;charset=UTF-8");
//saveEmpWorkexpsInfo.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"currentType\":3,\"data\":[{\"company\":\""+company+"\",\"zhiwei\":\""+zhiwei+"\",\"startDate\":\""+startDate+"\",\"endDate\":\""+endDate+"\",\"confirMem\":\""+confirmMem+"\",\"confirPhone\":\""+confirmPhone+"\",\"remark\":\""+remark+"\",\"opt\":true}],\"removeIds\":[],\"resumeId\":\""+resumeId+"\",\"userId\":\""+userId+"\",\"userName\":\""+userName+"\",\"formId\":"+instanceId+"}","utf-8");
saveEmpWorkexpsInfo.setEntity(send_data);
response = client.execute(saveEmpWorkexpsInfo);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
}
//保存资料信息
String dataAddr1 = "";
int dataType1 = 1;
String name1 = "";
String dataAddr4 = "";
int dataType4 = 4;
String name4 = "";
PreparedStatement ps6 = conn.prepareStatement("select * from t_lc_sync_user_entry_info where branch_id = ? and id = ? and data_type in (?,?)");
ps6.setInt(1,branchId);
ps6.setInt(2,id);
ps6.setString(3,"身份证正反面复印件(必填)");
ps6.setString(4,"健康证(必填)");
ResultSet rs6 = ps6.executeQuery();
while (rs6.next()){
if(rs6.getString("data_type").equals("健康证(必填)")){
dataAddr4 = rs6.getString("data_addr");
if(dataAddr4!=null){
String[] urls = dataAddr4.split(",");
for(int i=0;i<urls.length;i++){
int idx = i+1;
name4 = name4 + "健康证" + idx + ".jpg,";
}
if(urls.length>0){
name4 = name4.substring(0,name4.lastIndexOf(','));
}
}
}
if(rs6.getString("data_type").equals("身份证正反面复印件(必填)")){
dataAddr1 = rs6.getString("data_addr");
if(dataAddr1!=null){
String[] urls = dataAddr1.split(",");
for(int i=0;i<urls.length;i++){
int idx = i+1;
name1 = name1 + "身份证" + idx + ".jpg,";
}
if(urls.length>0){
name1 = name1.substring(0,name1.lastIndexOf(','));
}
}
}
}
if(dataAddr1 == null){
dataAddr1 = "";
}
if(dataAddr4 == null){
dataAddr4 = "";
}
HttpPost empEntryInfosCreate = new HttpPost(Constants.BASEURL + "/form/xlc-ops-b/form/web/formInstance/create");
empEntryInfosCreate.setHeader("sso_sys_token", ssoSysToken);
empEntryInfosCreate.setHeader("Content-Type", "application/json;charset=UTF-8");
//empEntryInfosCreate.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"bizTypeId\":10037,\"bizTypeName\":\"证件资料\",\"business\":\""+userName+"\",\"companyId\":\""+companyId+"\",\"createTime\":\"2021-10-03T13:48:31.328Z\",\"updateTime\":\"2021-10-03T13:48:31.328Z\",\"createUid\":\"sys\",\"updateUid\":\"sys\",\"dataSource\":\"入职管理\",\"dataType\":1,\"formName\":\"入职证件资料系统表\",\"formObjType\":1,\"formStatus\":1,\"formTemplateId\":\"605d703da919ce3152098458\",\"formType\":1,\"targetId\":\""+resumeId+"\",\"formTemplateInstance\":{\"id\":\"605d703da919ce3152098458\",\"companyId\":\""+companyId+"\",\"companyName\":\"北京微海管理咨询有限公司\",\"formName\":\"入职证件资料系统表\",\"bizTypeId\":10037,\"status\":null,\"belongto\":1,\"formId\":null,\"open\":null,\"createDate\":null,\"updateDate\":null,\"updateUid\":null,\"rangeData\":null,\"fieldList\":\"{\\\"model\\\":{\\\"LIST_1621909115000_94164_10037\\\":[{\\\"t_emp_entry_info_resume_dataType\\\":1,\\\"t_emp_entry_info_resume_dataOverTime\\\":\\\"\\\",\\\"t_emp_entry_info_resume_dataAddr\\\":[{\\\"fileName\\\":\\\"57K232.jpg\\\",\\\"uid\\\":1633268896612,\\\"filePath\\\":\\\"https://manwei00.oss-cn-shanghai.aliyuncs.com/xlc/dev/2021/10/03/20211003214816F7G7BP89S.jpg\\\",\\\"status\\\":\\\"success\\\"}],\\\"noDel\\\":true,\\\"opt\\\":true},{\\\"t_emp_entry_info_resume_dataType\\\":4,\\\"t_emp_entry_info_resume_dataOverTime\\\":\\\"\\\",\\\"t_emp_entry_info_resume_dataAddr\\\":[{\\\"fileName\\\":\\\"57K232.jpg\\\",\\\"uid\\\":1633268907528,\\\"filePath\\\":\\\"https://manwei00.oss-cn-shanghai.aliyuncs.com/xlc/dev/2021/10/03/20211003214827EV7WH7AHT.jpg\\\",\\\"status\\\":\\\"success\\\"}],\\\"noDel\\\":true,\\\"opt\\\":true}]},\\\"fieldList\\\":[{\\\"fieldName\\\":\\\"LIST_1621909115000_94164_10037\\\",\\\"icon\\\":\\\"icon-zhage\\\",\\\"options\\\":{\\\"btnLineMax\\\":20,\\\"canDel\\\":0,\\\"defaultValue\\\":[{\\\"opt\\\":false}],\\\"width\\\":\\\"100%\\\",\\\"customClass\\\":\\\"\\\",\\\"isList\\\":false,\\\"btnPosition\\\":1,\\\"listType\\\":0,\\\"required\\\":false,\\\"requiredMessage\\\":\\\"\\\",\\\"showLabel\\\":true},\\\"style\\\":\\\"LIST\\\",\\\"rules\\\":[],\\\"model\\\":\\\"LIST_1621909115000_94164_10037\\\",\\\"type\\\":\\\"list\\\",\\\"list\\\":[{\\\"fieldName\\\":\\\"dataType\\\",\\\"column\\\":\\\"data_type\\\",\\\"icon\\\":\\\"icon-select\\\",\\\"rules\\\":[],\\\"type\\\":\\\"select\\\",\\\"tableDesc\\\":\\\"证件资料\\\",\\\"fieldCN\\\":\\\"资料类型\\\",\\\"tableName\\\":\\\"证件资料\\\",\\\"tableGroup\\\":\\\"t_emp_entry_info_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"remoteOptions\\\":[],\\\"labelWidth\\\":100,\\\"remote\\\":true,\\\"required\\\":false,\\\"showLabel\\\":true,\\\"remoteOption\\\":\\\"zlType\\\",\\\"optionsType\\\":\\\"ZLLX\\\",\\\"options\\\":[],\\\"disabled\\\":true,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"remoteFunc\\\":\\\"getItemList\\\",\\\"filterable\\\":false,\\\"clearable\\\":false,\\\"canDel\\\":1,\\\"multiple\\\":false,\\\"isPermHidden\\\":false,\\\"props\\\":{\\\"label\\\":\\\"fileName\\\",\\\"value\\\":\\\"dataType\\\"},\\\"remoteType\\\":\\\"option\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"SELECT\\\",\\\"model\\\":\\\"t_emp_entry_info_resume_dataType\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_entry_info_resume\\\"},{\\\"fieldName\\\":\\\"dataOverTime\\\",\\\"column\\\":\\\"data_over_time\\\",\\\"icon\\\":\\\"icon-date\\\",\\\"rules\\\":[],\\\"type\\\":\\\"date\\\",\\\"tableDesc\\\":\\\"证件资料\\\",\\\"fieldCN\\\":\\\"到期时间\\\",\\\"tableName\\\":\\\"证件资料\\\",\\\"tableGroup\\\":\\\"t_emp_entry_info_resume\\\",\\\"options\\\":{\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"defaultValue\\\":\\\"\\\",\\\"hasPickerOptions\\\":true,\\\"labelWidth\\\":100,\\\"type\\\":\\\"date\\\",\\\"required\\\":false,\\\"showLabel\\\":true,\\\"readonly\\\":false,\\\"disabled\\\":false,\\\"placeholder\\\":\\\"请输入\\\",\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"clearable\\\":true,\\\"endplaceholder\\\":\\\"请输入\\\",\\\"canDel\\\":1,\\\"range-separator\\\":\\\"-\\\",\\\"editable\\\":true,\\\"pickerOptions\\\":{},\\\"format\\\":\\\"yyyy-MM-dd\\\",\\\"value-format\\\":\\\"yyyy-MM-dd\\\",\\\"isPermHidden\\\":false,\\\"startplaceholder\\\":\\\"请输入\\\",\\\"patternList\\\":[],\\\"width\\\":\\\"100%\\\",\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"DATE\\\",\\\"model\\\":\\\"t_emp_entry_info_resume_dataOverTime\\\",\\\"cols\\\":12,\\\"table\\\":\\\"t_emp_entry_info_resume\\\"},{\\\"fieldName\\\":\\\"dataAddr\\\",\\\"column\\\":\\\"data_addr\\\",\\\"icon\\\":\\\"icon-shangchuan\\\",\\\"rules\\\":[],\\\"type\\\":\\\"file\\\",\\\"tableDesc\\\":\\\"证件资料\\\",\\\"fieldCN\\\":\\\"证件内容\\\",\\\"tableName\\\":\\\"证件资料\\\",\\\"tableGroup\\\":\\\"t_emp_entry_info_resume\\\",\\\"options\\\":{\\\"list-type\\\":\\\"text\\\",\\\"patternCheck\\\":false,\\\"hidden\\\":false,\\\"extraData\\\":{},\\\"defaultValue\\\":[],\\\"auto-upload\\\":true,\\\"labelWidth\\\":100,\\\"with-credentials\\\":false,\\\"required\\\":false,\\\"showLabel\\\":true,\\\"limit\\\":5,\\\"uploadType\\\":\\\"file\\\",\\\"action\\\":\\\"\\\",\\\"sizeUnit\\\":\\\"MB\\\",\\\"disabled\\\":false,\\\"drag\\\":false,\\\"isApproved\\\":true,\\\"isPerm\\\":true,\\\"show-file-list\\\":false,\\\"isLabelWidth\\\":false,\\\"isApprovedHidden\\\":false,\\\"headers\\\":{},\\\"buttonText\\\":\\\"点击上传\\\",\\\"canDel\\\":1,\\\"image-width\\\":60,\\\"showTip\\\":true,\\\"multiple\\\":true,\\\"isPermHidden\\\":false,\\\"accept\\\":\\\"\\\",\\\"patternList\\\":[],\\\"fileSize\\\":15,\\\"name\\\":\\\"file\\\",\\\"image-height\\\":60,\\\"belongTo\\\":1,\\\"customClass\\\":\\\"\\\",\\\"requiredMessage\\\":\\\"\\\"},\\\"style\\\":\\\"FILE\\\",\\\"model\\\":\\\"t_emp_entry_info_resume_dataAddr\\\",\\\"cols\\\":24,\\\"table\\\":\\\"t_emp_entry_info_resume\\\"}],\\\"cols\\\":24,\\\"fieldCN\\\":\\\"证件资料\\\"}]}\",\"formWidth\":910,\"business\":\"证件资料\",\"formModel\":\"normal\",\"formSize\":\"medium\",\"labelPosition\":\"right\",\"disabled\":false,\"span\":10,\"showGrid\":true,\"needApprove\":true,\"role\":null,\"createUser\":null,\"updateUser\":\"微海临时账户\",\"formInstanceId\":0,\"labelWidth\":140,\"createUserPhone\":null,\"targetId\":\""+resumeId+"\"}}","utf-8");
empEntryInfosCreate.setEntity(send_data);
response = client.execute(empEntryInfosCreate);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
obj = (JSONObject) JSON.parse(str);
if((Integer)obj.get("code")==0){
int instanceId = (Integer)obj.get("result");
HttpPost saveEmpEntryInfos = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/userRelate/saveEmpEntryInfos");
saveEmpEntryInfos.setHeader("sso_sys_token", ssoSysToken);
saveEmpEntryInfos.setHeader("Content-Type", "application/json;charset=UTF-8");
//saveEmpEntryInfos.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"currentType\":3,\"data\":[{\"id\":\"\",\"name\":\""+name1+"\",\"dataAddr\":\""+dataAddr1+"\",\"dataNum\":\"\",\"dataOverTime\":\"\",\"dataStatus\":1,\"dataType\":1,\"isUpdate\":1},{\"id\":\"\",\"name\":\""+name4+"\",\"dataAddr\":\""+dataAddr4+"\",\"dataNum\":\"\",\"dataOverTime\":\"\",\"dataStatus\":1,\"dataType\":4,\"isUpdate\":1}],\"removeIds\":[],\"resumeId\":\""+resumeId+"\",\"userId\":\""+userId+"\",\"userName\":\""+userName+"\",\"formId\":"+instanceId+"}","utf-8");
saveEmpEntryInfos.setEntity(send_data);
response = client.execute(saveEmpEntryInfos);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
}
//提交入职
if(personSaveSuccess&&workSaveSuccess){
//submitUserResumeInfo
HttpPost submitUserResumeInfo = new HttpPost(Constants.BASEURL + "/ums/xlc-ops-b/ums/web/userResume/submitUserResumeInfo");
submitUserResumeInfo.setHeader("sso_sys_token", ssoSysToken);
submitUserResumeInfo.setHeader("Content-Type", "application/json;charset=UTF-8");
//submitUserResumeInfo.setHeader("Cookie", cookie);
send_data = new StringEntity("{\"resumeId\":\""+resumeId+"\",\"userId\":\""+userId+"\"}","utf-8");
submitUserResumeInfo.setEntity(send_data);
response = client.execute(submitUserResumeInfo);
//打印响应正文
str = EntityUtils.toString(response.getEntity());
//System.out.println(str);
logger.info(str);
}
}
}
catch (Exception e){
logger.info("添加员工出现异常,员工姓名:" + userName);
e.printStackTrace();
}
}
}
}
参考资料
[01] Java HttpClient执行请求时配置cookie的方法及示例代码
[02] HttpClient 报错 Invalid cookie header
[03] JDBC中日期时间的处理
[04] String的substring()的用法总结
[05] 解决httpclient的NoHttpResponseException异常
2、开启人事数据切片
3、运行压测场景
4、完成测试报告
微信扫一扫关注公众号
点击链接加入群聊
https://jq.qq.com/?_wv=1027&k=5eVEhfN
软件测试学习交流QQ群号:511619105