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; }