|
|
|
@ -64,10 +64,11 @@ public class IntegrationLogServiceImpl extends ServiceImpl<IntegrationLogMapper,
|
|
|
|
|
struOut.setMsg("");
|
|
|
|
|
outs[0] = struOut;
|
|
|
|
|
TableOfZprodordconfStruOutHolder outHolder = new TableOfZprodordconfStruOutHolder(outs);
|
|
|
|
|
String message = "";
|
|
|
|
|
try {
|
|
|
|
|
ERPAPI.erpWebService().zmesProdordconf(inHolder, outHolder);
|
|
|
|
|
String status = outHolder.value[1].getRet();
|
|
|
|
|
String message = outHolder.value[1].getMsg();
|
|
|
|
|
message = outHolder.value[1].getMsg();
|
|
|
|
|
if (!status.equals("S")) {
|
|
|
|
|
throw new BaseException("ERP接口返回错误消息:" + message);
|
|
|
|
|
}
|
|
|
|
@ -77,6 +78,10 @@ public class IntegrationLogServiceImpl extends ServiceImpl<IntegrationLogMapper,
|
|
|
|
|
updateById(byId);
|
|
|
|
|
} catch (RemoteException e) {
|
|
|
|
|
throw new BaseException("ERP接口错误: " + e.getMessage());
|
|
|
|
|
} finally {
|
|
|
|
|
byId.setRequestDateTime(LocalDateTime.now());
|
|
|
|
|
byId.setResultMessage(message);
|
|
|
|
|
updateById(byId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|