OA接口完善

master
Yangwl 1 year ago
parent 272b52b9e1
commit 8a97240e84

@ -397,6 +397,7 @@ public class OpenServiceImpl implements OpenService {
String requestName = paramMap.get("requestName").toString();
String workflowId = paramMap.get("workflowId").toString();
String mainObject = paramMap.get("mainObject").toString();
String details = paramMap.get("details").toString();
// Building the postData string using StringBuilder
StringBuilder postDataBuilder = new StringBuilder();
@ -406,7 +407,7 @@ public class OpenServiceImpl implements OpenService {
.append("&workflowId=").append(workflowId)
.append("&mainObject=").append(URLEncoder.encode(mainObject, StandardCharsets.UTF_8.toString()));
if (Constants.WORKFLOWID_ZL0020.equals(workflowId)) {
postDataBuilder.append("&details=").append(URLEncoder.encode(mainObject, StandardCharsets.UTF_8.toString()));
postDataBuilder.append("&details=").append(URLEncoder.encode(details, StandardCharsets.UTF_8.toString()));
}
String postData = postDataBuilder.toString();
String result = HttpUtils.sendPostOA(oa_url, postData);

Loading…
Cancel
Save