mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-13 01:33:42 +08:00
bugfix 运营端小程序查询枪口数量错误
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user