This commit is contained in:
Lemon
2026-08-11 16:19:16 +08:00
parent e91b530517
commit 9dfc12c5a7
4 changed files with 3 additions and 15 deletions

View File

@@ -1077,21 +1077,6 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
// 获取站点id如果为空则默认查询该账号下所有站点
// String stationId = dto.getStationId();
List<String> stationIds = dto.getStationIds();
if (CollectionUtils.isNotEmpty(stationIds)) {
List<MerchantInfoVO> merchantInfoVOList = UserUtils.getMerchantInfoVOList();
List<String> merchantIds = merchantInfoVOList.stream()
.map(MerchantInfoVO::getMerchantId)
.collect(Collectors.toList());
// 根据运营商ids查出所有站点id
List<PileStationInfo> pileStationInfos = getStationInfosByMerchantIds(merchantIds);
stationIds = pileStationInfos.stream()
.map(x -> String.valueOf(x.getId()))
.collect(Collectors.toList());
if (CollectionUtils.isEmpty(pileStationInfos)) {
// 未查到该运营商下的站点
throw new BusinessException(ReturnCodeEnum.CODE_SELECT_INFO_IS_NULL);
}
}
// 日期区间
// String startTime = null;
// String endTime = null;