Commit 37efca7716e8bb17be94fa8838550029b490037a

Authored by hujiaqi
1 parent 4d3f9864e1

修改查询医院方式

Showing 1 changed file with 3 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PredictedStatisticsController.java View file @ 37efca7
... ... @@ -4,6 +4,7 @@
4 4 import com.lyms.platform.common.base.LoginContext;
5 5 import com.lyms.platform.common.constants.ErrorCodeConstants;
6 6 import com.lyms.platform.common.result.BaseListResponse;
  7 +import com.lyms.platform.common.utils.ExceptionUtils;
7 8 import com.lyms.platform.operate.web.facade.PredictedStatisticsFacade;
8 9 import com.lyms.platform.operate.web.request.PredictedStatisticsRequest;
9 10 import com.lyms.platform.operate.web.request.PredictedStatisticsSumRequest;
... ... @@ -58,7 +59,7 @@
58 59 baseListResponse = new BaseListResponse().setErrorcode(predictedStatisticsResult.getErrorcode()).setErrormsg(predictedStatisticsResult.getErrormsg()).setData(predictedStatisticsResult.getData()).setPageInfo(predictedStatisticsResult.getPageInfo());
59 60 } catch (Exception e) {
60 61 baseListResponse = new BaseListResponse().setErrorcode(ErrorCodeConstants.SYSTEM_ERROR).setErrormsg(ErrorCodeConstants.SYSTEM_ERROR_DESCRIPTION);
61   - log.error("predictedStatistics异常:" + e);
  62 + ExceptionUtils.catchException(e, "predictedStatistics异常");
62 63 }
63 64 return baseListResponse;
64 65 }
... ... @@ -83,7 +84,7 @@
83 84 baseListResponse = new BaseListResponse().setErrorcode(predictedStatisticsSumResult.getErrorcode()).setErrormsg(predictedStatisticsSumResult.getErrormsg()).setData(predictedStatisticsSumResult.getData());
84 85 } catch (Exception e) {
85 86 baseListResponse = new BaseListResponse().setErrorcode(ErrorCodeConstants.SYSTEM_ERROR).setErrormsg(ErrorCodeConstants.SYSTEM_ERROR_DESCRIPTION);
86   - log.error("predictedStatistics异常:" + e);
  87 + ExceptionUtils.catchException(e, "predictedStatisticsSum异常");
87 88 }
88 89 return baseListResponse;
89 90 }