From ff16de1adee9ca47aae010438728993800339cbb Mon Sep 17 00:00:00 2001 From: LSH Date: 星期一, 25 十二月 2023 13:24:21 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/kingdee/handler/PushDowmOrderSyncHandler.java | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/kingdee/handler/PushDowmOrderSyncHandler.java b/src/main/java/com/zy/asrs/task/kingdee/handler/PushDowmOrderSyncHandler.java index 7b7092d..7bc72b9 100644 --- a/src/main/java/com/zy/asrs/task/kingdee/handler/PushDowmOrderSyncHandler.java +++ b/src/main/java/com/zy/asrs/task/kingdee/handler/PushDowmOrderSyncHandler.java @@ -47,6 +47,9 @@ @Transactional public ReturnT<String> start(Order order) { + String orderNo = order.getOrderNo(); + String[] split = orderNo.split("-"); + String orderNoS = split[0]; //鐧诲綍閲戣澏r ReturnT<String> start = loginAuthenticationHandler.start(); DocType docType = docTypeService.selectById(order.getDocType()); @@ -57,11 +60,14 @@ //鏉′欢鎷兼帴 JSONObject dataJsonObject = new JSONObject(); - dataJsonObject.put("Numbers",order.getOrderNo()); + dataJsonObject.put("Numbers",orderNoS); + dataJsonObject.put("EntryIds",""); + dataJsonObject.put("RuleId",kingDeeUtilType.ruleId); + dataJsonObject.put("TargetFormId",kingDeeUtilType.correspondingFormId); JSONObject jsonObject = new JSONObject(); - jsonObject.put("data", dataJsonObject); jsonObject.put("FormId",kingDeeUtilType.formId); + jsonObject.put("data", dataJsonObject); String add = jsonObject.toJSONString(); //涓嬫帹 String response = ""; @@ -80,7 +86,7 @@ JSONObject data = JSON.parseObject(response); Object IsSuccess = findValueByKey(JSON.parseObject(response), "IsSuccess"); String bool=IsSuccess.toString(); - //瀹℃牳瀹屾垚鍘熻鍗�4杞�6 6.涓婃姤瀹屾垚 + //涓嬫帹瀹屾垚鍘熻鍗�4杞�6 6.涓婃姤瀹屾垚 if(bool.equals("true")){ success = true; order.setSettle(6L); @@ -94,7 +100,7 @@ try { // 淇濆瓨鎺ュ彛鏃ュ織 apiLogService.save( - "瀹℃牳", + "涓嬫帹", URL+ pushDowmAudit, null, "127.0.0.1", -- Gitblit v1.9.1