mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +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;
|
||||
|
||||
/**
|
||||
* 站点白名单对象 pile_station_whitelist
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-04-19
|
||||
*/
|
||||
public class PileStationWhitelist extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 站点id
|
||||
*/
|
||||
@Excel(name = "站点id")
|
||||
private String stationId;
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
@Excel(name = "会员id")
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 删除标识(0-正常;1-删除)
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setStationId(String stationId) {
|
||||
this.stationId = stationId;
|
||||
}
|
||||
|
||||
public String getStationId() {
|
||||
return stationId;
|
||||
}
|
||||
|
||||
public void setMemberId(String memberId) {
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public String getMemberId() {
|
||||
return memberId;
|
||||
}
|
||||
|
||||
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("memberId", getMemberId())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileStationWhitelist;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 站点白名单Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-04-19
|
||||
*/
|
||||
@Repository
|
||||
public interface PileStationWhitelistMapper {
|
||||
/**
|
||||
* 查询站点白名单
|
||||
*
|
||||
* @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 id 站点白名单主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileStationWhitelistById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除站点白名单
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileStationWhitelistByIds(Long[] ids);
|
||||
}
|
||||
@@ -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