From 17248c9b436ddc399000a8d5f26941e13f5eec95 Mon Sep 17 00:00:00 2001
From: ytfl <ytfl@qq.com>
Date: 星期四, 17 七月 2025 08:32:02 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java b/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java
index 563b64b..4daad98 100644
--- a/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java
+++ b/src/main/java/com/zy/asrs/task/handler/OrderSyncHandler.java
@@ -194,12 +194,12 @@
List<OrderDetl> orderDetls = OrderInAndOutUtil.selectByOrderId(order.getPakinPakoutStatus$(), order.getId());
boolean complete = true;
- for (OrderDetl orderDetl : orderDetls) {
- if (orderDetl.getAnfme() > orderDetl.getQty()) {
- complete = false;
- break;
- }
- }
+// for (OrderDetl orderDetl : orderDetls) {
+// if (orderDetl.getAnfme() > orderDetl.getQty()) {
+// complete = false;
+// break;
+// }
+// }
if (complete) {
List<OrderDetl> old = orderDetlService.selectByOrderId(orderSou.getId());
if (!orderDetlService.delete(new EntityWrapper<OrderDetl>().eq("order_no", order.getOrderNo()))) {
@@ -256,18 +256,21 @@
return SUCCESS;
}
Order orderSou = orderService.selectByNo(order.getOrderNo());
+ if (orderSou == null) {
+ return FAIL.setMsg("璁㈠崟涓嶅瓨鍦紝璇疯仈绯荤鐞嗗憳");
+ }
if (!orderSou.getSettle().equals(2L)) {
return FAIL.setMsg("璁㈠崟鐘舵�佷笉姝g‘锛岃鑱旂郴绠$悊鍛�");
}
List<OrderDetl> orderDetls = OrderInAndOutUtil.selectByOrderId(order.getPakinPakoutStatus$(), order.getId());
boolean complete = true;
- for (OrderDetl orderDetl : orderDetls) {
- if (orderDetl.getAnfme() > orderDetl.getQty()) {
- complete = false;
- break;
- }
- }
+// for (OrderDetl orderDetl : orderDetls) {
+// if (orderDetl.getAnfme() > orderDetl.getQty()) {
+// complete = false;
+// break;
+// }
+// }
if (complete) {
List<OrderDetl> old = orderDetlService.selectByOrderId(orderSou.getId());
if (!orderDetlService.delete(new EntityWrapper<OrderDetl>().eq("order_no", order.getOrderNo()))) {
--
Gitblit v1.9.1