mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
新增 后管站点下拉列表查询方法
This commit is contained in:
@@ -94,4 +94,11 @@ public interface PileStationInfoMapper {
|
||||
* @param stationId
|
||||
*/
|
||||
int updateParkingPlatform(@Param("parkingId") String parkingId, @Param("stationId") String stationId);
|
||||
|
||||
/**
|
||||
* 获取站点下拉列表
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<PileStationVO> getStationSelectList(@Param("dto") QueryStationDTO dto);
|
||||
}
|
||||
|
||||
@@ -112,4 +112,9 @@ public interface IPileStationInfoService {
|
||||
* @param dto
|
||||
*/
|
||||
int bindParkingPlatform(BindParkingPlatformDTO dto);
|
||||
|
||||
/**
|
||||
* 查询充电站下拉列表
|
||||
*/
|
||||
List<PileStationVO> getStationSelectList(QueryStationDTO dto);
|
||||
}
|
||||
|
||||
@@ -533,5 +533,23 @@ public class PileStationInfoServiceImpl implements IPileStationInfoService {
|
||||
return pileStationInfoMapper.updateParkingPlatform(parkingId, stationId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询充电站下拉列表
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<PileStationVO> getStationSelectList(QueryStationDTO dto) {
|
||||
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
|
||||
if (authorizedMap == null) {
|
||||
// 为空表示没有权限,返回空数组
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
dto.setStationDeptIds(authorizedMap.getStationDeptIds());
|
||||
dto.setMerchantDeptIds(authorizedMap.getMerchantDeptIds());
|
||||
|
||||
return pileStationInfoMapper.getStationSelectList(dto);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user