mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
将推送第三方平台改为可推送多个平台
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user