mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
station_setting_relation ----> thirdparty_station_relation
This commit is contained in:
@@ -11,7 +11,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
public class StationSettingRelation extends BaseEntity {
|
||||
public class ThirdPartyStationRelation extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
@@ -2,8 +2,8 @@ package com.jsowell.pile.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.StationSettingRelation;
|
||||
import com.jsowell.pile.vo.base.StationSettingRelationVO;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
@@ -13,45 +13,45 @@ import org.springframework.stereotype.Component;
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
@Component
|
||||
public interface StationSettingRelationMapper {
|
||||
public interface ThirdPartyStationRelationMapper {
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
public StationSettingRelation selectStationSettingRelationById(Long id);
|
||||
public ThirdPartyStationRelation selectThirdPartyStationRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应列表
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 站点、第三方推送平台配置对应集合
|
||||
*/
|
||||
public List<StationSettingRelation> selectStationSettingRelationList(StationSettingRelation stationSettingRelation);
|
||||
public List<ThirdPartyStationRelation> selectThirdPartyStationRelationList(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param stationSettingRelation
|
||||
* @param thirdPartyStationRelation
|
||||
* @return
|
||||
*/
|
||||
StationSettingRelationVO selectRelationInfo(StationSettingRelation stationSettingRelation);
|
||||
ThirdPartyStationRelationVO selectRelationInfo(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
public int insertThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 修改站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
public int updateThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 删除站点、第三方推送平台配置对应
|
||||
@@ -59,7 +59,7 @@ public interface StationSettingRelationMapper {
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationById(Long id);
|
||||
public int deleteThirdPartyStationRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除站点、第三方推送平台配置对应
|
||||
@@ -67,5 +67,5 @@ public interface StationSettingRelationMapper {
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationByIds(Long[] ids);
|
||||
public int deleteThirdPartyStationRelationByIds(Long[] ids);
|
||||
}
|
||||
@@ -2,8 +2,8 @@ package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.StationSettingRelation;
|
||||
import com.jsowell.pile.vo.base.StationSettingRelationVO;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Service接口
|
||||
@@ -11,45 +11,45 @@ import com.jsowell.pile.vo.base.StationSettingRelationVO;
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
public interface IStationSettingRelationService {
|
||||
public interface IThirdPartyStationRelationService {
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
public StationSettingRelation selectStationSettingRelationById(Long id);
|
||||
public ThirdPartyStationRelation selectThirdPartyStationRelationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应列表
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 站点、第三方推送平台配置对应集合
|
||||
*/
|
||||
public List<StationSettingRelation> selectStationSettingRelationList(StationSettingRelation stationSettingRelation);
|
||||
public List<ThirdPartyStationRelation> selectThirdPartyStationRelationList(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param stationSettingRelation
|
||||
* @param thirdPartyStationRelation
|
||||
* @return
|
||||
*/
|
||||
StationSettingRelationVO selectRelationInfo(StationSettingRelation stationSettingRelation);
|
||||
ThirdPartyStationRelationVO selectRelationInfo(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
public int insertThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 修改站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateStationSettingRelation(StationSettingRelation stationSettingRelation);
|
||||
public int updateThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation);
|
||||
|
||||
/**
|
||||
* 批量删除站点、第三方推送平台配置对应
|
||||
@@ -57,7 +57,7 @@ public interface IStationSettingRelationService {
|
||||
* @param ids 需要删除的站点、第三方推送平台配置对应主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationByIds(Long[] ids);
|
||||
public int deleteThirdPartyStationRelationByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除站点、第三方推送平台配置对应信息
|
||||
@@ -65,5 +65,5 @@ public interface IStationSettingRelationService {
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteStationSettingRelationById(Long id);
|
||||
public int deleteThirdPartyStationRelationById(Long id);
|
||||
}
|
||||
@@ -1,104 +0,0 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.common.util.SecurityUtils;
|
||||
import com.jsowell.framework.web.domain.server.Sys;
|
||||
import com.jsowell.pile.vo.base.StationSettingRelationVO;
|
||||
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 StationSettingRelationVO selectRelationInfo(StationSettingRelation stationSettingRelation) {
|
||||
return stationSettingRelationMapper.selectRelationInfo(stationSettingRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param stationSettingRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertStationSettingRelation(StationSettingRelation stationSettingRelation) {
|
||||
// stationSettingRelation.setCreateTime(DateUtils.getNowDate());
|
||||
stationSettingRelation.setCreateBy(SecurityUtils.getUsername());
|
||||
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,102 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.SecurityUtils;
|
||||
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.ThirdPartyStationRelationMapper;
|
||||
import com.jsowell.pile.domain.ThirdPartyStationRelation;
|
||||
import com.jsowell.pile.service.IThirdPartyStationRelationService;
|
||||
|
||||
/**
|
||||
* 站点、第三方推送平台配置对应Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-06-06
|
||||
*/
|
||||
@Service
|
||||
public class ThirdPartyStationRelationServiceImpl implements IThirdPartyStationRelationService {
|
||||
@Autowired
|
||||
private ThirdPartyStationRelationMapper thirdPartyStationRelationMapper;
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartyStationRelation selectThirdPartyStationRelationById(Long id) {
|
||||
return thirdPartyStationRelationMapper.selectThirdPartyStationRelationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置对应列表
|
||||
*
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 站点、第三方推送平台配置对应
|
||||
*/
|
||||
@Override
|
||||
public List<ThirdPartyStationRelation> selectThirdPartyStationRelationList(ThirdPartyStationRelation thirdPartyStationRelation) {
|
||||
return thirdPartyStationRelationMapper.selectThirdPartyStationRelationList(thirdPartyStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点、第三方推送平台配置
|
||||
* @param thirdPartyStationRelation
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ThirdPartyStationRelationVO selectRelationInfo(ThirdPartyStationRelation thirdPartyStationRelation) {
|
||||
return thirdPartyStationRelationMapper.selectRelationInfo(thirdPartyStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation) {
|
||||
// stationSettingRelation.setCreateTime(DateUtils.getNowDate());
|
||||
thirdPartyStationRelation.setCreateBy(SecurityUtils.getUsername());
|
||||
return thirdPartyStationRelationMapper.insertThirdPartyStationRelation(thirdPartyStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param thirdPartyStationRelation 站点、第三方推送平台配置对应
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateThirdPartyStationRelation(ThirdPartyStationRelation thirdPartyStationRelation) {
|
||||
// stationSettingRelation.setUpdateTime(DateUtils.getNowDate());
|
||||
return thirdPartyStationRelationMapper.updateThirdPartyStationRelation(thirdPartyStationRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除站点、第三方推送平台配置对应
|
||||
*
|
||||
* @param ids 需要删除的站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdPartyStationRelationByIds(Long[] ids) {
|
||||
return thirdPartyStationRelationMapper.deleteThirdPartyStationRelationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除站点、第三方推送平台配置对应信息
|
||||
*
|
||||
* @param id 站点、第三方推送平台配置对应主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteThirdPartyStationRelationById(Long id) {
|
||||
return thirdPartyStationRelationMapper.deleteThirdPartyStationRelationById(id);
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import lombok.Data;
|
||||
* @date 2023/6/6 8:48
|
||||
*/
|
||||
@Data
|
||||
public class StationSettingRelationVO {
|
||||
public class ThirdPartyStationRelationVO {
|
||||
private String stationId;
|
||||
|
||||
private String thirdPartyType;
|
||||
Reference in New Issue
Block a user