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,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);
}
}