将推送第三方平台改为可推送多个平台

This commit is contained in:
Lemon
2024-01-18 17:03:08 +08:00
parent 63ae3c8ab7
commit 0b09585bbc
21 changed files with 534 additions and 63 deletions

View File

@@ -4,6 +4,7 @@ import java.util.List;
import com.jsowell.pile.domain.ThirdPartyStationRelation;
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
/**
@@ -68,4 +69,20 @@ public interface ThirdPartyStationRelationMapper {
* @return 结果
*/
public int deleteThirdPartyStationRelationByIds(Long[] ids);
/**
* 通过站点id查询该站点对接了哪些第三方平台
* @param stationId
* @return
*/
List<ThirdPartyStationRelationVO> getRelationInfoList(@Param("stationId") String stationId);
/**
* 修改删除标识为1
* @param stationId
* @param type
* @return
*/
int updateRelationDelFlag(@Param("stationId") String stationId, @Param("type") String type);
}

View File

@@ -35,6 +35,13 @@ public interface ThirdPartyStationRelationService {
*/
ThirdPartyStationRelationVO selectRelationInfo(ThirdPartyStationRelation thirdPartyStationRelation);
/**
* 通过站点id查询该站点对接了哪些第三方平台
* @param stationId
* @return
*/
List<ThirdPartyStationRelationVO> getRelationInfoList(String stationId);
/**
* 新增站点、第三方推送平台配置对应
*
@@ -66,4 +73,6 @@ public interface ThirdPartyStationRelationService {
* @return 结果
*/
public int deleteThirdPartyStationRelationById(Long id);
int updateRelationDelFlag(String stationId, String type);
}

View File

@@ -53,6 +53,16 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
return thirdPartyStationRelationMapper.selectRelationInfo(thirdPartyStationRelation);
}
/**
* 通过站点id查询该站点对接了哪些第三方平台
* @param stationId
* @return
*/
@Override
public List<ThirdPartyStationRelationVO> getRelationInfoList(String stationId) {
return thirdPartyStationRelationMapper.getRelationInfoList(stationId);
}
/**
* 新增站点、第三方推送平台配置对应
*
@@ -99,4 +109,9 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
public int deleteThirdPartyStationRelationById(Long id) {
return thirdPartyStationRelationMapper.deleteThirdPartyStationRelationById(id);
}
@Override
public int updateRelationDelFlag(String stationId, String type) {
return thirdPartyStationRelationMapper.updateRelationDelFlag(stationId, type);
}
}