删改单推送修复
This commit is contained in:
+6
-2
@@ -346,11 +346,15 @@ public class BusinessDocumentOrderApplicationService {
|
|||||||
item.put("appMan", businessDocumentOrderDTO.getReviseApplyBy());
|
item.put("appMan", businessDocumentOrderDTO.getReviseApplyBy());
|
||||||
item.put("appMess", businessDocumentOrderDTO.getReviseApplyReason());
|
item.put("appMess", businessDocumentOrderDTO.getReviseApplyReason());
|
||||||
|
|
||||||
|
List<Map<String,String>> bodyList = new ArrayList<>();
|
||||||
|
bodyList.add(item);
|
||||||
|
|
||||||
|
|
||||||
// 2. 记录日志
|
// 2. 记录日志
|
||||||
GwLog gwLog = new GwLog();
|
GwLog gwLog = new GwLog();
|
||||||
gwLog.setType("删改单申请");
|
gwLog.setType("删改单申请");
|
||||||
gwLog.setBusinessId(Long.valueOf(businessDocumentOrderDTO.getId()));
|
gwLog.setBusinessId(Long.valueOf(businessDocumentOrderDTO.getId()));
|
||||||
gwLog.setRequestBody(JSONObject.toJSONString(item));
|
gwLog.setRequestBody(JSONObject.toJSONString(bodyList));
|
||||||
gwLog.setResponseBody("");
|
gwLog.setResponseBody("");
|
||||||
gwLog.setStatus(1);
|
gwLog.setStatus(1);
|
||||||
gwLog.setSendTime(new Date());
|
gwLog.setSendTime(new Date());
|
||||||
@@ -367,7 +371,7 @@ public class BusinessDocumentOrderApplicationService {
|
|||||||
try {
|
try {
|
||||||
CloseableHttpClient httpClient = HttpClients.createDefault();
|
CloseableHttpClient httpClient = HttpClients.createDefault();
|
||||||
HttpPost httpPost = new HttpPost(PUSH_API_URL);
|
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.setEntity(postingString);
|
||||||
|
|
||||||
httpPost.setHeader("Content-type", "application/json");
|
httpPost.setHeader("Content-type", "application/json");
|
||||||
|
|||||||
Reference in New Issue
Block a user