From 51b05b093fa15dd477981372f67ae7b3b2747733 Mon Sep 17 00:00:00 2001 From: wujian <14790700720@163.com> Date: 星期一, 23 九月 2024 08:49:29 +0800 Subject: [PATCH] change-3 --- jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java b/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java index c5671e2..d729ce6 100644 --- a/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java +++ b/jcdm-quartz/src/main/java/com/jcdm/quartz/task/RyTask.java @@ -95,7 +95,8 @@ List<BsOrderScheduling> bsOrderSchedulings = bsOrderSchedulingService.selectBsOrderSchedulingList(bsOrderScheduling); String status=""; String ev_meassage=""; - for (BsOrderScheduling orderScheduling : bsOrderSchedulings) { + if (CollUtil.isNotEmpty(bsOrderSchedulings)){ + BsOrderScheduling orderScheduling = bsOrderSchedulings.get(0); try { String xmlResult = ReceivingServices.getInterfaceInformationXml(url, getProductionPlanInformationXml(orderScheduling.getOrderNo(), "0010")); ev_meassage=ReceivingServices.xmlToJSON1(xmlResult); @@ -135,7 +136,8 @@ List<BsOrderScheduling> bsOrderSchedulings = bsOrderSchedulingService.selectBsOrderSchedulingList(bsOrderScheduling); String status=""; String ev_meassage=""; - for (BsOrderScheduling orderScheduling : bsOrderSchedulings) { + if (CollUtil.isNotEmpty(bsOrderSchedulings)){ + BsOrderScheduling orderScheduling = bsOrderSchedulings.get(0); try { String xmlResult = ReceivingServices.getInterfaceInformationXml(url, getProductionPlanInformationXml(orderScheduling.getOrderNo(), "0020")); ev_meassage=ReceivingServices.xmlToJSON1(xmlResult); -- Gitblit v1.9.3