mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-20 07:16:00 +08:00
update 第三方平台整合方法
This commit is contained in:
@@ -113,4 +113,6 @@ public interface ThirdPartyStationRelationMapper {
|
||||
int insertOrUpdateSelective(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
int batchInsert(List<ThirdPartyStationRelation> list);
|
||||
|
||||
List<ThirdPartyStationRelationVO> getRelationInfoListV2(@Param("stationId") String stationId);
|
||||
}
|
||||
|
||||
@@ -112,4 +112,6 @@ public interface ThirdPartyStationRelationService {
|
||||
* @return
|
||||
*/
|
||||
List<StationInfoVO> selectStationList(String thirdPlatformType);
|
||||
|
||||
List<ThirdPartyStationRelationVO> getRelationInfoListV2(String stationId);
|
||||
}
|
||||
|
||||
@@ -128,6 +128,10 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
|
||||
return thirdPartyStationRelationMapper.getRelationInfoList(stationId);
|
||||
}
|
||||
|
||||
public List<ThirdPartyStationRelationVO> getRelationInfoListV2(String stationId) {
|
||||
return thirdPartyStationRelationMapper.getRelationInfoListV2(stationId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
|
||||
@@ -14,6 +14,8 @@ public class ThirdPartyStationRelationVO {
|
||||
|
||||
private String thirdPartyType;
|
||||
|
||||
private String thirdPartyName;
|
||||
|
||||
private String startMode;
|
||||
|
||||
private String urlAddress;
|
||||
@@ -22,4 +24,24 @@ public class ThirdPartyStationRelationVO {
|
||||
private String signSecret;
|
||||
private String dataSecret;
|
||||
private String dataSecretIv;
|
||||
|
||||
|
||||
/**
|
||||
* 对方平台密钥信息
|
||||
*/
|
||||
private String theirOperatorId;
|
||||
private String theirOperatorSecret;
|
||||
private String theirSignSecret;
|
||||
private String theirDataSecret;
|
||||
private String theirDataSecretIv;
|
||||
|
||||
|
||||
/**
|
||||
* 我方平台密钥信息
|
||||
*/
|
||||
private String ourOperatorId;
|
||||
private String ourOperatorSecret;
|
||||
private String ourSignSecret;
|
||||
private String ourDataSecret;
|
||||
private String ourDataSecretIv;
|
||||
}
|
||||
|
||||
@@ -332,5 +332,26 @@
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
<select id="getRelationInfoListV2" resultType="com.jsowell.pile.vo.base.ThirdPartyStationRelationVO">
|
||||
SELECT
|
||||
t1.station_id AS stationId,
|
||||
t1.third_party_type AS thirdPartyType,
|
||||
t2.platform_name AS thirdPartyName,
|
||||
t2.start_mode AS startMode,
|
||||
t2.url_prefix AS urlAddress,
|
||||
t2.their_operator_id AS theirOperatorId,
|
||||
t2.their_operator_secret AS theirOperatorSecret,
|
||||
t2.their_sig_secret AS theirSignSecret,
|
||||
t2.their_data_secret AS theirDataSecret,
|
||||
t2.their_data_secret_iv AS theirDataSecretIv,
|
||||
t2.our_operator_secret AS ourOperatorSecret,
|
||||
t2.our_sig_secret AS ourSignSecret,
|
||||
t2.our_data_secret AS ourDataSecret,
|
||||
t2.our_data_secret_iv AS ourDataSecretIv
|
||||
FROM
|
||||
thirdparty_station_relation t1
|
||||
JOIN thirdparty_secret_info t2 ON t1.third_party_type = t2.platform_type
|
||||
where t1.del_flag = '0'
|
||||
and t1.station_id = #{stationId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user