mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-05 02:20:12 +08:00
update 对接内蒙古平台
This commit is contained in:
@@ -9,36 +9,68 @@ import lombok.Setter;
|
||||
@Getter
|
||||
@Setter
|
||||
public class ThirdPartySecretInfoVO {
|
||||
// 我方的组织机构代码
|
||||
/**
|
||||
* 我方的组织机构代码
|
||||
*/
|
||||
private String ourOperatorId;
|
||||
|
||||
// 我方生成的唯一识别密钥
|
||||
/**
|
||||
* 我方生成的唯一识别密钥
|
||||
*/
|
||||
private String ourOperatorSecret;
|
||||
|
||||
// 我方生成的消息密钥
|
||||
/**
|
||||
* 我方生成的消息密钥
|
||||
*/
|
||||
private String ourDataSecret;
|
||||
|
||||
// 我方生成的初始化向量
|
||||
/**
|
||||
* 我方生成的初始化向量
|
||||
*/
|
||||
private String ourDataSecretIv;
|
||||
|
||||
// 我方生成的签名密钥
|
||||
/**
|
||||
* 我方生成的签名密钥
|
||||
*/
|
||||
private String ourSigSecret;
|
||||
|
||||
// 对接平台的组织机构代码
|
||||
/**
|
||||
* 对接平台名称
|
||||
*/
|
||||
private String platformName;
|
||||
|
||||
/**
|
||||
* 对接平台类型 {@link com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum}
|
||||
*/
|
||||
private String platformType;
|
||||
|
||||
/**
|
||||
* 对接平台的组织机构代码
|
||||
*/
|
||||
private String theirOperatorId;
|
||||
|
||||
// 对接平台生成的唯一识别密钥
|
||||
/**
|
||||
* 对接平台生成的唯一识别密钥
|
||||
*/
|
||||
private String theirOperatorSecret;
|
||||
|
||||
// 对接平台生成的消息密钥
|
||||
/**
|
||||
* 对接平台生成的消息密钥
|
||||
*/
|
||||
private String theirDataSecret;
|
||||
|
||||
// 对接平台的初始化向量
|
||||
/**
|
||||
* 对接平台的初始化向量
|
||||
*/
|
||||
private String theirDataSecretIv;
|
||||
|
||||
// 对接平台生成的签名密钥
|
||||
/**
|
||||
* 对接平台生成的签名密钥
|
||||
*/
|
||||
private String theirSigSecret;
|
||||
|
||||
// 对接平台接口前缀
|
||||
/**
|
||||
* 对接平台接口前缀
|
||||
*/
|
||||
private String theirUrlPrefix;
|
||||
}
|
||||
|
||||
@@ -65,4 +65,6 @@ public interface ThirdpartySecretInfoMapper {
|
||||
ThirdPartySecretInfoVO queryByOperatorId(String theirOperatorId);
|
||||
|
||||
ThirdPartySecretInfoVO queryByThirdPlatformType(String thirdPlatformType);
|
||||
|
||||
List<ThirdPartySecretInfoVO> queryStationToPlatformList(String stationId);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,24 @@ public interface ThirdpartySecretInfoService {
|
||||
*/
|
||||
public int deleteThirdpartySecretInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 通过组织结构代码,查询平台密钥配置信息
|
||||
* @param theirOperatorId 组织结构代码
|
||||
* @return
|
||||
*/
|
||||
ThirdPartySecretInfoVO queryByOperatorId(String theirOperatorId);
|
||||
|
||||
/**
|
||||
* 通过第三方平台类型,查询平台密钥配置信息
|
||||
* @param thirdPlatformType 第三方平台类型 {@link com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum}
|
||||
* @return
|
||||
*/
|
||||
ThirdPartySecretInfoVO queryByThirdPlatformType(String thirdPlatformType);
|
||||
|
||||
/**
|
||||
* 查询站点对接第三方平台信息列表
|
||||
* @param stationId 站点id
|
||||
* @return
|
||||
*/
|
||||
List<ThirdPartySecretInfoVO> queryStationToPlatformList(String stationId);
|
||||
}
|
||||
|
||||
@@ -127,4 +127,10 @@ public class ThirdpartySecretInfoServiceImpl implements ThirdpartySecretInfoServ
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ThirdPartySecretInfoVO> queryStationToPlatformList(String stationId) {
|
||||
List<ThirdPartySecretInfoVO> list = thirdpartySecretInfoMapper.queryStationToPlatformList(stationId);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,6 +138,8 @@
|
||||
|
||||
<select id="queryByOperatorId" resultType="com.jsowell.pile.vo.ThirdPartySecretInfoVO">
|
||||
select
|
||||
t1.platform_name as platformName,
|
||||
t1.platform_type as platformType,
|
||||
t1.their_operator_id as theirOperatorId,
|
||||
t1.their_operator_secret as theirOperatorSecret,
|
||||
t1.their_data_secret as theirDataSecret,
|
||||
@@ -149,24 +151,46 @@
|
||||
t1.our_data_secret_iv as ourDataSecretIv,
|
||||
t1.our_sig_secret as ourSigSecret
|
||||
from thirdparty_secret_info t1
|
||||
where del_flag = '0'
|
||||
and their_operator_id = #{theirOperatorId,jdbcType=VARCHAR}
|
||||
where t1.del_flag = '0'
|
||||
and t1.their_operator_id = #{theirOperatorId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="queryByThirdPlatformType" resultType="com.jsowell.pile.vo.ThirdPartySecretInfoVO">
|
||||
select
|
||||
t1.their_operator_id as theirOperatorId,
|
||||
t1.their_operator_secret as theirOperatorSecret,
|
||||
t1.their_data_secret as theirDataSecret,
|
||||
t1.their_data_secret_iv as theirDataSecretIv,
|
||||
t1.their_sig_secret as theirSigSecret,
|
||||
t1.url_prefix as theirUrlPrefix,
|
||||
t1.our_operator_secret as ourOperatorSecret,
|
||||
t1.our_data_secret as ourDataSecret,
|
||||
t1.our_data_secret_iv as ourDataSecretIv,
|
||||
t1.our_sig_secret as ourSigSecret
|
||||
t1.platform_name as platformName,
|
||||
t1.platform_type as platformType,
|
||||
t1.their_operator_id as theirOperatorId,
|
||||
t1.their_operator_secret as theirOperatorSecret,
|
||||
t1.their_data_secret as theirDataSecret,
|
||||
t1.their_data_secret_iv as theirDataSecretIv,
|
||||
t1.their_sig_secret as theirSigSecret,
|
||||
t1.url_prefix as theirUrlPrefix,
|
||||
t1.our_operator_secret as ourOperatorSecret,
|
||||
t1.our_data_secret as ourDataSecret,
|
||||
t1.our_data_secret_iv as ourDataSecretIv,
|
||||
t1.our_sig_secret as ourSigSecret
|
||||
from thirdparty_secret_info t1
|
||||
where del_flag = '0'
|
||||
and platform_type = #{thirdPlatformType,jdbcType=VARCHAR}
|
||||
where t1.del_flag = '0'
|
||||
and t1.platform_type = #{thirdPlatformType,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="queryStationToPlatformList" resultType="com.jsowell.pile.vo.ThirdPartySecretInfoVO">
|
||||
select
|
||||
t1.platform_name as platformName,
|
||||
t1.platform_type as platformType,
|
||||
t1.their_operator_id as theirOperatorId,
|
||||
t1.their_operator_secret as theirOperatorSecret,
|
||||
t1.their_data_secret as theirDataSecret,
|
||||
t1.their_data_secret_iv as theirDataSecretIv,
|
||||
t1.their_sig_secret as theirSigSecret,
|
||||
t1.url_prefix as theirUrlPrefix,
|
||||
t1.our_operator_secret as ourOperatorSecret,
|
||||
t1.our_data_secret as ourDataSecret,
|
||||
t1.our_data_secret_iv as ourDataSecretIv,
|
||||
t1.our_sig_secret as ourSigSecret
|
||||
from thirdparty_secret_info t1
|
||||
left join thirdparty_station_relation t2 on t2.third_party_type = t1.platform_type and t2.del_flag = '0'
|
||||
where t1.del_flag = '0'
|
||||
and t2.station_id = #{stationId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user