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:
@@ -66,4 +66,11 @@ public interface IThirdPartySettingInfoService {
|
||||
* @return
|
||||
*/
|
||||
public ThirdPartySettingInfo getInfoByStationId(Long stationId);
|
||||
|
||||
/**
|
||||
* 修改站点互联互通配置
|
||||
* @param info
|
||||
* @return
|
||||
*/
|
||||
int updateStationSettingInfo(ThirdPartySettingInfo info);
|
||||
}
|
||||
|
||||
@@ -98,4 +98,22 @@ public class ThirdPartySettingInfoServiceImpl implements IThirdPartySettingInfoS
|
||||
public ThirdPartySettingInfo getInfoByStationId(Long stationId) {
|
||||
return thirdPartySettingInfoMapper.getInfoByStationId(stationId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改站点互联互通配置
|
||||
* @param info
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public int updateStationSettingInfo(ThirdPartySettingInfo info) {
|
||||
Long stationId = info.getStationId();
|
||||
ThirdPartySettingInfo infoByStationId = getInfoByStationId(stationId);
|
||||
if (infoByStationId == null) {
|
||||
// 新增
|
||||
return insertThirdPartySettingInfo(info);
|
||||
}else {
|
||||
// 修改
|
||||
return updateThirdPartySettingInfo(info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user