2023-06-06 08:57:30 +08:00
|
|
|
package com.jsowell.pile.service;
|
|
|
|
|
|
2023-07-07 14:40:19 +08:00
|
|
|
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
2024-04-29 17:24:16 +08:00
|
|
|
import com.jsowell.pile.dto.ThirdPartyStationRelationDTO;
|
2024-04-15 17:02:50 +08:00
|
|
|
import com.jsowell.pile.vo.base.MerchantInfoVO;
|
2024-04-24 17:08:14 +08:00
|
|
|
import com.jsowell.pile.vo.base.StationInfoVO;
|
2023-07-07 14:40:19 +08:00
|
|
|
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
|
2023-06-06 08:57:30 +08:00
|
|
|
|
2024-01-23 15:12:07 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
|
2023-06-06 08:57:30 +08:00
|
|
|
/**
|
|
|
|
|
* 站点、第三方推送平台配置对应Service接口
|
|
|
|
|
*
|
|
|
|
|
* @author jsowell
|
|
|
|
|
* @date 2023-06-06
|
|
|
|
|
*/
|
2024-01-06 15:20:28 +08:00
|
|
|
public interface ThirdPartyStationRelationService {
|
2024-03-26 15:26:34 +08:00
|
|
|
// 保存到数据库
|
|
|
|
|
int insertInfo2DataBase(String thirdPartyType, String stationId);
|
2023-06-06 08:57:30 +08:00
|
|
|
/**
|
|
|
|
|
* 查询站点、第三方推送平台配置对应
|
|
|
|
|
*
|
|
|
|
|
* @param id 站点、第三方推送平台配置对应主键
|
|
|
|
|
* @return 站点、第三方推送平台配置对应
|
|
|
|
|
*/
|
2023-07-07 14:40:19 +08:00
|
|
|
public ThirdPartyStationRelation selectThirdPartyStationRelationById(Long id);
|
2023-06-06 08:57:30 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询站点、第三方推送平台配置对应列表
|
|
|
|
|
*
|
2023-07-07 14:40:19 +08:00
|
|
|
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
2023-06-06 08:57:30 +08:00
|
|
|
* @return 站点、第三方推送平台配置对应集合
|
|
|
|
|
*/
|
2023-07-07 14:40:19 +08:00
|
|
|
public List<ThirdPartyStationRelation> selectThirdPartyStationRelationList(ThirdPartyStationRelation thirdPartyStationRelation);
|
2023-06-06 08:57:30 +08:00
|
|
|
|
2024-04-29 17:24:16 +08:00
|
|
|
List<ThirdPartyStationRelation> selectRelationListByStationId(String stationId);
|
|
|
|
|
|
2024-01-25 09:17:28 +08:00
|
|
|
List<ThirdPartyStationRelation> selectThirdPartyStationRelationList(String thirdPlatformType);
|
|
|
|
|
|
2024-01-23 15:12:07 +08:00
|
|
|
/**
|
|
|
|
|
* 通过站点id查询相关配置信息
|
|
|
|
|
* @param stationId 站点id String类型
|
|
|
|
|
* @return 相关配置信息
|
|
|
|
|
*/
|
|
|
|
|
ThirdPartyStationRelationVO selectRelationInfo(String stationId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通过站点id查询相关配置信息
|
|
|
|
|
* @param stationId 站点id Long类型
|
|
|
|
|
* @return 相关配置信息
|
|
|
|
|
*/
|
|
|
|
|
ThirdPartyStationRelationVO selectRelationInfo(long stationId);
|
|
|
|
|
|
2023-06-06 08:57:30 +08:00
|
|
|
/**
|
|
|
|
|
* 查询站点、第三方推送平台配置
|
2023-07-07 14:40:19 +08:00
|
|
|
* @param thirdPartyStationRelation
|
2023-06-06 08:57:30 +08:00
|
|
|
* @return
|
|
|
|
|
*/
|
2023-07-07 14:40:19 +08:00
|
|
|
ThirdPartyStationRelationVO selectRelationInfo(ThirdPartyStationRelation thirdPartyStationRelation);
|
2023-06-06 08:57:30 +08:00
|
|
|
|
2024-01-18 17:03:08 +08:00
|
|
|
/**
|
|
|
|
|
* 通过站点id查询该站点对接了哪些第三方平台
|
|
|
|
|
* @param stationId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<ThirdPartyStationRelationVO> getRelationInfoList(String stationId);
|
|
|
|
|
|
2023-06-06 08:57:30 +08:00
|
|
|
/**
|
|
|
|
|
* 新增站点、第三方推送平台配置对应
|
|
|
|
|
*
|
2023-07-07 14:40:19 +08:00
|
|
|
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
2023-06-06 08:57:30 +08:00
|
|
|
* @return 结果
|
|
|
|
|
*/
|
2023-07-07 14:40:19 +08:00
|
|
|
public int insertThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation);
|
2023-06-06 08:57:30 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改站点、第三方推送平台配置对应
|
|
|
|
|
*
|
2024-04-29 17:24:16 +08:00
|
|
|
* @param dto 站点、第三方推送平台配置对应
|
2023-06-06 08:57:30 +08:00
|
|
|
* @return 结果
|
|
|
|
|
*/
|
2024-04-29 17:24:16 +08:00
|
|
|
public int updateThirdPartyStationRelation(ThirdPartyStationRelationDTO dto);
|
2023-06-06 08:57:30 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量删除站点、第三方推送平台配置对应
|
|
|
|
|
*
|
|
|
|
|
* @param ids 需要删除的站点、第三方推送平台配置对应主键集合
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
2023-07-07 14:40:19 +08:00
|
|
|
public int deleteThirdPartyStationRelationByIds(Long[] ids);
|
2023-06-06 08:57:30 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除站点、第三方推送平台配置对应信息
|
|
|
|
|
*
|
|
|
|
|
* @param id 站点、第三方推送平台配置对应主键
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
2023-07-07 14:40:19 +08:00
|
|
|
public int deleteThirdPartyStationRelationById(Long id);
|
2024-01-18 17:03:08 +08:00
|
|
|
|
2024-01-19 11:43:20 +08:00
|
|
|
int updateRelationDelFlag(String stationId, List<String> types);
|
2024-04-15 17:02:50 +08:00
|
|
|
|
2024-04-24 17:08:14 +08:00
|
|
|
/**
|
|
|
|
|
* 根据第三方平台类型查询对接第三方平台的运营商列表
|
|
|
|
|
* @param thirdPlatformType
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
2024-04-15 17:02:50 +08:00
|
|
|
List<MerchantInfoVO> selectMerchantList(String thirdPlatformType);
|
2024-04-24 17:08:14 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据第三方平台类型查询对接第三方平台的站点列表
|
|
|
|
|
* @param thirdPlatformType
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<StationInfoVO> selectStationList(String thirdPlatformType);
|
2025-02-12 08:57:57 +08:00
|
|
|
|
|
|
|
|
List<ThirdPartyStationRelationVO> getRelationInfoListV2(String stationId);
|
2023-06-06 08:57:30 +08:00
|
|
|
}
|