From 1db9dc8d1522f21092300ab01585ecc52060147d Mon Sep 17 00:00:00 2001 From: xinfengYin <1776570748@qq.com> Date: Mon, 3 Mar 2025 15:34:02 +0800 Subject: [PATCH] =?UTF-8?q?#xinfengYin-17#=20GY103-=E4=BE=9B=E5=BA=94?= =?UTF-8?q?=E5=95=86=E5=BC=95=E5=85=A5=E3=80=81=E8=BD=AC=E6=AD=A3=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/action/OaSrmVendorCheckAction.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/OaSrmVendorCheckAction.java b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/OaSrmVendorCheckAction.java index 2f393ee..c1d72bf 100644 --- a/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/OaSrmVendorCheckAction.java +++ b/secondev-history-action/src/main/java/com/weaver/seconddev/interfaces/workflow/action/OaSrmVendorCheckAction.java @@ -249,6 +249,7 @@ public class OaSrmVendorCheckAction extends BaseBean implements Action, EsbServe boolean b = rs.executeSql(sql, poolname); logger_a864d799.error(String.valueOf("b--" + b)); dtcount = rs.getCounts(); + logger_a864d799.error(String.valueOf("dtcount+++++" + dtcount)); if (dtcount > 0) { int index = 0; OaSrmVendorPropmtionServiceServiceStub.OaInItem[] items = new OaSrmVendorPropmtionServiceServiceStub.OaInItem[dtcount]; @@ -276,10 +277,14 @@ public class OaSrmVendorCheckAction extends BaseBean implements Action, EsbServe } DetailTable[] detailtable = requestinfo.getDetailTableInfo().getDetailTable(); // 指定明细表 - DetailTable dtq = detailtable[1]; + DetailTable dtq = null; + if(dtq != null){ + dtq = detailtable[1]; + } // 当前明细表的所有数据,按行存储 - Row[] sq = dtq.getRow(); - if (sq.length > 0 && "S".equals(state)) { + Row[] sq = null; + if(dtq != null){sq = dtq.getRow();} + if (sq != null && sq.length > 0 && "S".equals(state)) { Set set = new HashSet(); Set wlhset = new HashSet(); List list = new ArrayList(); @@ -293,7 +298,7 @@ public class OaSrmVendorCheckAction extends BaseBean implements Action, EsbServe logger_a864d799.error(String.valueOf("b--" + b)); dtcount = rs.getCounts(); logger_a864d799.error(String.valueOf(requestid + " dt2count:" + dtcount)); - if (sq.length <= 300) { + if ( sq != null && sq.length <= 300) { SRM_OA_VENMATEXT_RESULT param = new SRM_OA_VENMATEXT_RESULT(); VenMatExtResultIn paramInfo = new VenMatExtResultIn(); VenMatExtResultItemIn[] item = new VenMatExtResultItemIn[dtcount];