mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
add 新增联联平台接口 获取充电桩状态信息
This commit is contained in:
@@ -129,5 +129,7 @@ public interface IPileConnectorInfoService {
|
||||
*/
|
||||
List<ConnectorInfoVO> getUniAppConnectorList(Long stationId);
|
||||
|
||||
List<ConnectorInfoVO> getConnectorListForLianLian(Long stationId);
|
||||
|
||||
List<ConnectorInfoVO> selectConnectorInfoList(String pileSn);
|
||||
}
|
||||
|
||||
@@ -383,9 +383,22 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
||||
@Override
|
||||
public List<ConnectorInfoVO> getUniAppConnectorList(Long stationId) {
|
||||
// TODO 加缓存
|
||||
// String redisKey = CacheConstants.GET_UNIAPP_CONNECTOR_LIST_BY_STATION_ID + stationId;
|
||||
// List<ConnectorInfoVO> list = redisCache.getCacheObject(redisKey);
|
||||
// if (CollectionUtils.isEmpty(list)) {
|
||||
// // 查数据库
|
||||
// list = pileConnectorInfoMapper.getUniAppConnectorList(stationId);
|
||||
// if (CollectionUtils.isNotEmpty(list)) {
|
||||
// redisCache.setCacheObject(redisKey, list, 5, TimeUnit.MINUTES);
|
||||
// }
|
||||
// }
|
||||
return pileConnectorInfoMapper.getUniAppConnectorList(stationId);
|
||||
}
|
||||
|
||||
public List<ConnectorInfoVO> getConnectorListForLianLian(Long stationId) {
|
||||
return getUniAppConnectorList(stationId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ConnectorInfoVO> selectConnectorInfoList(String pileSn) {
|
||||
// 查询充电桩型号信息
|
||||
|
||||
@@ -16,6 +16,11 @@ import lombok.NoArgsConstructor;
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class ConnectorInfoVO {
|
||||
/**
|
||||
* 站点id
|
||||
*/
|
||||
private String stationId;
|
||||
|
||||
/**
|
||||
* 枪口号
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user