#weaver-sxjg-01# 已开发代码初始化
parent
9dd6527240
commit
a69b692054
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,427 @@
|
||||
/**
|
||||
* @use附件重发
|
||||
* @author 刘浩
|
||||
*/
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.eteams.file.client.file.FileData;
|
||||
import com.weaver.file.ud.api.FileDownloadService;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfig;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfigResp;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service("esb_errorresend_howe")
|
||||
public class ErrorfjResendToNcc implements EsbServerlessRpcRemoteInterface {
|
||||
private static final Logger log = LoggerFactory.getLogger(ErrorfjResendToNcc.class);
|
||||
private JdbcTemplate jdbcTemplate = new JdbcTemplate(EbDbDataSourceConfig.dbDataSource());
|
||||
private JdbcTemplate jdbcTemplateresp = new JdbcTemplate(EbDbDataSourceConfigResp.dbDataSource());
|
||||
|
||||
@Autowired
|
||||
private FileDownloadService fileDownloadService;
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
Map<String, Object> finresult = new HashMap<>();
|
||||
finresult.put("code",200);
|
||||
String idtype = (String) params.get("idtype");//证件类型
|
||||
String id = (String) params.get("id");//证件号码
|
||||
String rzid = (String) params.get("rzid");//入职id
|
||||
String collectid = (String) params.get("collectid");
|
||||
if (collectid == null || collectid.length() == 0) {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg","当前人员并未进行信息采集");
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
String sql = "select ncc_pk from ft_ncczjlx where ncc_name = '"+idtype+"'";
|
||||
Map<String, Object> srrr = jdbcTemplateresp.queryForMap(sql);
|
||||
String idtypePk =(String) srrr.get("ncc_pk");
|
||||
try {
|
||||
//传附件
|
||||
log.error("howec:::::::传附件");
|
||||
JSONObject jsonObject2 = new JSONObject();
|
||||
jsonObject2.put("id",id);
|
||||
jsonObject2.put("idtype",idtypePk);
|
||||
JSONArray r11 = getFjByCollectId(collectid);
|
||||
if(r11.size() == 0) {
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
jsonObject2.put("data",r11);
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrhi/openAPI/attachment/upload";
|
||||
String rs11 = nccApiUtil.doJsonPost(url,token,jsonObject2.toJSONString());
|
||||
NccResultUtil rs = new NccResultUtil(rs11);
|
||||
if(rs.getResult()){
|
||||
sql = "update uf_rcrt_entry_manage set fjtbsfyc = '0', entry_status = '1' where id = "+rzid;
|
||||
jdbcTemplate.execute(sql);
|
||||
return WeaResult.success(finresult);
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",e.getMessage());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}
|
||||
|
||||
private JSONArray getFjByCollectId(String collectid) {
|
||||
JSONArray array1 = new JSONArray();
|
||||
String sql = "select dyxlxlzxwz,dexlxlzxwz,dsxlxlzxwz,dsixlxlzxwz,gwz,zcz,zyzgz,aqsckhz,jqmgzp,sfzzp from uf_rcrt_entry_collect where id = "+collectid;
|
||||
Map<String, Object> map = jdbcTemplate.queryForMap(sql);
|
||||
String dyxlxlzxwz = map.get("dyxlxlzxwz") == null ? "0" : (String)map.get("dyxlxlzxwz");
|
||||
String dexlxlzxwz = map.get("dexlxlzxwz") == null ? "0" : (String)map.get("dexlxlzxwz");
|
||||
String dsxlxlzxwz = map.get("dsxlxlzxwz") == null ? "0" : (String)map.get("dsxlxlzxwz");
|
||||
String dsixlxlzxwz = map.get("dsixlxlzxwz") == null ? "0" : (String)map.get("dsixlxlzxwz");
|
||||
String gwz = map.get("gwz") == null ? "0" : (String)map.get("gwz");
|
||||
String zcz = map.get("zcz") == null ? "0" : (String)map.get("zcz");
|
||||
String zyzgz = map.get("zyzgz") == null ? "0" : (String)map.get("zyzgz");
|
||||
String aqsckhz = map.get("aqsckhz") == null ? "0" : (String)map.get("aqsckhz");
|
||||
String sfzzp = map.get("sfzzp") == null ? "0" : (String)map.get("sfzzp");
|
||||
String jqmgzp = map.get("jqmgzp") == null ? "0" : (String)map.get("jqmgzp");
|
||||
List<FileData> file1 = getDxDt(dyxlxlzxwz);//第一学历学历证学位证
|
||||
List<FileData> file2 =getDxDt(dexlxlzxwz);//第二学历学历证学位证
|
||||
List<FileData> file3 = getDxDt(dsxlxlzxwz);//第三学历学历证学位证
|
||||
List<FileData> file4 = getDxDt(dsixlxlzxwz);//第四学历学历证学位证
|
||||
List<FileData> file5 = getDxDt(gwz);//岗位证
|
||||
List<FileData> file6 = getDxDt(zcz);//职称证
|
||||
List<FileData> file7 = getDxDt(zyzgz);//执业资格证
|
||||
List<FileData> file8 = getDxDt(aqsckhz);//安全生产考核证
|
||||
List<FileData> file9 = getDxDt(sfzzp);//身份证
|
||||
List<FileData> file10 = getDxDt(jqmgzp);//近期免冠照片
|
||||
if(CollectionUtil.isNotEmpty(file1)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第一学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file1) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
log.error("name::::::"+name1);
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file2)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第二学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file2) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file3)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第三学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file3) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file4)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第四学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file4) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file5)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","岗位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file5) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file6)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","职称证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file6) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file7)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","执业资格证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file7) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file8)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","安全生产考核证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file8) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file9)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","身份证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file9) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file10)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","近期免冠照片");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file10) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
return array1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public byte[] getByteData(InputStream input) {
|
||||
try {
|
||||
return org.apache.commons.io.IOUtils.toByteArray(input);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private List<FileData> getDxDt(String id) {
|
||||
List<FileData> rs = new ArrayList<>();
|
||||
try {
|
||||
if(!"0".equals(id)) {
|
||||
String ids[] = id.split(",");
|
||||
for(String s1 : ids) {
|
||||
FileData file1 = fileDownloadService.downloadFile(Long.parseLong(s1));
|
||||
if(file1.getFileObj()!=null && file1.getInputStream()!=null) {
|
||||
rs.add(file1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
log.error("获取附件错误:"+e.getMessage());
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
}
|
@ -0,0 +1,427 @@
|
||||
/**
|
||||
* @use附件重发 ---其他入职
|
||||
* @author 刘浩
|
||||
*/
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.eteams.file.client.file.FileData;
|
||||
import com.weaver.file.ud.api.FileDownloadService;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfig;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfigResp;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service("esb_errorresendqt_howe")
|
||||
public class ErrorfjResendToNccQt implements EsbServerlessRpcRemoteInterface {
|
||||
private static final Logger log = LoggerFactory.getLogger(ErrorfjResendToNccQt.class);
|
||||
private JdbcTemplate jdbcTemplate = new JdbcTemplate(EbDbDataSourceConfig.dbDataSource());
|
||||
private JdbcTemplate jdbcTemplateresp = new JdbcTemplate(EbDbDataSourceConfigResp.dbDataSource());
|
||||
|
||||
@Autowired
|
||||
private FileDownloadService fileDownloadService;
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
Map<String, Object> finresult = new HashMap<>();
|
||||
finresult.put("code",200);
|
||||
String idtype = (String) params.get("idtype");//证件类型
|
||||
String id = (String) params.get("id");//证件号码
|
||||
String rzid = (String) params.get("rzid");//入职id
|
||||
String collectid = (String) params.get("collectid");
|
||||
if (collectid == null || collectid.length() == 0) {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg","当前人员并未进行信息采集");
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
String sql = "select ncc_pk from ft_ncczjlx where ncc_name = '"+idtype+"'";
|
||||
Map<String, Object> srrr = jdbcTemplateresp.queryForMap(sql);
|
||||
String idtypePk =(String) srrr.get("ncc_pk");
|
||||
try {
|
||||
//传附件
|
||||
log.error("howec:::::::传附件");
|
||||
JSONObject jsonObject2 = new JSONObject();
|
||||
jsonObject2.put("id",id);
|
||||
jsonObject2.put("idtype",idtypePk);
|
||||
JSONArray r11 = getFjByCollectId(collectid);
|
||||
if(r11.size() == 0) {
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
jsonObject2.put("data",r11);
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrhi/openAPI/attachment/upload";
|
||||
String rs11 = nccApiUtil.doJsonPost(url,token,jsonObject2.toJSONString());
|
||||
NccResultUtil rs = new NccResultUtil(rs11);
|
||||
if(rs.getResult()){
|
||||
sql = "update uf_rcrt_entry_manage_qtry set fjtbsfyc = '0',entry_status = '1' where id = "+rzid;
|
||||
jdbcTemplate.execute(sql);
|
||||
return WeaResult.success(finresult);
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",e.getMessage());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}
|
||||
|
||||
private JSONArray getFjByCollectId(String collectid) {
|
||||
JSONArray array1 = new JSONArray();
|
||||
String sql = "select dyxlxlzxwz,dexlxlzxwz,dsxlxlzxwz,dsixlxlzxwz,gwz,zcz,zyzgz,aqsckhz,jqmgzp,sfzzp from uf_rcrt_entry_collect_qtry where id = "+collectid;
|
||||
Map<String, Object> map = jdbcTemplate.queryForMap(sql);
|
||||
String dyxlxlzxwz = map.get("dyxlxlzxwz") == null ? "0" : (String)map.get("dyxlxlzxwz");
|
||||
String dexlxlzxwz = map.get("dexlxlzxwz") == null ? "0" : (String)map.get("dexlxlzxwz");
|
||||
String dsxlxlzxwz = map.get("dsxlxlzxwz") == null ? "0" : (String)map.get("dsxlxlzxwz");
|
||||
String dsixlxlzxwz = map.get("dsixlxlzxwz") == null ? "0" : (String)map.get("dsixlxlzxwz");
|
||||
String gwz = map.get("gwz") == null ? "0" : (String)map.get("gwz");
|
||||
String zcz = map.get("zcz") == null ? "0" : (String)map.get("zcz");
|
||||
String zyzgz = map.get("zyzgz") == null ? "0" : (String)map.get("zyzgz");
|
||||
String aqsckhz = map.get("aqsckhz") == null ? "0" : (String)map.get("aqsckhz");
|
||||
String sfzzp = map.get("sfzzp") == null ? "0" : (String)map.get("sfzzp");
|
||||
String jqmgzp = map.get("jqmgzp") == null ? "0" : (String)map.get("jqmgzp");
|
||||
List<FileData> file1 = getDxDt(dyxlxlzxwz);//第一学历学历证学位证
|
||||
List<FileData> file2 =getDxDt(dexlxlzxwz);//第二学历学历证学位证
|
||||
List<FileData> file3 = getDxDt(dsxlxlzxwz);//第三学历学历证学位证
|
||||
List<FileData> file4 = getDxDt(dsixlxlzxwz);//第四学历学历证学位证
|
||||
List<FileData> file5 = getDxDt(gwz);//岗位证
|
||||
List<FileData> file6 = getDxDt(zcz);//职称证
|
||||
List<FileData> file7 = getDxDt(zyzgz);//执业资格证
|
||||
List<FileData> file8 = getDxDt(aqsckhz);//安全生产考核证
|
||||
List<FileData> file9 = getDxDt(sfzzp);//身份证
|
||||
List<FileData> file10 = getDxDt(jqmgzp);//近期免冠照片
|
||||
if(CollectionUtil.isNotEmpty(file1)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第一学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file1) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
log.error("name::::::"+name1);
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file2)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第二学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file2) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file3)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第三学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file3) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file4)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","第四学历学历证学位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file4) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file5)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","岗位证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file5) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file6)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","职称证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file6) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file7)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","执业资格证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file7) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file8)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","安全生产考核证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file8) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file9)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","身份证");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file9) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
if(CollectionUtil.isNotEmpty(file10)) {
|
||||
JSONObject rs1 = new JSONObject();
|
||||
rs1.put("file_name","近期免冠照片");
|
||||
JSONArray json1 = new JSONArray();
|
||||
for(FileData f : file10) {
|
||||
JSONObject r1 = new JSONObject();
|
||||
String filename = "";
|
||||
String name1 = f.getFileObj().getName();
|
||||
if(name1.contains(".")) {
|
||||
String names[] = name1.split("\\.");
|
||||
filename = names[names.length-1];
|
||||
}
|
||||
if(filename.length() > 0) {
|
||||
r1.put("file_type",filename.toLowerCase());
|
||||
}else{
|
||||
r1.put("file_type",f.getFileObj().getType());
|
||||
}
|
||||
log.error("howec:::::::::xxxxx21:"+f.getFileObj().getName());
|
||||
log.error("howec:::::::::xxxxx1:"+f.getFileObj().getType());
|
||||
log.error("howec:::::::::xxxxx2:"+f.getLoadUrl());
|
||||
InputStream stream1 = f.getInputStream();
|
||||
byte[] a = getByteData(stream1);
|
||||
r1.put("filebytes",a);
|
||||
json1.add(r1);
|
||||
}
|
||||
rs1.put("filebytes_array",json1);
|
||||
array1.add(rs1);
|
||||
}
|
||||
return array1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public byte[] getByteData(InputStream input) {
|
||||
try {
|
||||
return org.apache.commons.io.IOUtils.toByteArray(input);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private List<FileData> getDxDt(String id) {
|
||||
List<FileData> rs = new ArrayList<>();
|
||||
try {
|
||||
if(!"0".equals(id)) {
|
||||
String ids[] = id.split(",");
|
||||
for(String s1 : ids) {
|
||||
FileData file1 = fileDownloadService.downloadFile(Long.parseLong(s1));
|
||||
if(file1.getFileObj()!=null && file1.getInputStream()!=null) {
|
||||
rs.add(file1);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
log.error("获取附件错误:"+e.getMessage());
|
||||
}
|
||||
return rs;
|
||||
}
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfig;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfigResp;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 法人单位报道定调薪
|
||||
*/
|
||||
@Service("esb_Frcompanyapply_howe")
|
||||
public class FrCompanyApplyToNcc implements EsbServerlessRpcRemoteInterface {
|
||||
private static final Logger log = LoggerFactory.getLogger(FrCompanyApplyToNcc.class);
|
||||
private JdbcTemplate jdbcTemplateresp = new JdbcTemplate(EbDbDataSourceConfigResp.dbDataSource());
|
||||
|
||||
private JdbcTemplate jdbcTemplate = new JdbcTemplate(EbDbDataSourceConfig.dbDataSource());
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
Map<String, Object> finresult = new HashMap<>();
|
||||
finresult.put("code",200);
|
||||
String pk_dept = (String) params.get("pk_dept");
|
||||
String pk_jobgrade = (String) params.get("pk_jobgrade");
|
||||
String jobglbdef1 = (String) params.get("jobglbdef1");
|
||||
String joinworkdate = (String) params.get("joinworkdate");
|
||||
String pk_org = (String) params.get("pk_org");
|
||||
String bsid = (String)params.get("bsid");
|
||||
String username = (String)params.get("username");
|
||||
String usercode = (String)params.get("usercode");
|
||||
String applyer = (String) params.get("applyer");
|
||||
String usedate = (String) params.get("usedate");
|
||||
String zryda = (String) params.get("zryda");
|
||||
try {
|
||||
|
||||
//同步明细
|
||||
JSONObject r1 = new JSONObject();
|
||||
String state = "1";
|
||||
JSONArray array = getDataArray(bsid,username,usercode,usedate);
|
||||
if(array == null || array.size() == 0) {
|
||||
state = "0";
|
||||
}
|
||||
if(zryda.equals("是")) {
|
||||
if(array == null || array.size() == 0) {
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
state = "2";
|
||||
}
|
||||
r1.put("pk_psndoc",applyer);
|
||||
r1.put("state",state);
|
||||
r1.put("pk_dept",pk_dept);
|
||||
r1.put("pk_jobgrade",pk_jobgrade);
|
||||
r1.put("jobglbdef1",jobglbdef1);
|
||||
r1.put("joinworkdate",joinworkdate);
|
||||
r1.put("pk_org",pk_org);
|
||||
r1.put("data",array);
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrwa/customermanage/adjust/import";
|
||||
String rs11 = nccApiUtil.doJsonPost(url,token,r1.toJSONString());
|
||||
NccResultUtil rs = new NccResultUtil(rs11);
|
||||
if(rs.getResult()) {
|
||||
return WeaResult.success(finresult);
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",e.getMessage());
|
||||
log.error("howec:::::::::1:"+e.getMessage());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}
|
||||
|
||||
private JSONArray getDataArray(String bsid,String username,String usercode,String usedate) {
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
sql = "select waitem,xzxmmc,pk_wa_crt,negotiation,wa_seclv,money,memo from ft_frdw_bddtx where FORM_DATA_ID = "+dataid+" and tbddzwh = '1'";
|
||||
log.error("howec::::::::3"+sql);
|
||||
List<Map<String, Object>> rs1 = jdbcTemplateresp.queryForList(sql);
|
||||
if(CollectionUtil.isNotEmpty(rs1)) {
|
||||
for(Map<String,Object> r : rs1) {
|
||||
String xzxmmc = (String)r.get("xzxmmc");//薪资项目名称
|
||||
long negotiation = (long)r.get("negotiation");//谈判工资
|
||||
String xbdb = "";
|
||||
if(r.get("wa_seclv")!=null) {
|
||||
String id1 = (String)r.get("wa_seclv");
|
||||
if(id1.length()>0) {
|
||||
sql = "select levelname from uf_wa_prmlv where id = "+id1;
|
||||
Map<String,Object> rso= jdbcTemplate.queryForMap(sql);
|
||||
xbdb = (String)rso.get("levelname");
|
||||
}
|
||||
}
|
||||
String money = "";
|
||||
if(r.get("money")!=null) {
|
||||
money = String.valueOf(r.get("money"));//金额
|
||||
}
|
||||
String memo=(String)r.get("memo");//备注
|
||||
//通过薪资标准表id获取薪资标准名称
|
||||
String pk_wa_crt_name = "";
|
||||
if(r.get("pk_wa_crt") != null) {
|
||||
String pk_wa_crt = String.valueOf(r.get("pk_wa_crt"));//薪资标准表
|
||||
sql = "select name from uf_wa_grade where id = "+pk_wa_crt;
|
||||
Map<String,Object> rso= jdbcTemplate.queryForMap(sql);
|
||||
pk_wa_crt_name = (String)rso.get("name");
|
||||
}
|
||||
String negotiation_wage = negotiation == 0l ? "N" : "Y";
|
||||
JSONObject dataobj = new JSONObject();
|
||||
dataobj.put("negotiation_wage",negotiation_wage);
|
||||
dataobj.put("begindate",usedate);
|
||||
dataobj.put("wa_prmlv",xbdb);//薪资级别
|
||||
// dataobj.put("wa_seclv","");//薪档级别
|
||||
dataobj.put("nmoney",money);
|
||||
dataobj.put("waflag","Y");
|
||||
dataobj.put("pk_wa_item_showname",xzxmmc);
|
||||
dataobj.put("pk_wa_grd_showname",pk_wa_crt_name);
|
||||
dataobj.put("psnCode",usercode);
|
||||
dataobj.put("psnName",username);
|
||||
dataobj.put("vnote",memo);
|
||||
jsonArray.add(dataobj);
|
||||
}
|
||||
}
|
||||
return jsonArray;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
//import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
//import org.junit.Test;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 工资条查询ncc
|
||||
*/
|
||||
@Service("payslippagequery_howe")
|
||||
public class PayslipPageQuery implements EsbServerlessRpcRemoteInterface {
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// @Test
|
||||
// public void Test() throws Exception {
|
||||
// JSONObject r1 = new JSONObject();
|
||||
// JSONArray r2 = new JSONArray();
|
||||
// JSONObject r3 = new JSONObject();
|
||||
// r3.put("pk_psndoc","0001A2100000003FMWBU");
|
||||
// r2.add(r3);
|
||||
// r1.put("data",r2);
|
||||
//
|
||||
// NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
// nccApiUtil.init();
|
||||
// String token = nccApiUtil.getToken();
|
||||
// String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrtrn/openAPI/payslipSync/entry";
|
||||
// String rs11 = nccApiUtil.doJsonPost(url,token,r1.toJSONString());
|
||||
// System.out.println(rs11);
|
||||
// }
|
||||
}
|
@ -0,0 +1,210 @@
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfig;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfigResp;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 人员调动流程toncc
|
||||
*/
|
||||
@Service("esb_PersonDdToNcc_howe")
|
||||
public class PersonDdToNcc implements EsbServerlessRpcRemoteInterface {
|
||||
private static final Logger log = LoggerFactory.getLogger(PersonDdToNcc.class);
|
||||
private JdbcTemplate jdbcTemplateresp = new JdbcTemplate(EbDbDataSourceConfigResp.dbDataSource());
|
||||
private JdbcTemplate jdbcTemplate = new JdbcTemplate(EbDbDataSourceConfig.dbDataSource());
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
Map<String, Object> finresult = new HashMap<>();
|
||||
finresult.put("code",200);
|
||||
String pk_org = (String) params.get("pk_org");//所属组织(调配后的组织)
|
||||
String pk_psndoc = (String) params.get("pk_psndoc");//员工pk值
|
||||
String begindate = (String) params.get("begindate");//开始时间
|
||||
String pk_psncl = (String) params.get("pk_psncl");//人员类别
|
||||
if(pk_psncl.contains("_")) {
|
||||
pk_psncl = pk_psncl.split("_")[1];
|
||||
}
|
||||
String pk_dept = (String) params.get("pk_dept");//部门pk
|
||||
String pk_post = (String) params.get("pk_post");//岗位
|
||||
String pk_postseries = (String) params.get("pk_postseries");//岗位序列
|
||||
String pk_job = (String) params.get("pk_job");//职务
|
||||
String pk_jobgrade = (String) params.get("pk_jobgrade");//职级
|
||||
String jobglbdef1 = (String) params.get("jobglbdef1");//职级开始时间
|
||||
String trnsreason = (String) params.get("trnsreason");//异动原因
|
||||
String memo = (String) params.get("memo");//备注
|
||||
String isSyncResume = (String) params.get("isSyncResume");//同步履历
|
||||
String isSyncPartTime = (String) params.get("isSyncPartTime");//结束兼职
|
||||
isSyncResume = "1".equals(isSyncResume) ? "Y" : "N";
|
||||
isSyncPartTime = "1".equals(isSyncPartTime) ? "Y" : "N";
|
||||
String bsid = (String)params.get("bsid");
|
||||
String username = (String)params.get("username");
|
||||
String usercode = (String)params.get("usercode");
|
||||
|
||||
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
JSONObject obj1 = new JSONObject();
|
||||
obj1.put("pk_org",pk_org);
|
||||
obj1.put("pk_psndoc",pk_psndoc);
|
||||
obj1.put("begindate",begindate);
|
||||
obj1.put("pk_psncl",pk_psncl);
|
||||
obj1.put("pk_dept",pk_dept);
|
||||
obj1.put("pk_post",pk_post);
|
||||
obj1.put("pk_postseries",pk_postseries);
|
||||
obj1.put("pk_job",pk_job);
|
||||
obj1.put("pk_jobgrade",pk_jobgrade);
|
||||
obj1.put("jobglbdef1",jobglbdef1);
|
||||
obj1.put("trnsreason",trnsreason);
|
||||
obj1.put("memo",memo);
|
||||
obj1.put("isSyncResume",isSyncResume);
|
||||
obj1.put("isSyncPartTime",isSyncPartTime);
|
||||
jsonArray.add(obj1);
|
||||
jsonObject.put("data",jsonArray);
|
||||
try {
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrtrn/openAPI/transfer/sync";
|
||||
String rs11 = "";
|
||||
NccResultUtil rs = null;
|
||||
if(!judgeInterfaceStatus(bsid)) {//接口一 并没有执行成功过
|
||||
log.error("howec-3-7:接口一并没有被执行过,执行接口一");
|
||||
rs11 = nccApiUtil.doJsonPost(url,token,jsonObject.toJSONString());
|
||||
rs = new NccResultUtil(rs11);
|
||||
}else {//接口1已经执行成功过
|
||||
log.error("howec-3-7:接口一已经被成功执行过,直接执行接口二");
|
||||
rs = new NccResultUtil();
|
||||
rs.setResult(true);
|
||||
}
|
||||
if(rs.getResult()) {
|
||||
updateJkZt(bsid);//更新【接口1】成功
|
||||
//同步明细
|
||||
JSONObject r1 = new JSONObject();
|
||||
String state = "2";
|
||||
r1.put("state",state);
|
||||
r1.put("pk_org",pk_org);
|
||||
JSONArray array = getDataArray(bsid,username,usercode);
|
||||
if(array == null || array.size() == 0) {
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
r1.put("data",array);
|
||||
nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
token = nccApiUtil.getToken();
|
||||
url = nccApiUtil.getBaseUrl()+"nccloud/api/hrwa/customermanage/adjust/import";
|
||||
rs11 = nccApiUtil.doJsonPost(url,token,r1.toJSONString());
|
||||
rs = new NccResultUtil(rs11);
|
||||
if(rs.getResult()) {
|
||||
return WeaResult.success(finresult);
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",e.getMessage());
|
||||
log.error("howec:::::::::1:"+e.getMessage());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @use:更新接口状态为2
|
||||
*/
|
||||
private void updateJkZt(String bsid) {
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
//更新【接口状态字段为2---【接口一】已经执行成功】
|
||||
sql = "update hi_stapply set jkzt = '2' where id = "+dataid;
|
||||
jdbcTemplateresp.update(sql);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据标识id去判断接口状态是否为2
|
||||
*/
|
||||
private boolean judgeInterfaceStatus(String bsid) {
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
//更新【接口状态字段为2---【接口一】已经执行成功】
|
||||
sql = "select jkzt from hi_stapply where id = "+dataid;
|
||||
rs = jdbcTemplateresp.queryForMap(sql);
|
||||
String status = String.valueOf(rs.get("jkzt"));
|
||||
return ("2".equals(status));
|
||||
}
|
||||
|
||||
private JSONArray getDataArray(String bsid,String username,String usercode) {
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
sql = "select waitem,xzxmmc,pk_wa_crt,usedate,negotiation,wa_seclv,money,memo from hi_stapply_mxb2 where FORM_DATA_ID = "+dataid;
|
||||
log.error("howec::::::::3"+sql);
|
||||
List<Map<String, Object>> rs1 = jdbcTemplateresp.queryForList(sql);
|
||||
if(CollectionUtil.isNotEmpty(rs1)) {
|
||||
for(Map<String,Object> r : rs1) {
|
||||
String xzxmmc = (String)r.get("xzxmmc");//薪资项目名称
|
||||
String usedate = (String)r.get("usedate");//起薪日期
|
||||
long negotiation = (long)r.get("negotiation");//谈判工资
|
||||
String xbdb = "";
|
||||
if(r.get("wa_seclv")!=null) {
|
||||
String id1 = (String)r.get("wa_seclv");
|
||||
if(id1.length()>0) {
|
||||
sql = "select levelname from uf_wa_prmlv where id = "+id1;
|
||||
Map<String,Object> rso= jdbcTemplate.queryForMap(sql);
|
||||
xbdb = (String)rso.get("levelname");
|
||||
}
|
||||
}
|
||||
String nmoney = "";
|
||||
if(r.get("money")!=null) {
|
||||
nmoney = String.valueOf(r.get("money"));//金额
|
||||
}
|
||||
String memo=(String)r.get("memo");//备注
|
||||
//通过薪资标准表id获取薪资标准名称
|
||||
String pk_wa_crt_name = "";
|
||||
if(r.get("pk_wa_crt") != null) {
|
||||
String pk_wa_crt = String.valueOf(r.get("pk_wa_crt"));//薪资标准表
|
||||
sql = "select name from uf_wa_grade where id = "+pk_wa_crt;
|
||||
Map<String,Object> rso= jdbcTemplate.queryForMap(sql);
|
||||
pk_wa_crt_name = (String)rso.get("name");
|
||||
}
|
||||
String negotiation_wage = negotiation == 0l ? "N" : "Y";
|
||||
JSONObject dataobj = new JSONObject();
|
||||
dataobj.put("negotiation_wage",negotiation_wage);
|
||||
dataobj.put("begindate",usedate);
|
||||
dataobj.put("wa_prmlv",xbdb);//薪资级别
|
||||
// dataobj.put("wa_seclv","");//薪档级别
|
||||
dataobj.put("nmoney",nmoney);
|
||||
dataobj.put("waflag","Y");
|
||||
dataobj.put("pk_wa_item_showname",xzxmmc);
|
||||
dataobj.put("pk_wa_grd_showname",pk_wa_crt_name);
|
||||
dataobj.put("psnCode",usercode);
|
||||
dataobj.put("psnName",username);
|
||||
dataobj.put("vnote",memo);
|
||||
jsonArray.add(dataobj);
|
||||
}
|
||||
}
|
||||
return jsonArray;
|
||||
}
|
||||
}
|
@ -0,0 +1,195 @@
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfig;
|
||||
import com.weaver.seconddev.sxjg.config.EbDbDataSourceConfigResp;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 人员见习流程toncc
|
||||
*/
|
||||
@Service("esb_PersonJxToNcc_howe")
|
||||
public class PersonJxToNcc implements EsbServerlessRpcRemoteInterface {
|
||||
private static final Logger log = LoggerFactory.getLogger(PersonJxToNcc.class);
|
||||
private JdbcTemplate jdbcTemplateresp = new JdbcTemplate(EbDbDataSourceConfigResp.dbDataSource());
|
||||
private JdbcTemplate jdbcTemplate = new JdbcTemplate(EbDbDataSourceConfig.dbDataSource());
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
Map<String, Object> finresult = new HashMap<>();
|
||||
finresult.put("code",200);
|
||||
String pk_psndoc = (String) params.get("pk_psndoc");//人员主键
|
||||
String glbdef1 = (String) params.get("glbdef1");//是否见习
|
||||
String glbdef2 = (String) params.get("glbdef2");//见习期时长(月)
|
||||
String glbdef3 = (String) params.get("glbdef3");//转正日期
|
||||
String bsid = (String)params.get("bsid");
|
||||
String username = (String)params.get("username");
|
||||
String usercode = (String)params.get("usercode");
|
||||
String pk_org = (String) params.get("pk_org");
|
||||
|
||||
glbdef1 = glbdef1.equals("0") ? "N" : "Y";
|
||||
glbdef3 = formatTime(glbdef3);
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("pk_psndoc",pk_psndoc);
|
||||
jsonObject.put("glbdef1",glbdef1);
|
||||
jsonObject.put("glbdef2",glbdef2);
|
||||
jsonObject.put("glbdef3",glbdef3);
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
jsonArray.add(jsonObject);
|
||||
try {
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrhi/openAPI/userinf/internshipinf";
|
||||
String rs11 = "";
|
||||
NccResultUtil rs = null;
|
||||
if(!judgeInterfaceStatus(bsid)) {//接口一 并没有执行成功过
|
||||
log.error("howec-3-7:接口一并没有被执行过,执行接口一");
|
||||
rs11 = nccApiUtil.doJsonPost(url,token,jsonArray.toJSONString());
|
||||
rs = new NccResultUtil(rs11);
|
||||
}else {//接口1已经执行成功过
|
||||
log.error("howec-3-7:接口一已经被成功执行过,直接执行接口二");
|
||||
rs = new NccResultUtil();
|
||||
rs.setResult(true);
|
||||
}
|
||||
if(rs.getResult()) {
|
||||
updateJkZt(bsid);//更新【接口1】成功
|
||||
//同步明细
|
||||
JSONObject r1 = new JSONObject();
|
||||
String state = "2";
|
||||
r1.put("state",state);
|
||||
r1.put("pk_org",pk_org);
|
||||
JSONArray array = getDataArray(bsid,username,usercode);
|
||||
if(array == null || array.size() == 0) {
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
r1.put("data",array);
|
||||
nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
token = nccApiUtil.getToken();
|
||||
url = nccApiUtil.getBaseUrl()+"nccloud/api/hrwa/customermanage/adjust/import";
|
||||
rs11 = nccApiUtil.doJsonPost(url,token,r1.toJSONString());
|
||||
rs = new NccResultUtil(rs11);
|
||||
if(rs.getResult()) {
|
||||
return WeaResult.success(finresult);
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",e.getMessage());
|
||||
log.error("howec:::::::::1:"+e.getMessage());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @use:更新接口状态为2
|
||||
*/
|
||||
private void updateJkZt(String bsid) {
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
//更新【接口状态字段为2---【接口一】已经执行成功】
|
||||
sql = "update hi_regapply set jkzt = '2' where id = "+dataid;
|
||||
jdbcTemplateresp.update(sql);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据标识id去判断接口状态是否为2
|
||||
*/
|
||||
private boolean judgeInterfaceStatus(String bsid) {
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
//更新【接口状态字段为2---【接口一】已经执行成功】
|
||||
sql = "select jkzt from hi_regapply where id = "+dataid;
|
||||
rs = jdbcTemplateresp.queryForMap(sql);
|
||||
String status = String.valueOf(rs.get("jkzt"));
|
||||
return ("2".equals(status));
|
||||
}
|
||||
|
||||
private JSONArray getDataArray(String bsid, String username, String usercode) {
|
||||
JSONArray jsonArray = new JSONArray();
|
||||
String sql = "select dataid from wfc_form_data wfd where requestid = "+bsid;
|
||||
Map<String, Object> rs = jdbcTemplateresp.queryForMap(sql);
|
||||
long dataid = (long)rs.get("dataid");
|
||||
sql = "select waitem,xzxmmc,pk_wa_crt,usedate,negotiation,wa_seclv,money,memo from hi_regapply_mxb1 where FORM_DATA_ID = "+dataid;
|
||||
log.error("howec::::::::3"+sql);
|
||||
List<Map<String, Object>> rs1 = jdbcTemplateresp.queryForList(sql);
|
||||
if(CollectionUtil.isNotEmpty(rs1)) {
|
||||
for(Map<String,Object> r : rs1) {
|
||||
String xzxmmc = (String)r.get("xzxmmc");//薪资项目名称
|
||||
String usedate = (String)r.get("usedate");//起薪日期
|
||||
long negotiation = (long)r.get("negotiation");//谈判工资
|
||||
String xbdb = "";
|
||||
if(r.get("wa_seclv")!=null) {
|
||||
String id1 = (String)r.get("wa_seclv");
|
||||
if(id1.length()>0) {
|
||||
sql = "select levelname from uf_wa_prmlv where id = "+id1;
|
||||
Map<String,Object> rso= jdbcTemplate.queryForMap(sql);
|
||||
xbdb = (String)rso.get("levelname");
|
||||
}
|
||||
}
|
||||
String nmoney = "";
|
||||
if(r.get("money")!=null) {
|
||||
nmoney = String.valueOf(r.get("money"));//金额
|
||||
}
|
||||
String memo=(String)r.get("memo");//备注
|
||||
//通过薪资标准表id获取薪资标准名称
|
||||
String pk_wa_crt_name = "";
|
||||
if(r.get("pk_wa_crt") != null) {
|
||||
String pk_wa_crt = String.valueOf(r.get("pk_wa_crt"));//薪资标准表
|
||||
sql = "select name from uf_wa_grade where id = "+pk_wa_crt;
|
||||
Map<String,Object> rso= jdbcTemplate.queryForMap(sql);
|
||||
pk_wa_crt_name = (String)rso.get("name");
|
||||
}
|
||||
String negotiation_wage = negotiation == 0l ? "N" : "Y";
|
||||
JSONObject dataobj = new JSONObject();
|
||||
dataobj.put("negotiation_wage",negotiation_wage);
|
||||
dataobj.put("begindate",usedate);
|
||||
dataobj.put("wa_prmlv",xbdb);//薪资级别
|
||||
dataobj.put("nmoney",nmoney);
|
||||
dataobj.put("waflag","Y");
|
||||
dataobj.put("pk_wa_item_showname",xzxmmc);
|
||||
dataobj.put("pk_wa_grd_showname",pk_wa_crt_name);
|
||||
dataobj.put("psnCode",usercode);
|
||||
dataobj.put("psnName",username);
|
||||
dataobj.put("vnote",memo);
|
||||
jsonArray.add(dataobj);
|
||||
}
|
||||
}
|
||||
return jsonArray;
|
||||
}
|
||||
|
||||
private String formatTime(String s) {
|
||||
if(s.length() == 0) {
|
||||
return "";
|
||||
}
|
||||
if(s.contains("-")) {
|
||||
s = s.replaceAll("-","");
|
||||
return s;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.common.base.entity.result.WeaResult;
|
||||
import com.weaver.esb.api.rpc.EsbServerlessRpcRemoteInterface;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
import com.weaver.seconddev.sxjg.util.NccResultUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 人员离职同步ncc
|
||||
*/
|
||||
@Service("esb_PersonLzToNcc_howe")
|
||||
public class PersonLzToNcc implements EsbServerlessRpcRemoteInterface {
|
||||
private static final Logger log = LoggerFactory.getLogger(PersonLzToNcc.class);
|
||||
@Override
|
||||
public WeaResult<Map<String, Object>> execute(Map<String, Object> params) {
|
||||
Map<String, Object> finresult = new HashMap<>();
|
||||
finresult.put("code",200);
|
||||
String pk_psndoc = (String) params.get("pk_psndoc");//人员主键
|
||||
String pk_org = (String) params.get("pk_org");//所属组织(调配后的组织)
|
||||
String begindate = (String) params.get("begindate");//开始时间
|
||||
String pk_psncl = (String) params.get("pk_psncl");//人员类别
|
||||
if(pk_psncl.contains("_")) {
|
||||
pk_psncl = pk_psncl.split("_")[1];
|
||||
}
|
||||
|
||||
String pk_dept = (String) params.get("pk_dept");//部门
|
||||
String pk_post = (String) params.get("pk_post");//岗位
|
||||
String pk_postseries = (String) params.get("pk_postseries");//岗位序列
|
||||
String pk_job = (String) params.get("pk_job");//职务
|
||||
String pk_jobgrade = (String) params.get("pk_jobgrade");//职级
|
||||
String jobglbdef1 = (String) params.get("jobglbdef1");//职级开始时间
|
||||
String trnsreason = (String) params.get("trnsreason");//异动原因
|
||||
String memo = (String) params.get("memo");//备注
|
||||
JSONArray array = new JSONArray();
|
||||
JSONObject rs = new JSONObject();
|
||||
rs.put("pk_psndoc",pk_psndoc);
|
||||
rs.put("pk_org",pk_org);
|
||||
rs.put("begindate",begindate);
|
||||
rs.put("pk_psncl",pk_psncl);
|
||||
rs.put("pk_dept",pk_dept);
|
||||
rs.put("pk_post",pk_post);
|
||||
rs.put("pk_postseries",pk_postseries);
|
||||
rs.put("pk_job",pk_job);
|
||||
rs.put("pk_jobgrade",pk_jobgrade);
|
||||
rs.put("jobglbdef1",jobglbdef1);
|
||||
rs.put("trnsreason",trnsreason);
|
||||
rs.put("memo",memo);
|
||||
array.add(rs);
|
||||
JSONObject finalrs = new JSONObject();
|
||||
finalrs.put("data",array);
|
||||
try {
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrtrn/openAPI/dimissionSync/entry";
|
||||
String rs11 = nccApiUtil.doJsonPost(url,token,finalrs.toJSONString());
|
||||
NccResultUtil rs2 = new NccResultUtil(rs11);
|
||||
if(rs2.getResult()) {
|
||||
return WeaResult.success(finresult);
|
||||
}else {
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",rs2.getDescription());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
finresult.put("code",500);
|
||||
finresult.put("msg",e.getMessage());
|
||||
log.error("howec:::::::::1:"+e.getMessage());
|
||||
return WeaResult.success(finresult);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.weaver.seconddev.sxjg.esb;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.weaver.seconddev.sxjg.util.NccApiUtil;
|
||||
//import org.junit.Test;
|
||||
|
||||
public class TestDd {
|
||||
// @Test
|
||||
// public void test() throws Exception {
|
||||
// String str = "{\"data\":[{\"waflag\":\"Y\",\"begindate\":\"2024-03-18\",\"wa_prmlv\":\"\",\"pk_wa_item_showname\":\"基本工资标准\",\"pk_wa_grd_showname\":\"\",\"negotiation_wage\":\"Y\",\"vnote\":\"1\",\"nmoney\":\"1.00\",\"psnName\":\"许轲\",\"psnCode\":\"00058978\"},{\"waflag\":\"Y\",\"begindate\":\"2024-03-18\",\"wa_prmlv\":\"13&4档\",\"pk_wa_item_showname\":\"效益工资标准\",\"pk_wa_grd_showname\":\"陕建六建集团效益工资标准\",\"negotiation_wage\":\"N\",\"vnote\":\"2\",\"nmoney\":\"1304.00\",\"psnName\":\"许轲\",\"psnCode\":\"00058978\"}],\"state\":\"2\",\"pk_org\":\"0001A21000000000IR6D\"}";
|
||||
// NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
// nccApiUtil.init();
|
||||
// String token = nccApiUtil.getToken();
|
||||
// String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrwa/customermanage/adjust/import";
|
||||
// String rs11 = nccApiUtil.doJsonPost(url,token,str);
|
||||
// System.out.println(rs11);
|
||||
// }
|
||||
// @Test
|
||||
// public void test1() throws Exception {
|
||||
// JSONObject r1 = new JSONObject();
|
||||
// JSONArray r2 = new JSONArray();
|
||||
// JSONObject r3 = new JSONObject();
|
||||
// r3.put("pk_psndoc","0001A2100000006CWEBW");
|
||||
// r2.add(r3);
|
||||
// r1.put("data",r2);
|
||||
// NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
// nccApiUtil.init();
|
||||
// String token = nccApiUtil.getToken();
|
||||
// String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrtrn/openAPI/payslipSync/entry";
|
||||
// String rs11 = nccApiUtil.doJsonPost(url,token,r1.toJSONString());
|
||||
// System.out.println(rs11);
|
||||
// JSONObject rsf = JSONObject.parseObject(rs11);
|
||||
// }
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.weaver.seconddev.sxjg.service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface JoinPositionRule {
|
||||
/**
|
||||
* 陕西建工-招聘首页岗位申请规则【自定义】
|
||||
*/
|
||||
Map<String,String> JoinPositionRule(String talentId,String userId,String userName,String positionId,String resumeId);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.weaver.seconddev.sxjg.util;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
public class FileUtils{
|
||||
|
||||
/**
|
||||
* 下载文件名重新编码
|
||||
*
|
||||
* @param request 请求对象
|
||||
* @param fileName 文件名
|
||||
* @return 编码后的文件名
|
||||
*/
|
||||
public static String setFileDownloadHeader(HttpServletRequest request, String fileName)throws UnsupportedEncodingException {
|
||||
|
||||
final String agent = request.getHeader("USER-AGENT");
|
||||
String filename = fileName;
|
||||
|
||||
//根据浏览器进行文件名的替换
|
||||
if(agent.contains("MSIE")){
|
||||
//IE浏览器
|
||||
filename = URLEncoder.encode(filename,"utf-8");
|
||||
filename = filename.replace("+"," ");
|
||||
}else if(agent.contains("Firefox")){
|
||||
//火狐浏览器
|
||||
filename = new String(fileName.getBytes(),"ISO8859-1");
|
||||
}else if(agent.contains("Chrome")){
|
||||
//谷歌浏览器
|
||||
filename = URLEncoder.encode(filename,"utf-8");
|
||||
}else{
|
||||
// 其它浏览器
|
||||
filename = URLEncoder.encode(filename, "utf-8");
|
||||
}
|
||||
return filename;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,44 @@
|
||||
package com.weaver.seconddev.sxjg.util;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
|
||||
public class NccResultUtil {
|
||||
private Boolean result;
|
||||
private String description;
|
||||
|
||||
public NccResultUtil() {
|
||||
|
||||
}
|
||||
|
||||
public NccResultUtil(String rs) {
|
||||
JSONObject rs1 = JSONObject.parseObject(rs);
|
||||
if(rs1.getBoolean("success")) {
|
||||
if("1000000000".equals(rs1.getString("code"))) {
|
||||
this.setResult(true);
|
||||
}else {
|
||||
this.setResult(false);
|
||||
this.setDescription(rs1.getString("message"));
|
||||
}
|
||||
}else {
|
||||
this.setResult(false);
|
||||
this.setDescription(rs1.getString("message"));
|
||||
}
|
||||
}
|
||||
|
||||
public Boolean getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(Boolean result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
package com.weaver.seconddev.sxjg.util;
|
||||
|
||||
|
||||
import cn.hutool.json.JSONArray;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
|
||||
@Component
|
||||
public class PersondataQueryUtil {
|
||||
|
||||
private final Logger log = LoggerFactory.getLogger(PersondataQueryUtil.class);
|
||||
|
||||
public String queryNccloudPersondata(String body){
|
||||
|
||||
NccApiUtil nccApiUtil = new NccApiUtil();
|
||||
JSONObject resJsonObject = new JSONObject();
|
||||
try{
|
||||
JSONObject r3 = JSONUtil.parseObj(body);
|
||||
nccApiUtil.init();
|
||||
String token = nccApiUtil.getToken();
|
||||
log.error("nccApiUtil-token:"+token);
|
||||
|
||||
String url = nccApiUtil.getBaseUrl()+"nccloud/api/hrtrn/openAPI/persondata/query";
|
||||
String rs11 = nccApiUtil.doJsonPost(url,token,r3.toString());
|
||||
log.error("nccApiUtil-rs11:"+rs11);
|
||||
|
||||
resJsonObject = JSONUtil.parseObj(rs11);
|
||||
if("1000000000".equals(resJsonObject.getStr("code"))) {
|
||||
JSONArray dataArrayOne = resJsonObject.getJSONArray("data");
|
||||
if(dataArrayOne!=null && dataArrayOne.size() > 0) {
|
||||
for(int i = 0; i<dataArrayOne.size();i++) {
|
||||
JSONObject jsonObjectone = dataArrayOne.getJSONObject(i);
|
||||
JSONArray dataArrayTwo = jsonObjectone.getJSONArray("data");
|
||||
if(dataArrayTwo!=null && dataArrayTwo.size() >0) {
|
||||
for(int j = 0; j<dataArrayTwo.size();j++) {
|
||||
JSONObject re3 = dataArrayTwo.getJSONObject(j);
|
||||
for(Map.Entry<String, Object> re4 : re3.entrySet()){
|
||||
String key = re4.getKey();
|
||||
JSONObject re5 = re3.getJSONObject(key);
|
||||
re5.put("isExamine",false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
nccApiUtil = new NccApiUtil();
|
||||
nccApiUtil.init();
|
||||
token = nccApiUtil.getToken();
|
||||
log.error("approveDetailVO-token:"+token);
|
||||
url = nccApiUtil.getBaseUrl()+"nccloud/api/hrtrn/openAPI/psninfoedit/approveDetailVO";
|
||||
rs11 = nccApiUtil.doJsonPost(url,token,r3.toString());
|
||||
|
||||
log.error("approveDetailVO-rs11:"+rs11);
|
||||
|
||||
JSONObject resJsonObject2= JSONUtil.parseObj(rs11);
|
||||
if("1000000000".equals(resJsonObject2.getStr("code"))) {
|
||||
JSONObject dataObj2 = resJsonObject2.getJSONObject("data");
|
||||
if(dataObj2.containsKey("data")) {
|
||||
JSONObject dataObj21 = dataObj2.getJSONObject("data");
|
||||
//如果是基本信息查询
|
||||
if("bd_psndoc".equals(r3.getStr("tableCode"))) {
|
||||
JSONArray afterdata = null;
|
||||
if(dataObj21 != null && dataObj21.containsKey("afterData") && dataObj21.get("afterData") != null) {
|
||||
afterdata = dataObj21.getJSONArray("afterData");
|
||||
}
|
||||
if(afterdata != null && afterdata.size() > 0) {
|
||||
dataArrayOne = resJsonObject.getJSONArray("data");
|
||||
if(dataArrayOne!=null && dataArrayOne.size() > 0) {
|
||||
for(int i = 0; i<dataArrayOne.size();i++) {
|
||||
JSONObject jsonObjectone = dataArrayOne.getJSONObject(i);
|
||||
JSONArray dataArrayTwo = jsonObjectone.getJSONArray("data");
|
||||
if(dataArrayTwo!=null && dataArrayTwo.size() >0) {
|
||||
for(int j = 0; j<dataArrayTwo.size();j++) {
|
||||
JSONObject re3 = dataArrayTwo.getJSONObject(j);
|
||||
for(Map.Entry<String, Object> re4 : re3.entrySet()){
|
||||
String key = re4.getKey();
|
||||
JSONObject re5 = re3.getJSONObject(key);
|
||||
for(int x = 0;x < afterdata.size();x ++) {
|
||||
JSONObject afertObj = afterdata.getJSONObject(x);
|
||||
String columnValue = afertObj.getStr("columnValue");
|
||||
String columnKey = afertObj.getStr("columnKey");
|
||||
if(columnKey!=null && columnKey.length()>0 && columnKey.equals(re5.getStr("key"))) {
|
||||
re5.put("isExamine",true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}else {//子级信息查询
|
||||
if(dataObj21.containsKey("changeTypeMap")){
|
||||
JSONObject changeData= dataObj21.getJSONObject("changeTypeMap");
|
||||
List<String> shhs = new ArrayList<>();
|
||||
for(String key : changeData.keySet()) {
|
||||
shhs.add(key);
|
||||
}
|
||||
if(shhs!=null && shhs.size()>0) {
|
||||
if(dataArrayOne!=null && dataArrayOne.size() > 0) {
|
||||
for(int i = 0; i<dataArrayOne.size();i++) {
|
||||
JSONObject jsonObjectone = dataArrayOne.getJSONObject(i);
|
||||
String rowDataPk = jsonObjectone.getStr("rowDataPk");
|
||||
if(shhs.contains(rowDataPk)) {
|
||||
JSONArray dataArrayTwo = jsonObjectone.getJSONArray("data");
|
||||
if(dataArrayTwo!=null && dataArrayTwo.size() >0) {
|
||||
for(int j = 0; j<dataArrayTwo.size();j++) {
|
||||
JSONObject re3 = dataArrayTwo.getJSONObject(j);
|
||||
for(Map.Entry<String, Object> re4 : re3.entrySet()){
|
||||
String key = re4.getKey();
|
||||
JSONObject re5 = re3.getJSONObject(key);
|
||||
re5.put("isExamine",true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
log.error("queryNccloudPersondata-e:"+e);
|
||||
}
|
||||
|
||||
return resJsonObject.toString();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.weaver.seconddev.sxjg.util;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ProvinceCityNode {
|
||||
public String parentid;
|
||||
public String id;
|
||||
public String value;
|
||||
public String label;
|
||||
public boolean disabled = false;
|
||||
public boolean isLeaf = false;
|
||||
public boolean loading = false;
|
||||
public ProvinceCityNode(String id,String parentid,String value, String label) {
|
||||
this.value = value;
|
||||
this.label = label;
|
||||
this.id = id;
|
||||
this.parentid = parentid;
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.weaver.seconddev.sxjg.util;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Base64;
|
||||
|
||||
import cn.com.infosec.netsign.agent.util.IOUtils;
|
||||
import com.google.gson.Gson;
|
||||
public class Test {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
System.out.println(1);
|
||||
InputStream inputStream = getInputStreamByUrl("http://10.73.4.5:20600/papi/file/local/download/897827c9a77c4199b629cc1d7b848b52?tenantKey=tl2qvzz346&response-expires=V2VkIERlYyAyNyAxNDo0NzozOSBDU1QgMjAyMw==&response-content-disposition=YXR0YWNobWVudDtmaWxlbmFtZT0i5paw5bu6IOaWh-acrOaWh-ahoyAoNCkudHh0Ig==&download=MA==");
|
||||
System.out.println("2222222222222222222222222222");
|
||||
byte[] fileBytesArray = null;
|
||||
fileBytesArray = readBytesFromInputStream(inputStream);
|
||||
System.out.println("3333333333333");
|
||||
String jsonResult = convertToJson("filename", fileBytesArray);
|
||||
System.out.println(jsonResult);
|
||||
}
|
||||
|
||||
public static InputStream getInputStreamByUrl(String strUrl) {
|
||||
System.out.println("11111111");
|
||||
HttpURLConnection conn = null;
|
||||
try {
|
||||
URL url = new URL(strUrl);
|
||||
conn = (HttpURLConnection) url.openConnection();
|
||||
conn.setRequestMethod("GET");
|
||||
conn.setConnectTimeout(20 * 1000);
|
||||
final ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||
IOUtils.copy(conn.getInputStream(), output);
|
||||
return new ByteArrayInputStream(output.toByteArray());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
if (conn != null) {
|
||||
conn.disconnect();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static byte[] readBytesFromInputStream(InputStream input) {
|
||||
System.out.println("111111111111111");
|
||||
try {
|
||||
System.out.println("2222222222222222");
|
||||
return org.apache.commons.io.IOUtils.toByteArray(input);
|
||||
} catch (IOException e) {
|
||||
System.out.println("2222222");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static String convertToJson(String fileName, byte[] fileBytesArray) {
|
||||
Gson gson = new Gson();
|
||||
String jsonResult = gson.toJson(new FileData(fileName, fileBytesArray));
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
static class FileData {
|
||||
private String file_name;
|
||||
private byte[] filebytes_array;
|
||||
|
||||
public FileData(String file_name, byte[] filebytes_array) {
|
||||
this.file_name = file_name;
|
||||
this.filebytes_array = filebytes_array;
|
||||
}
|
||||
|
||||
public String getFile_name() {
|
||||
return file_name;
|
||||
}
|
||||
|
||||
public void setFile_name(String file_name) {
|
||||
this.file_name = file_name;
|
||||
}
|
||||
|
||||
public byte[] getFilebytes_array() {
|
||||
return filebytes_array;
|
||||
}
|
||||
|
||||
public void setFilebytes_array(byte[] filebytes_array) {
|
||||
this.filebytes_array = filebytes_array;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
#测试
|
||||
sxjgncc.url=http://10.72.2.28:7000/
|
||||
sxjgncc.biz_center=NCC0826
|
||||
sxjgncc.client_id=webfw
|
||||
sxjgncc.client_secret=0169ae6c2ac54591b324
|
||||
sxjgncc.public_key=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnzizIsSZFLi/Z14ah/GztvQgRpdxAi5+u8dgXfXFQuOgC0r1a0d3Mol6BOYqTDqE7zHGl45iglRasZ0i87/DJ5PaDq5aP0hA5oTLaOSWg2Ux94sVPzBP3xd4Vpij57hIg2t11Uku8VqhuHPM4DY1nDZEzfJwIDSpkcrlLGQKoQaCVduZzNm6uZR0Q0EcGjhi3EeT2wgSVsxzaw3UHUO9cKh4Bf9Yb1cy+yvRj8SyOveCqtYbBWzuxXERESPKS6ftTbCqh7dkx2CqXsoPCo5a0Yobikz/6Bdw3qk0sEU4A04Y4hYZPslNzzqzY7snn5KsQRd2vcYKtsyOxTMuM5HoAQIDAQAB
|
||||
sxjgncc.b1=uf_rcrt_entry1098
|
||||
sxjgncc.b2=uf_rcrt_entry1154
|
||||
sxjgncc.b3=uf_rcrt_entry1252
|
||||
sxjgncc.b4=uf_rcrt_entry1297
|
||||
sxjgncc.b5=uf_rcrt_entry1354
|
||||
sxjgncc.b6=uf_rcrt_entry1404
|
||||
sxjgncc.b7=uf_rcrt_entry1452
|
||||
sxjgncc.b8=uf_rcrt_entry1498
|
||||
sxjgncc.b9=uf_rcrt_entry1561
|
||||
|
||||
sxjgncc.b10=uf_rcrt_entry1615
|
||||
sxjgncc.b11=uf_rcrt_entry1662
|
||||
#子企业内部调配报到联系单定薪表
|
||||
sxjgncc.b12=ft_zqynbdpbdl6098
|
||||
#职工报到联系单-总部定薪表
|
||||
sxjgncc.b13=ft_staff_bdlxd_t1
|
||||
#职工内部调配联系单-总部定薪表
|
||||
sxjgncc.b14=ft_staff_nbbdlxd_t1
|
||||
#生产
|
||||
#sxjgncc.url=http://10.71.2.46:6007/
|
||||
#sxjgncc.biz_center=NCC0826
|
||||
#sxjgncc.client_id=webfw
|
||||
#sxjgncc.client_secret=0169ae6c2ac54591b324
|
||||
#sxjgncc.public_key=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnzizIsSZFLi/Z14ah/GztvQgRpdxAi5+u8dgXfXFQuOgC0r1a0d3Mol6BOYqTDqE7zHGl45iglRasZ0i87/DJ5PaDq5aP0hA5oTLaOSWg2Ux94sVPzBP3xd4Vpij57hIg2t11Uku8VqhuHPM4DY1nDZEzfJwIDSpkcrlLGQKoQaCVduZzNm6uZR0Q0EcGjhi3EeT2wgSVsxzaw3UHUO9cKh4Bf9Yb1cy+yvRj8SyOveCqtYbBWzuxXERESPKS6ftTbCqh7dkx2CqXsoPCo5a0Yobikz/6Bdw3qk0sEU4A04Y4hYZPslNzzqzY7snn5KsQRd2vcYKtsyOxTMuM5HoAQIDAQAB
|
||||
#sxjgncc.b1=uf_rcrt_entry0210
|
||||
#sxjgncc.b2=uf_rcrt_entry0277
|
||||
#sxjgncc.b3=uf_rcrt_entry0430
|
||||
#sxjgncc.b4=uf_rcrt_entry0520
|
||||
#sxjgncc.b5=uf_rcrt_entry0594
|
||||
#sxjgncc.b6=uf_rcrt_entry0672
|
||||
#sxjgncc.b7=uf_rcrt_entry0745
|
||||
#sxjgncc.b8=uf_rcrt_entry0814
|
||||
#sxjgncc.b9=uf_rcrt_entry0880
|
||||
#sxjgncc.b10=uf_rcrt_entry0948
|
||||
#sxjgncc.b11=uf_rcrt_entry1024
|
||||
##子企业内部调配报到联系单定薪表
|
||||
#sxjgncc.b12=ft_zqynbdp_dtxb
|
||||
##职工报到联系单-总部定薪表
|
||||
#sxjgncc.b13=ft_staff_bdlxd_t1
|
||||
##职工内部调配联系单-总部定薪表
|
||||
#sxjgncc.b14=ft_staff_nbbdlxd_t1
|
Loading…
Reference in New Issue