mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 01:50:17 +08:00
update 对接lianlian平台
This commit is contained in:
61
jsowell-pile/src/main/java/com/jsowell/thirdparty/service/ThirdpartySecretInfoService.java
vendored
Normal file
61
jsowell-pile/src/main/java/com/jsowell/thirdparty/service/ThirdpartySecretInfoService.java
vendored
Normal 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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user