From dd7e8e19cf99d0dc85b64b10c192cf3e4c3dafc9 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 08 十二月 2023 13:22:49 +0800
Subject: [PATCH] # 显示器
---
src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index dfa916f..20a1160 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -2851,17 +2851,15 @@
if (detl.getSuppCode() != null) {
suppCode = detl.getSuppCode();
}
- if (isJson(orderNo)) {
+ try {
JSONArray orders = JSON.parseArray(orderNo);
for (Object order : orders) {
JSONObject order1 = (JSONObject) order;
ledCommand.getMatDtos().add(new MatDto(detl.getMatnr(), detl.getMaktx(), (Double) order1.get("anfme"), (locDetl.getAnfme() - detl.getAnfme()), detl.getSpecs(), suppCode,(String) order1.get("orderNo")));
}
- } else {
+ } catch (Exception e) {
ledCommand.getMatDtos().add(new MatDto(detl.getMatnr(), detl.getMaktx(), detl.getAnfme(), (locDetl.getAnfme() - detl.getAnfme()), detl.getSpecs(), suppCode,detl.getOrderNo()));
}
-
-
}
});
}
--
Gitblit v1.9.1