新增 获取站点运营分析信息接口

This commit is contained in:
Lemon
2024-08-01 09:26:01 +08:00
parent ade1f2e81f
commit 7d8c2fcb18
5 changed files with 86 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ public class BusinessStationInfoController extends BaseController {
/**
* 获取站点运营分析信息
* 获取站点运营分析信息(7天、30天)
* @param dto
* @return
*/
@@ -65,4 +65,24 @@ public class BusinessStationInfoController extends BaseController {
logger.info("获取站点运营分析信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
/**
* 获取站点运营分析信息(12个月)
* @param dto
* @return
*/
@PostMapping("/getStationMonthlyBusinessAnalyzeInfo")
public RestApiResponse<?> getStationMonthlyBusinessAnalyzeInfo(@RequestBody StationBusinessAnalyzeInfoDTO dto){
RestApiResponse<?> response = null;
try {
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationMonthlyBusinessAnalyzeInfo(dto);
response = new RestApiResponse<>(ImmutableMap.of("stationBusinessAnalyzeInfoVO", vo));
} catch (Exception e) {
logger.error("获取站点运营分析信息 error", e);
response = new RestApiResponse<>(e);
}
logger.info("获取站点运营分析信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
}