update 查询新增站点互联互通配置

This commit is contained in:
Guoqs
2025-12-04 15:59:46 +08:00
parent 3fc5a3273f
commit c88f9a2ea2
8 changed files with 72 additions and 10 deletions

View File

@@ -17,4 +17,14 @@ public class ThirdPartyStationRelationDTO {
* 要推送的第三方平台类型数组
*/
private List<String> thirdPartyTypes;
/**
* 要推送的某个第三方平台类型
*/
private String thirdPartyType;
/**
* 关系id
*/
private String id;
}

View File

@@ -115,4 +115,6 @@ public interface ThirdPartyStationRelationMapper {
int batchInsert(List<ThirdPartyStationRelation> list);
List<ThirdPartyStationRelationVO> getRelationInfoListV2(@Param("stationId") String stationId);
int deleteThirdPartyStationRelation(String id);
}

View File

@@ -113,6 +113,21 @@ public interface ThirdPartyStationRelationService {
*/
List<StationInfoVO> selectStationList(String thirdPlatformType);
/**
* 新增站点与第三方平台对接关系
*/
int insertThirdPartyStationRelation(String stationId, String thirdPlatformType);
/**
* 删除站点对接第三方平台关系
*/
int deleteThirdPartyStationRelation(String id);
/**
* 修改站点对接第三方平台关系
*/
// int updateThirdPartyStationRelation(ThirdPartyStationRelationDTO dto);
/**
* 根据站点id查询该站点对接了哪些第三方平台
* @param stationId

View File

@@ -210,4 +210,20 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
public List<StationInfoVO> selectStationList(String thirdPlatformType) {
return thirdPartyStationRelationMapper.selectStationList(thirdPlatformType);
}
@Override
public int insertThirdPartyStationRelation(String stationId, String thirdPlatformType) {
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
relation.setStationId(Long.parseLong(stationId));
relation.setThirdPartyType(thirdPlatformType);
return thirdPartyStationRelationMapper.insertThirdPartyStationRelation(relation);
}
@Override
public int deleteThirdPartyStationRelation(String id) {
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
relation.setId(Long.parseLong(id));
relation.setDelFlag(DelFlagEnum.DELETE.getValue());
return thirdPartyStationRelationMapper.updateThirdPartyStationRelation(relation);
}
}

View File

@@ -10,6 +10,11 @@ import lombok.Data;
*/
@Data
public class ThirdPartyStationRelationVO {
/**
* id
*/
private String id;
/**
* 站点id
*/