mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
新增 对接平台配置表
This commit is contained in:
@@ -0,0 +1,136 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import com.jsowell.common.annotation.Excel;
|
||||
import com.jsowell.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 对接平台配置信息对象 docking_platform_config
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-27
|
||||
*/
|
||||
public class DockingPlatformConfig extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Integer id;
|
||||
|
||||
/** 对接平台名称 */
|
||||
@Excel(name = "对接平台名称")
|
||||
private String name;
|
||||
|
||||
/** 运营商id */
|
||||
@Excel(name = "运营商id")
|
||||
private String operatorId;
|
||||
|
||||
/** 运营商密钥 */
|
||||
@Excel(name = "运营商密钥")
|
||||
private String operatorSecret;
|
||||
|
||||
/** 签名密钥 */
|
||||
@Excel(name = "签名密钥")
|
||||
private String signSecret;
|
||||
|
||||
/** 消息密钥 */
|
||||
@Excel(name = "消息密钥")
|
||||
private String dataSecret;
|
||||
|
||||
/** 消息密钥初始化向量 */
|
||||
@Excel(name = "消息密钥初始化向量")
|
||||
private String dataSecretIv;
|
||||
|
||||
/** 删除标识 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setOperatorId(String operatorId)
|
||||
{
|
||||
this.operatorId = operatorId;
|
||||
}
|
||||
|
||||
public String getOperatorId()
|
||||
{
|
||||
return operatorId;
|
||||
}
|
||||
public void setOperatorSecret(String operatorSecret)
|
||||
{
|
||||
this.operatorSecret = operatorSecret;
|
||||
}
|
||||
|
||||
public String getOperatorSecret()
|
||||
{
|
||||
return operatorSecret;
|
||||
}
|
||||
public void setSignSecret(String signSecret)
|
||||
{
|
||||
this.signSecret = signSecret;
|
||||
}
|
||||
|
||||
public String getSignSecret()
|
||||
{
|
||||
return signSecret;
|
||||
}
|
||||
public void setDataSecret(String dataSecret)
|
||||
{
|
||||
this.dataSecret = dataSecret;
|
||||
}
|
||||
|
||||
public String getDataSecret()
|
||||
{
|
||||
return dataSecret;
|
||||
}
|
||||
public void setDataSecretIv(String dataSecretIv)
|
||||
{
|
||||
this.dataSecretIv = dataSecretIv;
|
||||
}
|
||||
|
||||
public String getDataSecretIv()
|
||||
{
|
||||
return dataSecretIv;
|
||||
}
|
||||
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("name", getName())
|
||||
.append("operatorId", getOperatorId())
|
||||
.append("operatorSecret", getOperatorSecret())
|
||||
.append("signSecret", getSignSecret())
|
||||
.append("dataSecret", getDataSecret())
|
||||
.append("dataSecretIv", getDataSecretIv())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.domain.DockingPlatformConfig;
|
||||
|
||||
/**
|
||||
* 对接平台配置信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-27
|
||||
*/
|
||||
public interface DockingPlatformConfigMapper
|
||||
{
|
||||
/**
|
||||
* 查询对接平台配置信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
public DockingPlatformConfig selectDockingPlatformConfigById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息列表
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 对接平台配置信息集合
|
||||
*/
|
||||
public List<DockingPlatformConfig> selectDockingPlatformConfigList(DockingPlatformConfig dockingPlatformConfig);
|
||||
|
||||
/**
|
||||
* 新增对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig);
|
||||
|
||||
/**
|
||||
* 修改对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig);
|
||||
|
||||
/**
|
||||
* 删除对接平台配置信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDockingPlatformConfigById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除对接平台配置信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDockingPlatformConfigByIds(Integer[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.domain.DockingPlatformConfig;
|
||||
|
||||
/**
|
||||
* 对接平台配置信息Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-05-27
|
||||
*/
|
||||
public interface IDockingPlatformConfigService
|
||||
{
|
||||
/**
|
||||
* 查询对接平台配置信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 对接平台配置信息
|
||||
*/
|
||||
public DockingPlatformConfig selectDockingPlatformConfigById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询对接平台配置信息列表
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 对接平台配置信息集合
|
||||
*/
|
||||
public List<DockingPlatformConfig> selectDockingPlatformConfigList(DockingPlatformConfig dockingPlatformConfig);
|
||||
|
||||
/**
|
||||
* 新增对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig);
|
||||
|
||||
/**
|
||||
* 修改对接平台配置信息
|
||||
*
|
||||
* @param dockingPlatformConfig 对接平台配置信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDockingPlatformConfig(DockingPlatformConfig dockingPlatformConfig);
|
||||
|
||||
/**
|
||||
* 批量删除对接平台配置信息
|
||||
*
|
||||
* @param ids 需要删除的对接平台配置信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDockingPlatformConfigByIds(Integer[] ids);
|
||||
|
||||
/**
|
||||
* 删除对接平台配置信息信息
|
||||
*
|
||||
* @param id 对接平台配置信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDockingPlatformConfigById(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user