mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 21:15:06 +08:00
修改表名、实体类
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.domain.DockingPlatformConfig;
|
||||
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
|
||||
|
||||
/**
|
||||
* 对接平台配置信息Service接口
|
||||
@@ -9,7 +9,7 @@ import com.jsowell.pile.domain.DockingPlatformConfig;
|
||||
* @author jsowell
|
||||
* @date 2023-05-27
|
||||
*/
|
||||
public interface IDockingPlatformConfigService
|
||||
public interface IThirdPartyPlatformConfigService
|
||||
{
|
||||
/**
|
||||
* 查询对接平台配置信息
|
||||
@@ -17,31 +17,31 @@ public interface IDockingPlatformConfigService
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
public DockingPlatformConfig selectDockingPlatformConfigById(Integer id);
|
||||
public ThirdPartyPlatformConfig selectThirdPartyPlatformConfigById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息列表
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @param thirdPartyPlatformConfig 对接平台配置信息
|
||||
* @return 对接平台配置信息集合
|
||||
*/
|
||||
public List<DockingPlatformConfig> selectDockingPlatformConfigList(DockingPlatformConfig dockingPlatformConfig);
|
||||
public List<ThirdPartyPlatformConfig> selectThirdPartyPlatformConfigList(ThirdPartyPlatformConfig thirdPartyPlatformConfig);
|
||||
|
||||
/**
|
||||
* 新增对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @param thirdPartyPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig);
|
||||
public int insertThirdPartyPlatformConfig(ThirdPartyPlatformConfig thirdPartyPlatformConfig);
|
||||
|
||||
/**
|
||||
* 修改对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @param thirdPartyPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig);
|
||||
public int updateThirdPartyPlatformConfig(ThirdPartyPlatformConfig thirdPartyPlatformConfig);
|
||||
|
||||
/**
|
||||
* 批量删除对接平台配置信息
|
||||
@@ -49,7 +49,7 @@ public interface IDockingPlatformConfigService
|
||||
* @param ids 需要删除的对接平台配置信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDockingPlatformConfigByIds(Integer[] ids);
|
||||
public int deleteThirdPartyPlatformConfigByIds(Integer[] ids);
|
||||
|
||||
/**
|
||||
* 删除对接平台配置信息信息
|
||||
@@ -57,12 +57,12 @@ public interface IDockingPlatformConfigService
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDockingPlatformConfigById(Integer id);
|
||||
public int deleteThirdPartyPlatformConfigById(Integer id);
|
||||
|
||||
/**
|
||||
* 通过operatorId查询配置信息
|
||||
* @param operatorId
|
||||
* @return
|
||||
*/
|
||||
DockingPlatformConfig getInfoByOperatorId(String operatorId);
|
||||
ThirdPartyPlatformConfig getInfoByOperatorId(String operatorId);
|
||||
}
|
||||
@@ -1,101 +0,0 @@
|
||||
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;
|
||||
import com.jsowell.pile.mapper.DockingPlatformConfigMapper;
|
||||
import com.jsowell.pile.domain.DockingPlatformConfig;
|
||||
import com.jsowell.pile.service.IDockingPlatformConfigService;
|
||||
|
||||
/**
|
||||
* 对接平台配置信息Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-27
|
||||
*/
|
||||
@Service
|
||||
public class DockingPlatformConfigServiceImpl implements IDockingPlatformConfigService {
|
||||
@Autowired
|
||||
private DockingPlatformConfigMapper dockingPlatformConfigMapper;
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
@Override
|
||||
public DockingPlatformConfig selectDockingPlatformConfigById(Integer id) {
|
||||
return dockingPlatformConfigMapper.selectDockingPlatformConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息列表
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
@Override
|
||||
public List<DockingPlatformConfig> selectDockingPlatformConfigList(DockingPlatformConfig dockingPlatformConfig) {
|
||||
return dockingPlatformConfigMapper.selectDockingPlatformConfigList(dockingPlatformConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig) {
|
||||
dockingPlatformConfig.setCreateTime(DateUtils.getNowDate());
|
||||
return dockingPlatformConfigMapper.insertDockingPlatformConfig(dockingPlatformConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig) {
|
||||
dockingPlatformConfig.setUpdateTime(DateUtils.getNowDate());
|
||||
return dockingPlatformConfigMapper.updateDockingPlatformConfig(dockingPlatformConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除对接平台配置信息
|
||||
*
|
||||
* @param ids 需要删除的对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDockingPlatformConfigByIds(Integer[] ids) {
|
||||
return dockingPlatformConfigMapper.deleteDockingPlatformConfigByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除对接平台配置信息信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDockingPlatformConfigById(Integer id) {
|
||||
return dockingPlatformConfigMapper.deleteDockingPlatformConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过operatorId查询配置信息
|
||||
*
|
||||
* @param operatorId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public DockingPlatformConfig getInfoByOperatorId(String operatorId) {
|
||||
return dockingPlatformConfigMapper.getInfoByOperatorId(operatorId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
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;
|
||||
import com.jsowell.pile.mapper.ThirdPartyPlatformConfigMapper;
|
||||
import com.jsowell.pile.domain.ThirdPartyPlatformConfig;
|
||||
import com.jsowell.pile.service.IThirdPartyPlatformConfigService;
|
||||
|
||||
/**
|
||||
* 对接平台配置信息Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-27
|
||||
*/
|
||||
@Service
|
||||
public class ThirdPartyPlatformConfigServiceImpl implements IThirdPartyPlatformConfigService {
|
||||
@Autowired
|
||||
private ThirdPartyPlatformConfigMapper thirdPartyPlatformConfigMapper;
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartyPlatformConfig selectThirdPartyPlatformConfigById(Integer id) {
|
||||
return thirdPartyPlatformConfigMapper.selectThirdPartyPlatformConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息列表
|
||||
*
|
||||
* @param thirdPartyPlatformConfig 对接平台配置信息
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
@Override
|
||||
public List<ThirdPartyPlatformConfig> selectThirdPartyPlatformConfigList(ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
|
||||
return thirdPartyPlatformConfigMapper.selectThirdPartyPlatformConfigList(thirdPartyPlatformConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增对接平台配置信息
|
||||
*
|
||||
* @param thirdPartyPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertThirdPartyPlatformConfig(ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
|
||||
thirdPartyPlatformConfig.setCreateTime(DateUtils.getNowDate());
|
||||
return thirdPartyPlatformConfigMapper.insertThirdPartyPlatformConfig(thirdPartyPlatformConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改对接平台配置信息
|
||||
*
|
||||
* @param thirdPartyPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateThirdPartyPlatformConfig(ThirdPartyPlatformConfig thirdPartyPlatformConfig) {
|
||||
thirdPartyPlatformConfig.setUpdateTime(DateUtils.getNowDate());
|
||||
return thirdPartyPlatformConfigMapper.updateThirdPartyPlatformConfig(thirdPartyPlatformConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除对接平台配置信息
|
||||
*
|
||||
* @param ids 需要删除的对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdPartyPlatformConfigByIds(Integer[] ids) {
|
||||
return thirdPartyPlatformConfigMapper.deleteThirdPartyPlatformConfigByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除对接平台配置信息信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdPartyPlatformConfigById(Integer id) {
|
||||
return thirdPartyPlatformConfigMapper.deleteThirdPartyPlatformConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过operatorId查询配置信息
|
||||
*
|
||||
* @param operatorId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartyPlatformConfig getInfoByOperatorId(String operatorId) {
|
||||
return thirdPartyPlatformConfigMapper.getInfoByOperatorId(operatorId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user