From fdbec53c888bc90e06a709879c59cebf98e58330 Mon Sep 17 00:00:00 2001 From: "tanfengling@x-ri.com" <123456> Date: Sat, 18 Oct 2025 15:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90WMS=E5=BD=A2=E6=80=81=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E6=8E=A5=E5=8F=A3=E3=80=91=E5=A2=9E=E5=8A=A0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/WMSAdjustBillController.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lc123/cloud/app/api/controller/WMSAdjustBillController.java b/lc123/cloud/app/api/controller/WMSAdjustBillController.java index 0f93abc..3ba0f3a 100644 --- a/lc123/cloud/app/api/controller/WMSAdjustBillController.java +++ b/lc123/cloud/app/api/controller/WMSAdjustBillController.java @@ -358,12 +358,16 @@ public class WMSAdjustBillController { JSONObject jsonObj1 = (JSONObject) itemArr.get(1); //区分入库明细与出库明细 String orderType0 = jsonObj0.getString("orderType");//单据类型 - if("QTRK".equals(orderType0)){ - ckObj = jsonObj0; - rkObj = jsonObj1; - }else{ - ckObj = jsonObj1; - rkObj = jsonObj0; + if (ApiResultExt.validateRequired(orderType0, "String")) { + errormsg = errormsg.append(";").append("传入参数 ownerCode 为空"); + }else { + if ("QTRK".equals(orderType0)) { + ckObj = jsonObj0; + rkObj = jsonObj1; + } else { + ckObj = jsonObj1; + rkObj = jsonObj0; + } } String ownerCode = ckObj.getString("ownerCode");//货主编码-必填 DynamicObject org = null; @@ -606,7 +610,7 @@ public class WMSAdjustBillController { return CustomApiResult.success(wmsXmlReturn); } }else{ - response.setMessage("传入参数 items 为空"); + response.setMessage("传入参数items为空或者items数量不对"); response.setCode("-1"); response.setFlag("failure"); return CustomApiResult.success(wmsXmlReturn);