From 7ed2ee45a1d882f33f4ea4b022d5f88cde24fb3f Mon Sep 17 00:00:00 2001 From: LSH Date: 星期四, 28 十二月 2023 12:43:54 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/kingdee/handler/PushDowmOrderSyncHandler.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 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 859e1da..dc0bc36 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 @@ -125,11 +125,11 @@ log.info("涓嬫帹response:"+response); Object IsSuccess = findValueByKey(JSON.parseObject(response), "IsSuccess"); String bool1=IsSuccess.toString(); + boolean bool = false; if (bool1.equals("true")){ ObjectMapper objectMapper = new ObjectMapper(); JsonNode rootNode = objectMapper.readTree(response); - boolean bool = rootNode.get("Result").get("ResponseStatus").get("IsSuccess").asBoolean(); - log.info("涓嬫帹bool:"+bool); + bool = rootNode.get("Result").get("ResponseStatus").get("IsSuccess").asBoolean(); //涓嬫帹瀹屾垚鍘熻鍗�4杞�6 6.涓婃姤瀹屾垚 if(bool){ @@ -139,6 +139,13 @@ orderService.update(order,new EntityWrapper<Order>().eq("order_no",order.getOrderNo())); } } + + if (!bool1.equals("true") || !bool){ + order.setSettle(7L); + order.setUpdateTime(new Date()); + orderService.update(order,new EntityWrapper<Order>().eq("order_no",order.getOrderNo())); + } + } catch (Exception e) { log.info("涓嬫帹error:"+response); log.error("fail", e); -- Gitblit v1.9.1