update 对接lianlian平台

This commit is contained in:
2024-04-18 17:26:08 +08:00
parent 8f7b7d994e
commit 80632ec121
9 changed files with 1089 additions and 4 deletions

View File

@@ -0,0 +1,222 @@
package com.jsowell.thirdparty.domain;
import com.jsowell.common.annotation.Excel;
import com.jsowell.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 对接三方平台配置对象 thirdparty_secret_info
*
* @author jsowell
* @date 2024-04-18
*/
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-删除) */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPlatformName(String platformName)
{
this.platformName = platformName;
}
public String getPlatformName()
{
return platformName;
}
public void setPlatformType(String platformType)
{
this.platformType = platformType;
}
public String getPlatformType()
{
return platformType;
}
public void setUrlPrefix(String urlPrefix)
{
this.urlPrefix = urlPrefix;
}
public String getUrlPrefix()
{
return urlPrefix;
}
public void setTheirOperatorId(String theirOperatorId)
{
this.theirOperatorId = theirOperatorId;
}
public String getTheirOperatorId()
{
return theirOperatorId;
}
public void setTheirOperatorSecret(String theirOperatorSecret)
{
this.theirOperatorSecret = theirOperatorSecret;
}
public String getTheirOperatorSecret()
{
return theirOperatorSecret;
}
public void setTheirDataSecret(String theirDataSecret)
{
this.theirDataSecret = theirDataSecret;
}
public String getTheirDataSecret()
{
return theirDataSecret;
}
public void setTheirDataSecretIv(String theirDataSecretIv)
{
this.theirDataSecretIv = theirDataSecretIv;
}
public String getTheirDataSecretIv()
{
return theirDataSecretIv;
}
public void setTheirSigSecret(String theirSigSecret)
{
this.theirSigSecret = theirSigSecret;
}
public String getTheirSigSecret()
{
return theirSigSecret;
}
public void setOurOperatorSecret(String ourOperatorSecret)
{
this.ourOperatorSecret = ourOperatorSecret;
}
public String getOurOperatorSecret()
{
return ourOperatorSecret;
}
public void setOurDataSecret(String ourDataSecret)
{
this.ourDataSecret = ourDataSecret;
}
public String getOurDataSecret()
{
return ourDataSecret;
}
public void setOurDataSecretIv(String ourDataSecretIv)
{
this.ourDataSecretIv = ourDataSecretIv;
}
public String getOurDataSecretIv()
{
return ourDataSecretIv;
}
public void setOurSigSecret(String ourSigSecret)
{
this.ourSigSecret = ourSigSecret;
}
public String getOurSigSecret()
{
return ourSigSecret;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
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();
}
}

View File

@@ -0,0 +1,62 @@
package com.jsowell.thirdparty.mapper;
import com.jsowell.thirdparty.domain.ThirdpartySecretInfo;
import java.util.List;
/**
* 对接三方平台配置Mapper接口
*
* @author jsowell
* @date 2024-04-18
*/
public interface ThirdpartySecretInfoMapper
{
/**
* 查询对接三方平台配置
*
* @param id 对接三方平台配置主键
* @return 对接三方平台配置
*/
public ThirdpartySecretInfo selectThirdpartySecretInfoById(Long id);
/**
* 查询对接三方平台配置列表
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 对接三方平台配置集合
*/
public List<ThirdpartySecretInfo> selectThirdpartySecretInfoList(ThirdpartySecretInfo thirdpartySecretInfo);
/**
* 新增对接三方平台配置
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 结果
*/
public int insertThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo);
/**
* 修改对接三方平台配置
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 结果
*/
public int updateThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo);
/**
* 删除对接三方平台配置
*
* @param id 对接三方平台配置主键
* @return 结果
*/
public int deleteThirdpartySecretInfoById(Long id);
/**
* 批量删除对接三方平台配置
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteThirdpartySecretInfoByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.jsowell.thirdparty.service;
import com.jsowell.thirdparty.domain.ThirdpartySecretInfo;
import java.util.List;
/**
* 对接三方平台配置Service接口
*
* @author jsowell
* @date 2024-04-18
*/
public interface ThirdpartySecretInfoService {
/**
* 查询对接三方平台配置
*
* @param id 对接三方平台配置主键
* @return 对接三方平台配置
*/
public ThirdpartySecretInfo selectThirdpartySecretInfoById(Long id);
/**
* 查询对接三方平台配置列表
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 对接三方平台配置集合
*/
public List<ThirdpartySecretInfo> selectThirdpartySecretInfoList(ThirdpartySecretInfo thirdpartySecretInfo);
/**
* 新增对接三方平台配置
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 结果
*/
public int insertThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo);
/**
* 修改对接三方平台配置
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 结果
*/
public int updateThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo);
/**
* 批量删除对接三方平台配置
*
* @param ids 需要删除的对接三方平台配置主键集合
* @return 结果
*/
public int deleteThirdpartySecretInfoByIds(Long[] ids);
/**
* 删除对接三方平台配置信息
*
* @param id 对接三方平台配置主键
* @return 结果
*/
public int deleteThirdpartySecretInfoById(Long id);
}

View File

@@ -0,0 +1,90 @@
package com.jsowell.thirdparty.service.impl;
import com.jsowell.common.util.DateUtils;
import com.jsowell.thirdparty.domain.ThirdpartySecretInfo;
import com.jsowell.thirdparty.mapper.ThirdpartySecretInfoMapper;
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 对接三方平台配置Service业务层处理
*
* @author jsowell
* @date 2024-04-18
*/
@Service
public class ThirdpartySecretInfoServiceImpl implements ThirdpartySecretInfoService {
@Autowired
private ThirdpartySecretInfoMapper thirdpartySecretInfoMapper;
/**
* 查询对接三方平台配置
*
* @param id 对接三方平台配置主键
* @return 对接三方平台配置
*/
@Override
public ThirdpartySecretInfo selectThirdpartySecretInfoById(Long id) {
return thirdpartySecretInfoMapper.selectThirdpartySecretInfoById(id);
}
/**
* 查询对接三方平台配置列表
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 对接三方平台配置
*/
@Override
public List<ThirdpartySecretInfo> selectThirdpartySecretInfoList(ThirdpartySecretInfo thirdpartySecretInfo) {
return thirdpartySecretInfoMapper.selectThirdpartySecretInfoList(thirdpartySecretInfo);
}
/**
* 新增对接三方平台配置
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 结果
*/
@Override
public int insertThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo) {
thirdpartySecretInfo.setCreateTime(DateUtils.getNowDate());
return thirdpartySecretInfoMapper.insertThirdpartySecretInfo(thirdpartySecretInfo);
}
/**
* 修改对接三方平台配置
*
* @param thirdpartySecretInfo 对接三方平台配置
* @return 结果
*/
@Override
public int updateThirdpartySecretInfo(ThirdpartySecretInfo thirdpartySecretInfo) {
thirdpartySecretInfo.setUpdateTime(DateUtils.getNowDate());
return thirdpartySecretInfoMapper.updateThirdpartySecretInfo(thirdpartySecretInfo);
}
/**
* 批量删除对接三方平台配置
*
* @param ids 需要删除的对接三方平台配置主键
* @return 结果
*/
@Override
public int deleteThirdpartySecretInfoByIds(Long[] ids) {
return thirdpartySecretInfoMapper.deleteThirdpartySecretInfoByIds(ids);
}
/**
* 删除对接三方平台配置信息
*
* @param id 对接三方平台配置主键
* @return 结果
*/
@Override
public int deleteThirdpartySecretInfoById(Long id) {
return thirdpartySecretInfoMapper.deleteThirdpartySecretInfoById(id);
}
}