bugfix 运营端小程序查询枪口数量错误

This commit is contained in:
Lemon
2026-08-12 09:33:19 +08:00
parent 3da2c2afb8
commit 5c41cad800

View File

@@ -154,10 +154,9 @@ public class BusinessConnectorInfoController extends BaseController {
RestApiResponse<?> response = null; RestApiResponse<?> response = null;
try { try {
// 获取登录账号信息 // 获取登录账号信息
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail(); List<String> stationIdList = getStationIdListByAuthorization();
List<String> merchantIdList = loginUserDetail.getFirstMerchantIdList(); if (CollectionUtils.isNotEmpty(stationIdList)) {
if (CollectionUtils.isEmpty(dto.getStationIds())) { dto.setStationIds(stationIdList);
dto.setStationIds(pileStationInfoService.getStationIdsByMerchantIds(merchantIdList));
} }
Map<String, Object> map = pileConnectorInfoService.getConnectorStatusNum(dto.getStationIds(), null); Map<String, Object> map = pileConnectorInfoService.getConnectorStatusNum(dto.getStationIds(), null);
response = new RestApiResponse<>(ImmutableMap.of("connectorStatusNumMap", map)); response = new RestApiResponse<>(ImmutableMap.of("connectorStatusNumMap", map));