新增 站点枪口利用率趋势统计接口

This commit is contained in:
Lemon
2024-08-13 15:47:31 +08:00
parent f4b03719fd
commit 8e53b07253
5 changed files with 63 additions and 3 deletions

View File

@@ -112,4 +112,23 @@ public class BusinessStationInfoController extends BaseController {
logger.info("查询站点订单数量趋势信息 params:{}, result:{}", JSONObject.toJSONString(dto), response);
return response;
}
/**
* 查询站点枪利用率趋势信息
* @return
*/
@PostMapping("/getStationConnectorUsedInfo")
public RestApiResponse<?> getStationConnectorUsedInfo(@RequestBody StationBusinessAnalyzeInfoDTO dto) {
RestApiResponse<?> response = null;
try {
StationBusinessAnalyzeInfoVO vo = pileStationInfoService.getStationConnectorUsedInfo(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;
}
}