bugfix 后管充电桩管理页面按状态查询只能查询当页

This commit is contained in:
Lemon
2024-09-25 08:54:44 +08:00
parent 597e74e4e9
commit cacface6d1
3 changed files with 23 additions and 2 deletions

View File

@@ -89,6 +89,8 @@ public interface PileBasicInfoService {
List<PileDetailVO> queryPileInfoList(QueryPileDTO queryPileDTO);
public List<PileDetailVO> queryPileInfoListNoPage(QueryPileDTO queryPileDTO);
/**
* 通过pileId更改运营商、站点信息
*

View File

@@ -261,7 +261,7 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
// watch.start("首先不分页查询所有符合条件的充电桩");
log.info("queryPileInfos dto:{}", JSON.toJSONString(dto));
// 首先不分页查询所有符合条件的充电桩
List<PileDetailVO> pileInfoVOS = queryPileInfoList(dto);
List<PileDetailVO> pileInfoVOS = queryPileInfoListNoPage(dto);
// watch.stop();
// watch.start("查询充电桩状态");
@@ -347,6 +347,25 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
return pileBasicInfoMapper.queryPileInfos(queryPileDTO);
}
/**
* 查询充电桩列表
* 后管使用,带权限过滤(不分页)
* @param queryPileDTO
* @return
*/
@Override
public List<PileDetailVO> queryPileInfoListNoPage(QueryPileDTO queryPileDTO) {
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
if (authorizedMap == null) {
// 为空表示没有权限,返回空数组
return Lists.newArrayList();
}
queryPileDTO.setStationDeptIds(authorizedMap.getStationDeptIds());
queryPileDTO.setMerchantDeptIds(authorizedMap.getMerchantDeptIds());
return pileBasicInfoMapper.queryPileInfos(queryPileDTO);
}
/**
* 通过pileId更改运营商、站点信息
*

View File

@@ -173,7 +173,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService {
String stationId = String.valueOf(pileStationInfo.getId());
stationInfo.setStationID(stationId);
// MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfo(String.valueOf(pileStationInfo.getMerchantId()));
stationInfo.setOperatorID(Constants.OPERATORID_LIANLIAN); // 组织机构代码
stationInfo.setOperatorID(Constants.OPERATORID_JIANG_SU); // 组织机构代码
stationInfo.setEquipmentOwnerID(String.valueOf(pileStationInfo.getMerchantId()));
stationInfo.setStationName(pileStationInfo.getStationName());
stationInfo.setIsAloneApply(Integer.valueOf(pileStationInfo.getAloneApply()));