mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 17:40:13 +08:00
update 查询新增站点互联互通配置
This commit is contained in:
@@ -17,4 +17,14 @@ public class ThirdPartyStationRelationDTO {
|
||||
* 要推送的第三方平台类型数组
|
||||
*/
|
||||
private List<String> thirdPartyTypes;
|
||||
|
||||
/**
|
||||
* 要推送的某个第三方平台类型
|
||||
*/
|
||||
private String thirdPartyType;
|
||||
|
||||
/**
|
||||
* 关系id
|
||||
*/
|
||||
private String id;
|
||||
}
|
||||
|
||||
@@ -115,4 +115,6 @@ public interface ThirdPartyStationRelationMapper {
|
||||
int batchInsert(List<ThirdPartyStationRelation> list);
|
||||
|
||||
List<ThirdPartyStationRelationVO> getRelationInfoListV2(@Param("stationId") String stationId);
|
||||
|
||||
int deleteThirdPartyStationRelation(String id);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,11 @@ import lombok.Data;
|
||||
*/
|
||||
@Data
|
||||
public class ThirdPartyStationRelationVO {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 站点id
|
||||
*/
|
||||
|
||||
@@ -334,6 +334,7 @@
|
||||
|
||||
<select id="getRelationInfoListV2" resultType="com.jsowell.pile.vo.base.ThirdPartyStationRelationVO">
|
||||
SELECT
|
||||
t1.id AS id,
|
||||
t1.station_id AS stationId,
|
||||
t1.third_party_type AS thirdPartyType,
|
||||
t1.equipment_owner_id as equipmentOwnerId,
|
||||
@@ -355,4 +356,8 @@
|
||||
where t1.del_flag = '0'
|
||||
and t1.station_id = #{stationId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<delete id="deleteThirdPartyStationRelation">
|
||||
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user