From 37efca7716e8bb17be94fa8838550029b490037a Mon Sep 17 00:00:00 2001 From: hujiaqi Date: Wed, 30 Nov 2016 15:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E5=8C=BB?= =?UTF-8?q?=E9=99=A2=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate/web/controller/PredictedStatisticsController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PredictedStatisticsController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PredictedStatisticsController.java index deaaa94..d8b3792 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PredictedStatisticsController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PredictedStatisticsController.java @@ -4,6 +4,7 @@ import com.lyms.platform.common.annotation.TokenRequired; import com.lyms.platform.common.base.LoginContext; import com.lyms.platform.common.constants.ErrorCodeConstants; import com.lyms.platform.common.result.BaseListResponse; +import com.lyms.platform.common.utils.ExceptionUtils; import com.lyms.platform.operate.web.facade.PredictedStatisticsFacade; import com.lyms.platform.operate.web.request.PredictedStatisticsRequest; import com.lyms.platform.operate.web.request.PredictedStatisticsSumRequest; @@ -58,7 +59,7 @@ public class PredictedStatisticsController { baseListResponse = new BaseListResponse().setErrorcode(predictedStatisticsResult.getErrorcode()).setErrormsg(predictedStatisticsResult.getErrormsg()).setData(predictedStatisticsResult.getData()).setPageInfo(predictedStatisticsResult.getPageInfo()); } catch (Exception e) { baseListResponse = new BaseListResponse().setErrorcode(ErrorCodeConstants.SYSTEM_ERROR).setErrormsg(ErrorCodeConstants.SYSTEM_ERROR_DESCRIPTION); - log.error("predictedStatistics异常:" + e); + ExceptionUtils.catchException(e, "predictedStatistics异常"); } return baseListResponse; } @@ -83,7 +84,7 @@ public class PredictedStatisticsController { baseListResponse = new BaseListResponse().setErrorcode(predictedStatisticsSumResult.getErrorcode()).setErrormsg(predictedStatisticsSumResult.getErrormsg()).setData(predictedStatisticsSumResult.getData()); } catch (Exception e) { baseListResponse = new BaseListResponse().setErrorcode(ErrorCodeConstants.SYSTEM_ERROR).setErrormsg(ErrorCodeConstants.SYSTEM_ERROR_DESCRIPTION); - log.error("predictedStatistics异常:" + e); + ExceptionUtils.catchException(e, "predictedStatisticsSum异常"); } return baseListResponse; } -- 1.8.3.1