【WMS形态转换接口】增加提示语句

This commit is contained in:
tanfengling@x-ri.com 2025-10-18 15:51:47 +08:00
parent 8ef191d605
commit fdbec53c88
1 changed files with 11 additions and 7 deletions

View File

@ -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);