#weaver-sxjg-05# 增加ebs接口表示备注
parent
e37dcca978
commit
6739fd8b31
@ -1,35 +0,0 @@
|
|||||||
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);
|
|
||||||
// }
|
|
||||||
}
|
|
Loading…
Reference in New Issue