同步sap
This commit is contained in:
parent
d6fa200648
commit
277a658ae9
|
|
@ -787,7 +787,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
sapParams.add(buildSapBom(Convert.convert(BomNewPbomParentVO.class, parent), pChild));
|
||||
}
|
||||
if(CollUtil.isNotEmpty(sapParams)) {
|
||||
sapOpUtilService.importPBomToSap(sapParams);
|
||||
ResultVO<Boolean> booleanResultVO = sapOpUtilService.importPBomToSap(sapParams);
|
||||
VUtils.isTure(!booleanResultVO.getState().equals(STATE.Success)).throwMessage("同步SAP失败:"+booleanResultVO.getMsg());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public class SapOpUtilService {
|
|||
return ResultVO.error(STATE.Error, eErrmsg);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
return ResultVO.error(STATE.Error, e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue