Commit c20242a5 by 杨卫

feat:1047852:所有的异常码都返回-1

1 parent 6dcca11b
...@@ -60,10 +60,10 @@ public class BiMatterController { ...@@ -60,10 +60,10 @@ public class BiMatterController {
return RopResponse.success(response.getResult()); return RopResponse.success(response.getResult());
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.add occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.add occur error!", e);
return RopResponse.error(e); return RopResponse.error(e.getMessage());
} catch (Exception e) { } catch (Exception e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.add error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.add error!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR); return RopResponse.error("业务异常");
} }
} }
...@@ -88,10 +88,11 @@ public class BiMatterController { ...@@ -88,10 +88,11 @@ public class BiMatterController {
return RopResponse.success(rpcResponse.getResult()); return RopResponse.success(rpcResponse.getResult());
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.handle occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.handle occur error!", e);
return RopResponse.error(e); return RopResponse.error(e.getMessage());
} catch (Exception e) { } catch (Exception e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.handle occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.matter.handle occur error!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR); return RopResponse.error(DefaultErrorEnum.SERVICE_ERROR.getDisplayName());
} }
} }
...@@ -110,10 +111,10 @@ public class BiMatterController { ...@@ -110,10 +111,10 @@ public class BiMatterController {
return RopResponse.success(merchantOperatorDetailResp); return RopResponse.success(merchantOperatorDetailResp);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator occur error!", e);
return RopResponse.error(e); return RopResponse.error(e.getMessage());
} catch (Exception e) { } catch (Exception e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator occur error!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR); return RopResponse.error(DefaultErrorEnum.SERVICE_ERROR.getDisplayName());
} }
} }
...@@ -140,10 +141,10 @@ public class BiMatterController { ...@@ -140,10 +141,10 @@ public class BiMatterController {
return RopResponse.success(resultPage); return RopResponse.success(resultPage);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("dj.api.smartcarlife.business.analysis.my.merchant.bi.matter.page occur error!", e); log.info("dj.api.smartcarlife.business.analysis.my.merchant.bi.matter.page occur error!", e);
return RopResponse.error(e); return RopResponse.error(e.getMessage());
} catch (Exception e) { } catch (Exception e) {
log.info("dj.api.smartcarlife.business.analysis.my.merchant.bi.matter.page occur error!", e); log.info("dj.api.smartcarlife.business.analysis.my.merchant.bi.matter.page occur error!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR); return RopResponse.error(DefaultErrorEnum.SERVICE_ERROR.getDisplayName());
} }
} }
...@@ -162,10 +163,10 @@ public class BiMatterController { ...@@ -162,10 +163,10 @@ public class BiMatterController {
return RopResponse.success(merchantBiMatterResp); return RopResponse.success(merchantBiMatterResp);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator.detail occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator.detail occur error!", e);
return RopResponse.error(e); return RopResponse.error(e.getMessage());
} catch (Exception e) { } catch (Exception e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator.detail occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.bi.operator.detail occur error!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR); return RopResponse.error(DefaultErrorEnum.SERVICE_ERROR.getDisplayName());
} }
} }
...@@ -186,10 +187,10 @@ public class BiMatterController { ...@@ -186,10 +187,10 @@ public class BiMatterController {
return RopResponse.success(unHandleCount); return RopResponse.success(unHandleCount);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.unhandle.count occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.unhandle.count occur error!", e);
return RopResponse.error(e); return RopResponse.error(e.getMessage());
} catch (Exception e) { } catch (Exception e) {
log.info("dj.api.smartcarlife.business.analysis.merchant.unhandle.count occur error!", e); log.info("dj.api.smartcarlife.business.analysis.merchant.unhandle.count occur error!", e);
return RopResponse.result(DefaultErrorEnum.SERVICE_ERROR); return RopResponse.error(DefaultErrorEnum.SERVICE_ERROR.getDisplayName());
} }
} }
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!