删改单推送修复

This commit is contained in:
zhaoqing
2026-05-29 19:37:27 +08:00
parent b03e00cb3f
commit 2c73a0d727
@@ -346,11 +346,15 @@ public class BusinessDocumentOrderApplicationService {
item.put("appMan", businessDocumentOrderDTO.getReviseApplyBy());
item.put("appMess", businessDocumentOrderDTO.getReviseApplyReason());
List<Map<String,String>> bodyList = new ArrayList<>();
bodyList.add(item);
// 2. 记录日志
GwLog gwLog = new GwLog();
gwLog.setType("删改单申请");
gwLog.setBusinessId(Long.valueOf(businessDocumentOrderDTO.getId()));
gwLog.setRequestBody(JSONObject.toJSONString(item));
gwLog.setRequestBody(JSONObject.toJSONString(bodyList));
gwLog.setResponseBody("");
gwLog.setStatus(1);
gwLog.setSendTime(new Date());
@@ -367,7 +371,7 @@ public class BusinessDocumentOrderApplicationService {
try {
CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(PUSH_API_URL);
StringEntity postingString = new StringEntity(JSONObject.toJSONString(item), "UTF-8");
StringEntity postingString = new StringEntity(JSONObject.toJSONString(bodyList), "UTF-8");
httpPost.setEntity(postingString);
httpPost.setHeader("Content-type", "application/json");