同步sap

This commit is contained in:
大米 2024-01-17 11:13:09 +08:00
parent d6fa200648
commit 277a658ae9
2 changed files with 3 additions and 2 deletions

View File

@ -787,7 +787,8 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
sapParams.add(buildSapBom(Convert.convert(BomNewPbomParentVO.class, parent), pChild)); sapParams.add(buildSapBom(Convert.convert(BomNewPbomParentVO.class, parent), pChild));
} }
if(CollUtil.isNotEmpty(sapParams)) { if(CollUtil.isNotEmpty(sapParams)) {
sapOpUtilService.importPBomToSap(sapParams); ResultVO<Boolean> booleanResultVO = sapOpUtilService.importPBomToSap(sapParams);
VUtils.isTure(!booleanResultVO.getState().equals(STATE.Success)).throwMessage("同步SAP失败"+booleanResultVO.getMsg());
} }
} }

View File

@ -64,7 +64,7 @@ public class SapOpUtilService {
return ResultVO.error(STATE.Error, eErrmsg); return ResultVO.error(STATE.Error, eErrmsg);
} }
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); return ResultVO.error(STATE.Error, e.getMessage());
} }
} }