Commit 2cb4d07f by zhouhaibao

Merge branch 'v5.8.4' of http://192.168.3.233:8090/dj/rop-dj-oaapproval into v5.8.4

2 parents 863eb55b f0baea23
......@@ -63,7 +63,11 @@ public class MerchantEditController {
RpcResponse<Boolean> rpcResponse = merchantEditRemote.updateMerchantInfo(rpcRequest);
if (rpcResponse.isFailed()) {
log.error("4S店信息修改失败: {}", rpcResponse.getMessage());
throw new RpcServiceException(rpcResponse.getError(), rpcResponse.getMessage());
throw new RpcServiceException(
rpcResponse.getError(),
Optional.ofNullable(rpcResponse.getException()).map(RpcServiceException::getErrId).orElse(DefaultErrorEnum.SERVICE_ERROR.getValue()),
rpcResponse.getMessage()
);
}
return RopResponse.success(merchantEditConvert.toEditResponse(rpcResponse.getResult()));
} catch (RpcServiceException e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!