mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update
This commit is contained in:
@@ -94,7 +94,19 @@ public interface PileStationInfoService {
|
||||
|
||||
PileStationVO getStationInfo(String stationId);
|
||||
|
||||
PileStationVO getStationInfoByPileSn(String pileSn);
|
||||
/**
|
||||
* 通过充电桩枪口编号查询充电站信息
|
||||
* @param pileConnectorCode 充电桩枪口编号
|
||||
* @return 充电站信息
|
||||
*/
|
||||
PileStationVO getStationInfoByPileConnectorCode(String pileConnectorCode);
|
||||
|
||||
/**
|
||||
* 通过充电桩sn查询充电站信息
|
||||
* @param pileSn 充电桩sn
|
||||
* @return 充电站信息
|
||||
*/
|
||||
PileStationVO getStationInfoByPileSn(String pileSn);
|
||||
|
||||
List<ThirdPartyStationInfoVO> getStationInfosByThirdParty(QueryStationInfoDTO dto);
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Service接口
|
||||
*
|
||||
@@ -28,6 +28,20 @@ public interface ThirdPartyStationRelationService {
|
||||
*/
|
||||
public List<ThirdPartyStationRelation> selectThirdPartyStationRelationList(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 通过站点id查询相关配置信息
|
||||
* @param stationId 站点id String类型
|
||||
* @return 相关配置信息
|
||||
*/
|
||||
ThirdPartyStationRelationVO selectRelationInfo(String stationId);
|
||||
|
||||
/**
|
||||
* 通过站点id查询相关配置信息
|
||||
* @param stationId 站点id Long类型
|
||||
* @return 相关配置信息
|
||||
*/
|
||||
ThirdPartyStationRelationVO selectRelationInfo(long stationId);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param thirdPartyStationRelation
|
||||
|
||||
@@ -189,6 +189,25 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
|
||||
return vo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过充电桩枪口编号查询充电站信息
|
||||
* @param pileConnectorCode 充电桩枪口编号
|
||||
* @return 充电站信息
|
||||
*/
|
||||
@Override
|
||||
public PileStationVO getStationInfoByPileConnectorCode(String pileConnectorCode) {
|
||||
if (StringUtils.isBlank(pileConnectorCode)) {
|
||||
return null;
|
||||
}
|
||||
String pileSn = StringUtils.substring(pileConnectorCode, 0, 14);
|
||||
return getStationInfoByPileSn(pileSn);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过充电桩sn查询充电站信息
|
||||
* @param pileSn 充电桩sn
|
||||
* @return 充电站信息
|
||||
*/
|
||||
@Override
|
||||
public PileStationVO getStationInfoByPileSn(String pileSn) {
|
||||
// 通过pileSn查询充电桩(缓存方法)
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.SecurityUtils;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.mapper.ThirdPartyStationRelationMapper;
|
||||
import com.jsowell.pile.service.ThirdPartyStationRelationService;
|
||||
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.ThirdPartyStationRelationMapper;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.service.ThirdPartyStationRelationService;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Service业务层处理
|
||||
@@ -43,6 +43,28 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
|
||||
return thirdPartyStationRelationMapper.selectThirdPartyStationRelationList(thirdPartyStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过站点id查询相关配置信息
|
||||
* @param stationId 站点id String类型
|
||||
* @return 相关配置信息
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartyStationRelationVO selectRelationInfo(String stationId) {
|
||||
return selectRelationInfo(Long.parseLong(stationId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过站点id查询相关配置信息
|
||||
* @param stationId 站点id Long类型
|
||||
* @return 相关配置信息
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartyStationRelationVO selectRelationInfo(long stationId) {
|
||||
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
|
||||
relation.setStationId(stationId);
|
||||
return selectRelationInfo(relation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param thirdPartyStationRelation
|
||||
|
||||
Reference in New Issue
Block a user