mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-12 17:23:50 +08:00
bugfix 运营端小程序查询枪口数量错误
This commit is contained in:
@@ -154,10 +154,9 @@ public class BusinessConnectorInfoController extends BaseController {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
// 获取登录账号信息
|
||||
LoginUserDetailVO loginUserDetail = UserUtils.getLoginUserDetail();
|
||||
List<String> merchantIdList = loginUserDetail.getFirstMerchantIdList();
|
||||
if (CollectionUtils.isEmpty(dto.getStationIds())) {
|
||||
dto.setStationIds(pileStationInfoService.getStationIdsByMerchantIds(merchantIdList));
|
||||
List<String> stationIdList = getStationIdListByAuthorization();
|
||||
if (CollectionUtils.isNotEmpty(stationIdList)) {
|
||||
dto.setStationIds(stationIdList);
|
||||
}
|
||||
Map<String, Object> map = pileConnectorInfoService.getConnectorStatusNum(dto.getStationIds(), null);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("connectorStatusNumMap", map));
|
||||
|
||||
Reference in New Issue
Block a user