mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-13 01:33:42 +08:00
update
This commit is contained in:
@@ -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<>();
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user