请购增加校验
This commit is contained in:
parent
2b1f68640a
commit
ed040e5c9f
|
|
@ -99,18 +99,19 @@ public class PickmToBuyingreqAction implements ICommonAction {
|
||||||
|
|
||||||
IPraybillMaintain maintain= ServiceLocator.find(IPraybillMaintain.class);
|
IPraybillMaintain maintain= ServiceLocator.find(IPraybillMaintain.class);
|
||||||
PraybillVO[] insertVos = maintain.insert(prayVOs);
|
PraybillVO[] insertVos = maintain.insert(prayVOs);
|
||||||
IPraybillApprove approve= ServiceLocator.find(IPraybillApprove.class);
|
|
||||||
Object res= PfServiceScmUtil.processBatch("APPROVE", "20", insertVos, null, null);
|
|
||||||
|
|
||||||
Map<String, Object> returnMap = new HashMap<>();
|
|
||||||
returnMap.put("data", res);
|
|
||||||
returnMap.put("success", true);
|
|
||||||
if(!pk.isEmpty()){
|
if(!pk.isEmpty()){
|
||||||
updetaPmo(pk);
|
updetaPmo(pk);
|
||||||
}
|
}
|
||||||
if(!updateList.isEmpty()){
|
if(!updateList.isEmpty()){
|
||||||
updetaPmoNum(updateList);
|
updetaPmoNum(updateList);
|
||||||
}
|
}
|
||||||
|
IPraybillApprove approve= ServiceLocator.find(IPraybillApprove.class);
|
||||||
|
Object res= PfServiceScmUtil.processBatch("APPROVE", "20", insertVos, null, null);
|
||||||
|
|
||||||
|
Map<String, Object> returnMap = new HashMap<>();
|
||||||
|
returnMap.put("data", res);
|
||||||
|
returnMap.put("success", true);
|
||||||
|
|
||||||
return returnMap;
|
return returnMap;
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
try {
|
try {
|
||||||
|
|
@ -229,6 +230,13 @@ public class PickmToBuyingreqAction implements ICommonAction {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String mrlstocksql = " select def18 from bd_materialstock where pk_material='" + child.getCbmaterialvid() + "' and pk_org='"+child.getPk_org()+"' and dr=0";
|
||||||
|
|
||||||
|
String def18 = (String) dao.executeQuery(mrlstocksql, new ColumnProcessor());
|
||||||
|
if(null != def18 && def18.equals("Y") ){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 物料类型过滤逻辑:仅当不是来自cpickmbids时才执行过滤
|
// 物料类型过滤逻辑:仅当不是来自cpickmbids时才执行过滤
|
||||||
String materalType = child.getVbdef14();
|
String materalType = child.getVbdef14();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue