mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
新增 站点、第三方推送平台配置对应表
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
package com.jsowell.pile.domain;
|
||||
|
||||
import com.jsowell.common.annotation.Excel;
|
||||
import com.jsowell.common.core.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应对象 station_setting_relation
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
public class StationSettingRelation extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 站点id
|
||||
*/
|
||||
@Excel(name = "站点id")
|
||||
private Long stationId;
|
||||
|
||||
/**
|
||||
* 三方配置类型
|
||||
*/
|
||||
@Excel(name = "三方配置类型")
|
||||
private String thirdPartyType;
|
||||
|
||||
/**
|
||||
* 删除标识
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setStationId(Long stationId) {
|
||||
this.stationId = stationId;
|
||||
}
|
||||
|
||||
public Long getStationId() {
|
||||
return stationId;
|
||||
}
|
||||
|
||||
public void setThirdPartyType(String thirdPartyType) {
|
||||
this.thirdPartyType = thirdPartyType;
|
||||
}
|
||||
|
||||
public String getThirdPartyType() {
|
||||
return thirdPartyType;
|
||||
}
|
||||
|
||||
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("stationId", getStationId())
|
||||
.append("thirdPartyType", getThirdPartyType())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.StationSettingRelation;
|
||||
import com.jsowell.pile.vo.base.StationSettingRelationVO;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
@Component
|
||||
public interface StationSettingRelationMapper {
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
public StationSettingRelation selectStationSettingRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应列表
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 站点、第三方推送平台配置对应集合
|
||||
*/
|
||||
public List<StationSettingRelation> selectStationSettingRelationList(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param stationSettingRelation
|
||||
* @return
|
||||
*/
|
||||
StationSettingRelationVO selectRelationInfo(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 修改站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 删除站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.StationSettingRelation;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
public interface IStationSettingRelationService {
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
public StationSettingRelation selectStationSettingRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应列表
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 站点、第三方推送平台配置对应集合
|
||||
*/
|
||||
public List<StationSettingRelation> selectStationSettingRelationList(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param stationSettingRelation
|
||||
* @return
|
||||
*/
|
||||
StationSettingRelation selectRelationInfo(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 修改站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
|
||||
/**
|
||||
* 批量删除站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param ids 需要删除的站点、第三方推送平台配置对应主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除站点、第三方推送平台配置对应信息
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
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.StationSettingRelationMapper;
|
||||
import com.jsowell.pile.domain.StationSettingRelation;
|
||||
import com.jsowell.pile.service.IStationSettingRelationService;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
@Service
|
||||
public class StationSettingRelationServiceImpl implements IStationSettingRelationService {
|
||||
@Autowired
|
||||
private StationSettingRelationMapper stationSettingRelationMapper;
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
@Override
|
||||
public StationSettingRelation selectStationSettingRelationById(Long id) {
|
||||
return stationSettingRelationMapper.selectStationSettingRelationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应列表
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
@Override
|
||||
public List<StationSettingRelation> selectStationSettingRelationList(StationSettingRelation stationSettingRelation) {
|
||||
return stationSettingRelationMapper.selectStationSettingRelationList(stationSettingRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param stationSettingRelation
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public StationSettingRelation selectRelationInfo(StationSettingRelation stationSettingRelation) {
|
||||
return stationSettingRelationMapper.selectRelationInfo(stationSettingRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation) {
|
||||
stationSettingRelation.setCreateTime(DateUtils.getNowDate());
|
||||
return stationSettingRelationMapper.insertStationSettingRelation(stationSettingRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateStationSettingRelation(StationSettingRelation stationSettingRelation) {
|
||||
stationSettingRelation.setUpdateTime(DateUtils.getNowDate());
|
||||
return stationSettingRelationMapper.updateStationSettingRelation(stationSettingRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param ids 需要删除的站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStationSettingRelationByIds(Long[] ids) {
|
||||
return stationSettingRelationMapper.deleteStationSettingRelationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除站点、第三方推送平台配置对应信息
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteStationSettingRelationById(Long id) {
|
||||
return stationSettingRelationMapper.deleteStationSettingRelationById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.jsowell.pile.vo.base;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 站点、配置信息VO
|
||||
*
|
||||
* @author JS-ZZA
|
||||
* @date 2023/6/6 8:48
|
||||
*/
|
||||
@Data
|
||||
public class StationSettingRelationVO {
|
||||
private String stationId;
|
||||
|
||||
private String thirdPartyType;
|
||||
|
||||
private String urlAddress;
|
||||
private String operatorId;
|
||||
private String operatorSecret;
|
||||
private String signSecret;
|
||||
private String dataSecret;
|
||||
private String dataSecretIv;
|
||||
}
|
||||
Reference in New Issue
Block a user