This commit is contained in:
Lemon
2024-08-12 13:32:54 +08:00
parent ef5eae2744
commit 52619a9b37
2 changed files with 29 additions and 20 deletions

View File

@@ -3,6 +3,7 @@ package com.jsowell.api.uniapp.business;
import com.alibaba.fastjson2.JSONObject;
import com.google.common.collect.ImmutableMap;
import com.jsowell.common.core.controller.BaseController;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.response.RestApiResponse;
import com.jsowell.pile.dto.StationBusinessAnalyzeInfoDTO;
import com.jsowell.pile.dto.StationStatisticsInfoDTO;
@@ -82,7 +83,11 @@ public class BusinessStationInfoController extends BaseController {
try {
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationMonthlyBusinessAnalyzeInfo(dto);
response = new RestApiResponse<>(ImmutableMap.of("stationBusinessAnalyzeInfoVO", vo));
} catch (Exception e) {
}catch (BusinessException e){
logger.error("获取站点运营分析信息 error:{}", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
}
catch (Exception e) {
logger.error("获取站点运营分析信息 error", e);
response = new RestApiResponse<>(e);
}