mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
add 运营端小程序获取站点统计信息接口V2
This commit is contained in:
@@ -66,8 +66,15 @@ public class BusinessStationInfoController extends BaseController {
|
||||
public RestApiResponse<?> getStationStatisticsInfos(@RequestBody StationStatisticsInfoDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
List<StationStatisticsInfosVO> stationStatisticsInfos = pileStationInfoService.getStationStatisticsInfos(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("stationStatisticsInfos", stationStatisticsInfos));
|
||||
// List<StationStatisticsInfosVO> stationStatisticsInfos = pileStationInfoService.getStationStatisticsInfos(dto);
|
||||
// 获取登录账号信息
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<String> merchantIdList = loginUserDetail.getFirstMerchantIdList();
|
||||
if (CollectionUtils.isEmpty(dto.getStationIds())) {
|
||||
dto.setStationIds(pileStationInfoService.getStationIdsByMerchantIds(merchantIdList));
|
||||
}
|
||||
StationStatisticsInfosVO info = pileStationInfoService.getStationStatisticsInfosV2(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("stationStatisticsInfo", info));
|
||||
} catch (Exception e) {
|
||||
logger.error("获取站点统计信息 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
|
||||
Reference in New Issue
Block a user