mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 13:38:02 +08:00
bugfix 后管充电桩管理页面按状态查询只能查询当页
This commit is contained in:
@@ -89,6 +89,8 @@ public interface PileBasicInfoService {
|
|||||||
|
|
||||||
List<PileDetailVO> queryPileInfoList(QueryPileDTO queryPileDTO);
|
List<PileDetailVO> queryPileInfoList(QueryPileDTO queryPileDTO);
|
||||||
|
|
||||||
|
public List<PileDetailVO> queryPileInfoListNoPage(QueryPileDTO queryPileDTO);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过pileId更改运营商、站点信息
|
* 通过pileId更改运营商、站点信息
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
|||||||
// watch.start("首先不分页查询所有符合条件的充电桩");
|
// watch.start("首先不分页查询所有符合条件的充电桩");
|
||||||
log.info("queryPileInfos dto:{}", JSON.toJSONString(dto));
|
log.info("queryPileInfos dto:{}", JSON.toJSONString(dto));
|
||||||
// 首先不分页查询所有符合条件的充电桩
|
// 首先不分页查询所有符合条件的充电桩
|
||||||
List<PileDetailVO> pileInfoVOS = queryPileInfoList(dto);
|
List<PileDetailVO> pileInfoVOS = queryPileInfoListNoPage(dto);
|
||||||
// watch.stop();
|
// watch.stop();
|
||||||
|
|
||||||
// watch.start("查询充电桩状态");
|
// watch.start("查询充电桩状态");
|
||||||
@@ -347,6 +347,25 @@ public class PileBasicInfoServiceImpl implements PileBasicInfoService {
|
|||||||
return pileBasicInfoMapper.queryPileInfos(queryPileDTO);
|
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更改运营商、站点信息
|
* 通过pileId更改运营商、站点信息
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
String stationId = String.valueOf(pileStationInfo.getId());
|
String stationId = String.valueOf(pileStationInfo.getId());
|
||||||
stationInfo.setStationID(stationId);
|
stationInfo.setStationID(stationId);
|
||||||
// MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfo(String.valueOf(pileStationInfo.getMerchantId()));
|
// 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.setEquipmentOwnerID(String.valueOf(pileStationInfo.getMerchantId()));
|
||||||
stationInfo.setStationName(pileStationInfo.getStationName());
|
stationInfo.setStationName(pileStationInfo.getStationName());
|
||||||
stationInfo.setIsAloneApply(Integer.valueOf(pileStationInfo.getAloneApply()));
|
stationInfo.setIsAloneApply(Integer.valueOf(pileStationInfo.getAloneApply()));
|
||||||
|
|||||||
Reference in New Issue
Block a user