报工重发接口,错误提示记录

master
zpl 3 years ago
parent b4e8404ef5
commit f2946889ea

@ -78,7 +78,9 @@ public class IntegrationLogServiceImpl extends ServiceImpl<IntegrationLogMapper,
status = outHolder.value[1].getRet();
message = outHolder.value[1].getMsg();
if (!status.equals("S")) {
throw new BaseException("ERP接口返回错误消息:" + message);
byId.setResultMessage("ERP接口返回错误消息:" + message);
updateById(byId);
return "ERP接口返回错误消息:" + message;
}
byId.setStatus(status);
byId.setResultMessage(message);
@ -86,9 +88,7 @@ public class IntegrationLogServiceImpl extends ServiceImpl<IntegrationLogMapper,
} catch (RemoteException e) {
byId.setRequestDateTime(LocalDateTime.now());
byId.setResultMessage("ERP接口错误" + e.getMessage());
// updateById(byId);
updateById(byId);
// throw new BaseException("ERP接口错误: " + e.getMessage());
return e.getMessage();
}
return null;

Loading…
Cancel
Save