|
|
@@ -715,7 +715,7 @@ public class MESServiceImpl implements MESService {
|
|
|
}
|
|
|
Object outwhcode = baseDao.getFieldDataByCondition("customtabledetail left join customtable on cd_ctid=ct_id", "cd_varchar50_3", "ct_statuscode='AUDITED' and ct_caller='MESWarehouse' and cd_varchar50_1='" + whcode + "'");
|
|
|
jsonObject.put("outwhcode",outwhcode);
|
|
|
- String whcode1 = StringUtil.nvl(jsonObject.getString("outwhcode"), "");
|
|
|
+ String whcode1 = StringUtil.nvl(jsonObject.getString("inwhcode"), "");
|
|
|
if ("".equals(whcode1)){
|
|
|
return ApiResponse.failRsp("10083",request.getHeader("RequestId"),"拨入仓库不能为空!");
|
|
|
}
|
|
|
@@ -726,7 +726,7 @@ public class MESServiceImpl implements MESService {
|
|
|
Object inwhcode = baseDao.getFieldDataByCondition("customtabledetail left join customtable on cd_ctid=ct_id", "cd_varchar50_3", "ct_statuscode='AUDITED' and ct_caller='MESWarehouse' and cd_varchar50_1='" + whcode1 + "'");
|
|
|
jsonObject.put("inwhcode",inwhcode);
|
|
|
}
|
|
|
- String msg = baseDao.callProcedure("USER_CHECKOUTSTOCK", new Object[]{"", jsonArray});
|
|
|
+ String msg = baseDao.callProcedure("USER_CHECKOUTSTOCK", new Object[] {null,JSON.toJSONString(jsonArray)});
|
|
|
if (msg != null && !msg.trim().equals("")){
|
|
|
return ApiResponse.failRsp("10085",request.getHeader("RequestId"),msg);
|
|
|
}
|