mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-26 22:15:06 +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.PileAuthCard;
|
||||
|
||||
/**
|
||||
* 充电站鉴权卡Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-03-16
|
||||
*/
|
||||
public interface IPileAuthCardService {
|
||||
/**
|
||||
* 查询充电站鉴权卡
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
public PileAuthCard selectPileAuthCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 充电站鉴权卡集合
|
||||
*/
|
||||
public List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 新增充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileAuthCard(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 修改充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileAuthCard(PileAuthCard pileAuthCard);
|
||||
|
||||
/**
|
||||
* 批量删除充电站鉴权卡
|
||||
*
|
||||
* @param ids 需要删除的充电站鉴权卡主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileAuthCardByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除充电站鉴权卡信息
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileAuthCardById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
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.PileAuthCardMapper;
|
||||
import com.jsowell.pile.domain.PileAuthCard;
|
||||
import com.jsowell.pile.service.IPileAuthCardService;
|
||||
|
||||
/**
|
||||
* 充电站鉴权卡Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-03-16
|
||||
*/
|
||||
@Service
|
||||
public class PileAuthCardServiceImpl implements IPileAuthCardService {
|
||||
@Autowired
|
||||
private PileAuthCardMapper pileAuthCardMapper;
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
@Override
|
||||
public PileAuthCard selectPileAuthCardById(Long id) {
|
||||
return pileAuthCardMapper.selectPileAuthCardById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询充电站鉴权卡列表
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 充电站鉴权卡
|
||||
*/
|
||||
@Override
|
||||
public List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.selectPileAuthCardList(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPileAuthCard(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.insertPileAuthCard(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改充电站鉴权卡
|
||||
*
|
||||
* @param pileAuthCard 充电站鉴权卡
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePileAuthCard(PileAuthCard pileAuthCard) {
|
||||
return pileAuthCardMapper.updatePileAuthCard(pileAuthCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除充电站鉴权卡
|
||||
*
|
||||
* @param ids 需要删除的充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePileAuthCardByIds(Long[] ids) {
|
||||
return pileAuthCardMapper.deletePileAuthCardByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除充电站鉴权卡信息
|
||||
*
|
||||
* @param id 充电站鉴权卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePileAuthCardById(Long id) {
|
||||
return pileAuthCardMapper.deletePileAuthCardById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user