diff --git a/jsowell-pile/src/main/java/com/jsowell/thirdparty/domain/ThirdpartySecretInfo.java b/jsowell-pile/src/main/java/com/jsowell/thirdparty/domain/ThirdpartySecretInfo.java index 2a43bf10e..5c1678095 100644 --- a/jsowell-pile/src/main/java/com/jsowell/thirdparty/domain/ThirdpartySecretInfo.java +++ b/jsowell-pile/src/main/java/com/jsowell/thirdparty/domain/ThirdpartySecretInfo.java @@ -7,216 +7,228 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** * 对接三方平台配置对象 thirdparty_secret_info - * + * * @author jsowell * @date 2024-04-18 */ -public class ThirdpartySecretInfo extends BaseEntity -{ +public class ThirdpartySecretInfo extends BaseEntity { private static final long serialVersionUID = 1L; - /** 主键 */ + /** + * 主键 + */ private Long id; - /** 对接平台名称 */ + /** + * 对接平台名称 + */ @Excel(name = "对接平台名称") private String platformName; - /** 对接平台类型 */ + /** + * 对接平台类型 + */ @Excel(name = "对接平台类型") private String platformType; - /** 接口地址前缀 */ + /** + * 接口地址前缀 + */ @Excel(name = "接口地址前缀") private String urlPrefix; - /** 对接平台标识(使用组织机构代码) */ + /** + * 对接平台标识(使用组织机构代码) + */ @Excel(name = "对接平台标识", readConverterExp = "使=用组织机构代码") private String theirOperatorId; - /** 对接平台生成的唯一识别密钥 */ + /** + * 对接平台生成的唯一识别密钥 + */ @Excel(name = "对接平台生成的唯一识别密钥") private String theirOperatorSecret; - /** 对接平台生成的消息密钥 */ + /** + * 对接平台生成的消息密钥 + */ @Excel(name = "对接平台生成的消息密钥") private String theirDataSecret; - /** 对接平台生成的初始化向量 */ + /** + * 对接平台生成的初始化向量 + */ @Excel(name = "对接平台生成的初始化向量") private String theirDataSecretIv; - /** 对接平台生成的签名密钥 */ + /** + * 对接平台生成的签名密钥 + */ @Excel(name = "对接平台生成的签名密钥") private String theirSigSecret; - /** 我方生成的唯一识别密钥 */ + /** + * 我方生成的唯一识别密钥 + */ @Excel(name = "我方生成的唯一识别密钥") private String ourOperatorSecret; - /** 我方生成的消息密钥 */ + /** + * 我方生成的消息密钥 + */ @Excel(name = "我方生成的消息密钥") private String ourDataSecret; - /** 我方生成的初始化向量 */ + /** + * 我方生成的初始化向量 + */ @Excel(name = "我方生成的初始化向量") private String ourDataSecretIv; - /** 我方生成的签名密钥 */ + /** + * 我方生成的签名密钥 + */ @Excel(name = "我方生成的签名密钥") private String ourSigSecret; - /** 删除标识(0-正常;1-删除) */ + /** + * 删除标识(0-正常;1-删除) + */ private String delFlag; - public void setId(Long id) - { + public void setId(Long id) { this.id = id; } - public Long getId() - { + public Long getId() { return id; } - public void setPlatformName(String platformName) - { + + public void setPlatformName(String platformName) { this.platformName = platformName; } - public String getPlatformName() - { + public String getPlatformName() { return platformName; } - public void setPlatformType(String platformType) - { + + public void setPlatformType(String platformType) { this.platformType = platformType; } - public String getPlatformType() - { + public String getPlatformType() { return platformType; } - public void setUrlPrefix(String urlPrefix) - { + + public void setUrlPrefix(String urlPrefix) { this.urlPrefix = urlPrefix; } - public String getUrlPrefix() - { + public String getUrlPrefix() { return urlPrefix; } - public void setTheirOperatorId(String theirOperatorId) - { + + public void setTheirOperatorId(String theirOperatorId) { this.theirOperatorId = theirOperatorId; } - public String getTheirOperatorId() - { + public String getTheirOperatorId() { return theirOperatorId; } - public void setTheirOperatorSecret(String theirOperatorSecret) - { + + public void setTheirOperatorSecret(String theirOperatorSecret) { this.theirOperatorSecret = theirOperatorSecret; } - public String getTheirOperatorSecret() - { + public String getTheirOperatorSecret() { return theirOperatorSecret; } - public void setTheirDataSecret(String theirDataSecret) - { + + public void setTheirDataSecret(String theirDataSecret) { this.theirDataSecret = theirDataSecret; } - public String getTheirDataSecret() - { + public String getTheirDataSecret() { return theirDataSecret; } - public void setTheirDataSecretIv(String theirDataSecretIv) - { + + public void setTheirDataSecretIv(String theirDataSecretIv) { this.theirDataSecretIv = theirDataSecretIv; } - public String getTheirDataSecretIv() - { + public String getTheirDataSecretIv() { return theirDataSecretIv; } - public void setTheirSigSecret(String theirSigSecret) - { + + public void setTheirSigSecret(String theirSigSecret) { this.theirSigSecret = theirSigSecret; } - public String getTheirSigSecret() - { + public String getTheirSigSecret() { return theirSigSecret; } - public void setOurOperatorSecret(String ourOperatorSecret) - { + + public void setOurOperatorSecret(String ourOperatorSecret) { this.ourOperatorSecret = ourOperatorSecret; } - public String getOurOperatorSecret() - { + public String getOurOperatorSecret() { return ourOperatorSecret; } - public void setOurDataSecret(String ourDataSecret) - { + + public void setOurDataSecret(String ourDataSecret) { this.ourDataSecret = ourDataSecret; } - public String getOurDataSecret() - { + public String getOurDataSecret() { return ourDataSecret; } - public void setOurDataSecretIv(String ourDataSecretIv) - { + + public void setOurDataSecretIv(String ourDataSecretIv) { this.ourDataSecretIv = ourDataSecretIv; } - public String getOurDataSecretIv() - { + public String getOurDataSecretIv() { return ourDataSecretIv; } - public void setOurSigSecret(String ourSigSecret) - { + + public void setOurSigSecret(String ourSigSecret) { this.ourSigSecret = ourSigSecret; } - public String getOurSigSecret() - { + public String getOurSigSecret() { return ourSigSecret; } - public void setDelFlag(String delFlag) - { + + public void setDelFlag(String delFlag) { this.delFlag = delFlag; } - public String getDelFlag() - { + public String getDelFlag() { return delFlag; } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.JSON_STYLE) - .append("id", getId()) - .append("platformName", getPlatformName()) - .append("platformType", getPlatformType()) - .append("urlPrefix", getUrlPrefix()) - .append("theirOperatorId", getTheirOperatorId()) - .append("theirOperatorSecret", getTheirOperatorSecret()) - .append("theirDataSecret", getTheirDataSecret()) - .append("theirDataSecretIv", getTheirDataSecretIv()) - .append("theirSigSecret", getTheirSigSecret()) - .append("ourOperatorSecret", getOurOperatorSecret()) - .append("ourDataSecret", getOurDataSecret()) - .append("ourDataSecretIv", getOurDataSecretIv()) - .append("ourSigSecret", getOurSigSecret()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .append("delFlag", getDelFlag()) - .toString(); + .append("id", getId()) + .append("platformName", getPlatformName()) + .append("platformType", getPlatformType()) + .append("urlPrefix", getUrlPrefix()) + .append("theirOperatorId", getTheirOperatorId()) + .append("theirOperatorSecret", getTheirOperatorSecret()) + .append("theirDataSecret", getTheirDataSecret()) + .append("theirDataSecretIv", getTheirDataSecretIv()) + .append("theirSigSecret", getTheirSigSecret()) + .append("ourOperatorSecret", getOurOperatorSecret()) + .append("ourDataSecret", getOurDataSecret()) + .append("ourDataSecretIv", getOurDataSecretIv()) + .append("ourSigSecret", getOurSigSecret()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("delFlag", getDelFlag()) + .toString(); } } diff --git a/jsowell-pile/src/main/java/com/jsowell/thirdparty/mapper/ThirdpartySecretInfoMapper.java b/jsowell-pile/src/main/java/com/jsowell/thirdparty/mapper/ThirdpartySecretInfoMapper.java index 2a2d6b9ed..c6f62361f 100644 --- a/jsowell-pile/src/main/java/com/jsowell/thirdparty/mapper/ThirdpartySecretInfoMapper.java +++ b/jsowell-pile/src/main/java/com/jsowell/thirdparty/mapper/ThirdpartySecretInfoMapper.java @@ -1,62 +1,64 @@ package com.jsowell.thirdparty.mapper; +import com.jsowell.pile.vo.ThirdPartySecretInfoVO; import com.jsowell.thirdparty.domain.ThirdpartySecretInfo; import java.util.List; /** * 对接三方平台配置Mapper接口 - * + * * @author jsowell * @date 2024-04-18 */ -public interface ThirdpartySecretInfoMapper -{ +public interface ThirdpartySecretInfoMapper { /** * 查询对接三方平台配置 - * + * * @param id 对接三方平台配置主键 * @return 对接三方平台配置 */ - public ThirdpartySecretInfo selectThirdpartySecretInfoById(Long id); + ThirdpartySecretInfo selectThirdpartySecretInfoById(Long id); /** * 查询对接三方平台配置列表 - * + * * @param thirdpartySecretInfo 对接三方平台配置 * @return 对接三方平台配置集合 */ - public List selectThirdpartySecretInfoList(ThirdpartySecretInfo thirdpartySecretInfo); + List selectThirdpartySecretInfoList(ThirdpartySecretInfo thirdpartySecretInfo); /** * 新增对接三方平台配置 - * + * * @param thirdpartySecretInfo 对接三方平台配置 * @return 结果 */ - public int insertThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo); + int insertThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo); /** * 修改对接三方平台配置 - * + * * @param thirdpartySecretInfo 对接三方平台配置 * @return 结果 */ - public int updateThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo); + int updateThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo); /** * 删除对接三方平台配置 - * + * * @param id 对接三方平台配置主键 * @return 结果 */ - public int deleteThirdpartySecretInfoById(Long id); + int deleteThirdpartySecretInfoById(Long id); /** * 批量删除对接三方平台配置 - * + * * @param ids 需要删除的数据主键集合 * @return 结果 */ - public int deleteThirdpartySecretInfoByIds(Long[] ids); + int deleteThirdpartySecretInfoByIds(Long[] ids); + + ThirdPartySecretInfoVO queryByOperatorId(String theirOperatorId); } diff --git a/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/ThirdpartySecretInfoService.java b/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/ThirdpartySecretInfoService.java index e5b149c06..8387c1dac 100644 --- a/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/ThirdpartySecretInfoService.java +++ b/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/ThirdpartySecretInfoService.java @@ -1,5 +1,6 @@ package com.jsowell.thirdparty.service; +import com.jsowell.pile.vo.ThirdPartySecretInfoVO; import com.jsowell.thirdparty.domain.ThirdpartySecretInfo; import java.util.List; @@ -58,4 +59,6 @@ public interface ThirdpartySecretInfoService { * @return 结果 */ public int deleteThirdpartySecretInfoById(Long id); + + ThirdPartySecretInfoVO queryByOperatorId(String theirOperatorId); } diff --git a/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/impl/ThirdpartySecretInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/impl/ThirdpartySecretInfoServiceImpl.java index 429e58eeb..d618c3d3a 100644 --- a/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/impl/ThirdpartySecretInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/thirdparty/service/impl/ThirdpartySecretInfoServiceImpl.java @@ -1,6 +1,7 @@ package com.jsowell.thirdparty.service.impl; import com.jsowell.common.util.DateUtils; +import com.jsowell.pile.vo.ThirdPartySecretInfoVO; import com.jsowell.thirdparty.domain.ThirdpartySecretInfo; import com.jsowell.thirdparty.mapper.ThirdpartySecretInfoMapper; import com.jsowell.thirdparty.service.ThirdpartySecretInfoService; @@ -87,4 +88,14 @@ public class ThirdpartySecretInfoServiceImpl implements ThirdpartySecretInfoServ public int deleteThirdpartySecretInfoById(Long id) { return thirdpartySecretInfoMapper.deleteThirdpartySecretInfoById(id); } + + /** + * 查询第三方平台密钥配置信息 + * @param theirOperatorId 第三方平台的组织结构代码 + * @return + */ + @Override + public ThirdPartySecretInfoVO queryByOperatorId(String theirOperatorId) { + return thirdpartySecretInfoMapper.queryByOperatorId(theirOperatorId); + } } diff --git a/jsowell-pile/src/main/resources/mapper/thirdparty/ThirdpartySecretInfoMapper.xml b/jsowell-pile/src/main/resources/mapper/thirdparty/ThirdpartySecretInfoMapper.xml index f48f853a3..632028045 100644 --- a/jsowell-pile/src/main/resources/mapper/thirdparty/ThirdpartySecretInfoMapper.xml +++ b/jsowell-pile/src/main/resources/mapper/thirdparty/ThirdpartySecretInfoMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - + @@ -12,7 +12,7 @@ - + @@ -25,11 +25,18 @@ - - select id, platform_name, platform_type, url_prefix, their_operator_id, their_operator_secret, their_data_secret, their_data_secret_Iv, their_sig_secret, our_operator_secret, our_data_secret, our_data_secret_iv, our_sig_secret, create_by, create_time, update_by, update_time, del_flag from thirdparty_secret_info + + id, platform_name, platform_type, url_prefix, their_operator_id, their_operator_secret, their_data_secret, + their_data_secret_iv, their_sig_secret, our_operator_secret, our_data_secret, our_data_secret_iv, + our_sig_secret, create_by, create_time, update_by, update_time, del_flag - and platform_name like concat('%', #{platformName}, '%') @@ -38,7 +45,7 @@ and their_operator_id = #{theirOperatorId} and their_operator_secret = #{theirOperatorSecret} and their_data_secret = #{theirDataSecret} - and their_data_secret_Iv = #{theirDataSecretIv} + and their_data_secret_iv = #{theirDataSecretIv} and their_sig_secret = #{theirSigSecret} and our_operator_secret = #{ourOperatorSecret} and our_data_secret = #{ourDataSecret} @@ -52,7 +59,7 @@ where id = #{id} - + insert into thirdparty_secret_info platform_name, @@ -61,7 +68,7 @@ their_operator_id, their_operator_secret, their_data_secret, - their_data_secret_Iv, + their_data_secret_iv, their_sig_secret, our_operator_secret, our_data_secret, @@ -94,7 +101,7 @@ - + update thirdparty_secret_info platform_name = #{platformName}, @@ -103,7 +110,7 @@ their_operator_id = #{theirOperatorId}, their_operator_secret = #{theirOperatorSecret}, their_data_secret = #{theirDataSecret}, - their_data_secret_Iv = #{theirDataSecretIv}, + their_data_secret_iv = #{theirDataSecretIv}, their_sig_secret = #{theirSigSecret}, our_operator_secret = #{ourOperatorSecret}, our_data_secret = #{ourDataSecret}, @@ -128,4 +135,21 @@ #{id} + + \ No newline at end of file diff --git a/jsowell-ui/src/views/thirdParty/secret/index.vue b/jsowell-ui/src/views/thirdParty/secret/index.vue index 72a9b03b9..b30aa4f47 100644 --- a/jsowell-ui/src/views/thirdParty/secret/index.vue +++ b/jsowell-ui/src/views/thirdParty/secret/index.vue @@ -171,7 +171,7 @@ /> - + @@ -206,9 +206,9 @@ - +