测试操作

This commit is contained in:
weiyunlong 2024-09-14 17:42:21 +08:00
parent 38f438647e
commit 48d2b993ae
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,6 @@ public class TestOPPlugin extends AbstractOperationServicePlugIn {
customerHeader.put("Content-Type", "application/json"); customerHeader.put("Content-Type", "application/json");
customerHeader.put("token", oaToken); customerHeader.put("token", oaToken);
//组装请求体 //组装请求体
// DynamicObject supplier = dataEntity.getDynamicObject("supplier"); // DynamicObject supplier = dataEntity.getDynamicObject("supplier");
// if (null != supplier) { // if (null != supplier) {
@ -63,6 +62,7 @@ public class TestOPPlugin extends AbstractOperationServicePlugIn {
JSONObject customerBody = assembleBody(OAUtils.l(dataEntity.getPkValue())); JSONObject customerBody = assembleBody(OAUtils.l(dataEntity.getPkValue()));
if (null != customerBody) { if (null != customerBody) {
String customerPostjson = null; String customerPostjson = null;
String str = null;
try { try {
customerPostjson = HttpClientUtils.postjson(customerUrl, customerHeader, customerBody.toJSONString()); customerPostjson = HttpClientUtils.postjson(customerUrl, customerHeader, customerBody.toJSONString());
logger.info("ICS新增/更新OA客户租户接口返回结果\n{}", customerPostjson); logger.info("ICS新增/更新OA客户租户接口返回结果\n{}", customerPostjson);