mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 04:25:21 +08:00
update
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.ThirdPartySettingInfo;
|
||||
|
||||
/**
|
||||
* 第三方平台配置Service接口
|
||||
*
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-24
|
||||
*/
|
||||
public interface IThirdPartySettingInfoService
|
||||
{
|
||||
public interface IThirdPartySettingInfoService {
|
||||
/**
|
||||
* 查询第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param id 第三方平台配置主键
|
||||
* @return 第三方平台配置
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ public interface IThirdPartySettingInfoService
|
||||
|
||||
/**
|
||||
* 查询第三方平台配置列表
|
||||
*
|
||||
*
|
||||
* @param thirdPartySettingInfo 第三方平台配置
|
||||
* @return 第三方平台配置集合
|
||||
*/
|
||||
@@ -29,7 +29,7 @@ public interface IThirdPartySettingInfoService
|
||||
|
||||
/**
|
||||
* 新增第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param thirdPartySettingInfo 第三方平台配置
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -37,7 +37,7 @@ public interface IThirdPartySettingInfoService
|
||||
|
||||
/**
|
||||
* 修改第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param thirdPartySettingInfo 第三方平台配置
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -45,7 +45,7 @@ public interface IThirdPartySettingInfoService
|
||||
|
||||
/**
|
||||
* 批量删除第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的第三方平台配置主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -53,9 +53,17 @@ public interface IThirdPartySettingInfoService
|
||||
|
||||
/**
|
||||
* 删除第三方平台配置信息
|
||||
*
|
||||
*
|
||||
* @param id 第三方平台配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteThirdPartySettingInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 根据站点id 查询配置列表
|
||||
*
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
public ThirdPartySettingInfo getInfoByStationId(Long stationId);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -10,87 +11,91 @@ import com.jsowell.pile.service.IThirdPartySettingInfoService;
|
||||
|
||||
/**
|
||||
* 第三方平台配置Service业务层处理
|
||||
*
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-24
|
||||
*/
|
||||
@Service
|
||||
public class ThirdPartySettingInfoServiceImpl implements IThirdPartySettingInfoService
|
||||
{
|
||||
public class ThirdPartySettingInfoServiceImpl implements IThirdPartySettingInfoService {
|
||||
@Autowired
|
||||
private ThirdPartySettingInfoMapper thirdPartySettingInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param id 第三方平台配置主键
|
||||
* @return 第三方平台配置
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartySettingInfo selectThirdPartySettingInfoById(Long id)
|
||||
{
|
||||
public ThirdPartySettingInfo selectThirdPartySettingInfoById(Long id) {
|
||||
return thirdPartySettingInfoMapper.selectThirdPartySettingInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询第三方平台配置列表
|
||||
*
|
||||
*
|
||||
* @param thirdPartySettingInfo 第三方平台配置
|
||||
* @return 第三方平台配置
|
||||
*/
|
||||
@Override
|
||||
public List<ThirdPartySettingInfo> selectThirdPartySettingInfoList(ThirdPartySettingInfo thirdPartySettingInfo)
|
||||
{
|
||||
public List<ThirdPartySettingInfo> selectThirdPartySettingInfoList(ThirdPartySettingInfo thirdPartySettingInfo) {
|
||||
return thirdPartySettingInfoMapper.selectThirdPartySettingInfoList(thirdPartySettingInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param thirdPartySettingInfo 第三方平台配置
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertThirdPartySettingInfo(ThirdPartySettingInfo thirdPartySettingInfo)
|
||||
{
|
||||
public int insertThirdPartySettingInfo(ThirdPartySettingInfo thirdPartySettingInfo) {
|
||||
thirdPartySettingInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return thirdPartySettingInfoMapper.insertThirdPartySettingInfo(thirdPartySettingInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param thirdPartySettingInfo 第三方平台配置
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateThirdPartySettingInfo(ThirdPartySettingInfo thirdPartySettingInfo)
|
||||
{
|
||||
public int updateThirdPartySettingInfo(ThirdPartySettingInfo thirdPartySettingInfo) {
|
||||
thirdPartySettingInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return thirdPartySettingInfoMapper.updateThirdPartySettingInfo(thirdPartySettingInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除第三方平台配置
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的第三方平台配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdPartySettingInfoByIds(Long[] ids)
|
||||
{
|
||||
public int deleteThirdPartySettingInfoByIds(Long[] ids) {
|
||||
return thirdPartySettingInfoMapper.deleteThirdPartySettingInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除第三方平台配置信息
|
||||
*
|
||||
*
|
||||
* @param id 第三方平台配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdPartySettingInfoById(Long id)
|
||||
{
|
||||
public int deleteThirdPartySettingInfoById(Long id) {
|
||||
return thirdPartySettingInfoMapper.deleteThirdPartySettingInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据站点id 查询配置列表
|
||||
*
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartySettingInfo getInfoByStationId(Long stationId) {
|
||||
return thirdPartySettingInfoMapper.getInfoByStationId(stationId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user