|
|
@@ -486,6 +486,8 @@ public class MESServiceImpl implements MESService {
|
|
|
String itemNo = StringUtil.nvl(object.get("itemNo"), "");
|
|
|
if ("".equals(itemNo)){
|
|
|
return ApiResponse.failRsp("10024",requestId,"物料不能为空!");
|
|
|
+ }else if (!baseDao.checkIf("product","pr_code='"+itemNo+"'")){
|
|
|
+ return ApiResponse.failRsp("10024",requestId,"物料"+itemNo+"等在ERP不存在,请核对!");
|
|
|
}
|
|
|
double qty = Double.parseDouble(StringUtil.nvl(object.get("qty"), "0"));
|
|
|
if (qty==0){
|