mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-27 14:35:11 +08:00
站点白名单
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.PileStationWhitelist;
|
||||
|
||||
/**
|
||||
* 站点白名单Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-04-19
|
||||
*/
|
||||
public interface IPileStationWhitelistService {
|
||||
/**
|
||||
* 查询站点白名单
|
||||
*
|
||||
* @param id 站点白名单主键
|
||||
* @return 站点白名单
|
||||
*/
|
||||
public PileStationWhitelist selectPileStationWhitelistById(Long id);
|
||||
|
||||
/**
|
||||
* 查询站点白名单列表
|
||||
*
|
||||
* @param pileStationWhitelist 站点白名单
|
||||
* @return 站点白名单集合
|
||||
*/
|
||||
public List<PileStationWhitelist> selectPileStationWhitelistList(PileStationWhitelist pileStationWhitelist);
|
||||
|
||||
/**
|
||||
* 新增站点白名单
|
||||
*
|
||||
* @param pileStationWhitelist 站点白名单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileStationWhitelist(PileStationWhitelist pileStationWhitelist);
|
||||
|
||||
/**
|
||||
* 修改站点白名单
|
||||
*
|
||||
* @param pileStationWhitelist 站点白名单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileStationWhitelist(PileStationWhitelist pileStationWhitelist);
|
||||
|
||||
/**
|
||||
* 批量删除站点白名单
|
||||
*
|
||||
* @param ids 需要删除的站点白名单主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileStationWhitelistByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除站点白名单信息
|
||||
*
|
||||
* @param id 站点白名单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileStationWhitelistById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.domain.PileStationWhitelist;
|
||||
import com.jsowell.pile.mapper.PileStationWhitelistMapper;
|
||||
import com.jsowell.pile.service.IPileStationWhitelistService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 站点白名单Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-04-19
|
||||
*/
|
||||
@Service
|
||||
public class PileStationWhitelistServiceImpl implements IPileStationWhitelistService {
|
||||
@Autowired
|
||||
private PileStationWhitelistMapper pileStationWhitelistMapper;
|
||||
|
||||
/**
|
||||
* 查询站点白名单
|
||||
*
|
||||
* @param id 站点白名单主键
|
||||
* @return 站点白名单
|
||||
*/
|
||||
@Override
|
||||
public PileStationWhitelist selectPileStationWhitelistById(Long id) {
|
||||
return pileStationWhitelistMapper.selectPileStationWhitelistById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询站点白名单列表
|
||||
*
|
||||
* @param pileStationWhitelist 站点白名单
|
||||
* @return 站点白名单
|
||||
*/
|
||||
@Override
|
||||
public List<PileStationWhitelist> selectPileStationWhitelistList(PileStationWhitelist pileStationWhitelist) {
|
||||
return pileStationWhitelistMapper.selectPileStationWhitelistList(pileStationWhitelist);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增站点白名单
|
||||
*
|
||||
* @param pileStationWhitelist 站点白名单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPileStationWhitelist(PileStationWhitelist pileStationWhitelist) {
|
||||
pileStationWhitelist.setCreateTime(DateUtils.getNowDate());
|
||||
return pileStationWhitelistMapper.insertPileStationWhitelist(pileStationWhitelist);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改站点白名单
|
||||
*
|
||||
* @param pileStationWhitelist 站点白名单
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePileStationWhitelist(PileStationWhitelist pileStationWhitelist) {
|
||||
pileStationWhitelist.setUpdateTime(DateUtils.getNowDate());
|
||||
return pileStationWhitelistMapper.updatePileStationWhitelist(pileStationWhitelist);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除站点白名单
|
||||
*
|
||||
* @param ids 需要删除的站点白名单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePileStationWhitelistByIds(Long[] ids) {
|
||||
return pileStationWhitelistMapper.deletePileStationWhitelistByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除站点白名单信息
|
||||
*
|
||||
* @param id 站点白名单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePileStationWhitelistById(Long id) {
|
||||
return pileStationWhitelistMapper.deletePileStationWhitelistById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user