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

@@ -56,6 +56,7 @@ public class BusinessConnectorInfoController extends BaseController {
public List<String> getStationIdListByAuthorization() {
// 权限过滤
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
logger.info("BusinessConnectorInfoController authorizedMap: {}", JSONObject.toJSONString(authorizedMap));
if (authorizedMap == null) {
// 为空表示没有权限,返回空数组
return new ArrayList<>();

View File

@@ -71,6 +71,7 @@ public class BusinessFinancialController extends BaseController {
public List<String> getStationIdListByAuthorization() {
// 权限过滤
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
logger.info("BusinessFinancialController authorizedMap: {}", JSONObject.toJSONString(authorizedMap));
if (authorizedMap == null) {
// 为空表示没有权限,返回空数组
return new ArrayList<>();

View File

@@ -54,6 +54,7 @@ public class BusinessStationInfoController extends BaseController {
public List<String> getStationIdListByAuthorization() {
// 权限过滤
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
logger.info("BusinessStationInfoController authorizedMap: {}", JSONObject.toJSONString(authorizedMap));
if (authorizedMap == null) {
// 为空表示没有权限,返回空数组
return new ArrayList<>();

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;