现存量查询接口
This commit is contained in:
parent
220e5bf147
commit
be49a4f6f4
|
|
@ -1,6 +1,7 @@
|
|||
package nccloud.api.impl.ic.onhand;
|
||||
|
||||
import nc.bs.framework.common.NCLocator;
|
||||
import nc.bs.logging.Logger;
|
||||
import nc.itf.ic.onhand.OnhandResService;
|
||||
import nc.vo.ic.onhand.entity.OnhandDimVO;
|
||||
import nc.vo.ic.onhand.entity.OnhandVO;
|
||||
|
|
@ -137,7 +138,15 @@ public class APIOnhandQueryIpml implements IAPIOnhandQuery {
|
|||
selMap = TransferCodeToPKTool.doTranslateFields(jsonParamMapping, selMap);
|
||||
OnhandDataSupplement dataSupplement = new OnhandDataSupplement();
|
||||
OnhandDimVO onhandDimVO = new OnhandDimVO();
|
||||
onhandDimVO = dataSupplement.process(selMap);
|
||||
try {
|
||||
onhandDimVO = dataSupplement.process(selMap);
|
||||
} catch (Exception e) {
|
||||
Logger.error(e);
|
||||
}
|
||||
// 跳过查不出数据的物料
|
||||
if (onhandDimVO == null || onhandDimVO.getCmaterialoid() == null) {
|
||||
continue;
|
||||
}
|
||||
onhandDimVOS.add(onhandDimVO);
|
||||
}
|
||||
|
||||
|
|
@ -151,7 +160,6 @@ public class APIOnhandQueryIpml implements IAPIOnhandQuery {
|
|||
onhandDimVO = dataSupplement.process(selMap);
|
||||
onhandDimVOS.add(onhandDimVO);
|
||||
}
|
||||
|
||||
OnhandVO[] onhandVOs = NCLocator.getInstance().lookup(OnhandResService.class)
|
||||
.queryOnhandVOByDims(onhandDimVOS.toArray(new OnhandDimVO[0]));
|
||||
return onhandVOs;
|
||||
|
|
|
|||
Loading…
Reference in New Issue