【WMS形态转换接口】增加提示语句
This commit is contained in:
		
							parent
							
								
									8ef191d605
								
							
						
					
					
						commit
						fdbec53c88
					
				|  | @ -358,12 +358,16 @@ public class WMSAdjustBillController { | ||||||
|             JSONObject jsonObj1 = (JSONObject) itemArr.get(1); |             JSONObject jsonObj1 = (JSONObject) itemArr.get(1); | ||||||
|             //区分入库明细与出库明细 |             //区分入库明细与出库明细 | ||||||
|             String orderType0 = jsonObj0.getString("orderType");//单据类型 |             String orderType0 = jsonObj0.getString("orderType");//单据类型 | ||||||
|             if("QTRK".equals(orderType0)){ |             if (ApiResultExt.validateRequired(orderType0, "String")) { | ||||||
|                 ckObj = jsonObj0; |                 errormsg = errormsg.append(";").append("传入参数 ownerCode 为空"); | ||||||
|                 rkObj = jsonObj1; |             }else { | ||||||
|             }else{ |                 if ("QTRK".equals(orderType0)) { | ||||||
|                 ckObj = jsonObj1; |                     ckObj = jsonObj0; | ||||||
|                 rkObj = jsonObj0; |                     rkObj = jsonObj1; | ||||||
|  |                 } else { | ||||||
|  |                     ckObj = jsonObj1; | ||||||
|  |                     rkObj = jsonObj0; | ||||||
|  |                 } | ||||||
|             } |             } | ||||||
|             String ownerCode = ckObj.getString("ownerCode");//货主编码-必填 |             String ownerCode = ckObj.getString("ownerCode");//货主编码-必填 | ||||||
|             DynamicObject org = null; |             DynamicObject org = null; | ||||||
|  | @ -606,7 +610,7 @@ public class WMSAdjustBillController { | ||||||
|                 return CustomApiResult.success(wmsXmlReturn); |                 return CustomApiResult.success(wmsXmlReturn); | ||||||
|             } |             } | ||||||
|         }else{ |         }else{ | ||||||
|             response.setMessage("传入参数 items 为空"); |             response.setMessage("传入参数items为空或者items数量不对"); | ||||||
|             response.setCode("-1"); |             response.setCode("-1"); | ||||||
|             response.setFlag("failure"); |             response.setFlag("failure"); | ||||||
|             return CustomApiResult.success(wmsXmlReturn); |             return CustomApiResult.success(wmsXmlReturn); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue