Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/service/PileAuthCardService.java

152 lines
3.5 KiB
Java
Raw Normal View History

2023-03-16 13:19:27 +08:00
package com.jsowell.pile.service;
import com.jsowell.pile.domain.PileAuthCard;
import com.jsowell.pile.dto.PileAuthCardDTO;
import com.jsowell.pile.vo.uniapp.AuthCardVO;
2023-03-23 10:09:22 +08:00
import com.jsowell.pile.vo.web.PileAuthCardVO;
2023-03-16 13:19:27 +08:00
2023-12-01 13:29:35 +08:00
import java.util.List;
public interface PileAuthCardService{
int deleteByPrimaryKey(Integer id);
int insert(PileAuthCard record);
int insertOrUpdate(PileAuthCard record);
int insertOrUpdateSelective(PileAuthCard record);
int insertSelective(PileAuthCard record);
PileAuthCard selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PileAuthCard record);
int updateByPrimaryKey(PileAuthCard record);
int updateBatch(List<PileAuthCard> list);
int batchInsert(List<PileAuthCard> list);
2023-03-16 13:19:27 +08:00
/**
* 查询充电站鉴权卡
*
* @param id 充电站鉴权卡主键
* @return 充电站鉴权卡
*/
2023-03-24 13:15:52 +08:00
// public PileAuthCard selectPileAuthCardById(Long id);
PileAuthCardVO getCardInfoById(Long id);
2023-03-16 13:19:27 +08:00
/**
* 查询充电站鉴权卡信息
* @param pileAuthCard
* @return
*/
PileAuthCard selectPileAuthCardInfo(PileAuthCard pileAuthCard);
2023-03-16 13:19:27 +08:00
/**
* 查询充电站鉴权卡列表
*
* @param pileAuthCard 充电站鉴权卡
* @return 充电站鉴权卡集合
*/
public List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard);
2023-03-23 10:09:22 +08:00
/**
* 查询充电站鉴权卡列表
*
2023-03-24 13:15:52 +08:00
* @param dto 充电站鉴权卡
2023-03-23 10:09:22 +08:00
* @return 充电站鉴权卡集合
*/
2023-03-24 13:15:52 +08:00
public List<PileAuthCardVO> getPileAuthCardInfoList(PileAuthCardDTO dto);
2023-03-23 10:09:22 +08:00
2023-03-16 13:19:27 +08:00
/**
* 新增充电站鉴权卡
*
* @param pileAuthCard 充电站鉴权卡
* @return 结果
*/
public int insertPileAuthCard(PileAuthCard pileAuthCard);
/**
* 新增充电站鉴权卡
*
* @param dto 充电站鉴权卡
* @return 结果
*/
int addAuthCard(PileAuthCardDTO dto);
2023-03-16 13:19:27 +08:00
/**
* 修改充电站鉴权卡
*
* @param pileAuthCard 充电站鉴权卡
* @return 结果
*/
public int updatePileAuthCard(PileAuthCard pileAuthCard);
2023-03-24 13:15:52 +08:00
public int updateCardInfo(PileAuthCardDTO dto);
2023-03-16 13:19:27 +08:00
/**
* 批量删除充电站鉴权卡
*
* @param ids 需要删除的充电站鉴权卡主键集合
* @return 结果
*/
public int deletePileAuthCardByIds(Long[] ids);
/**
* 删除充电站鉴权卡信息
*
* @param id 充电站鉴权卡主键
* @return 结果
*/
public int deletePileAuthCardById(Long id);
2023-03-20 17:02:30 +08:00
2023-03-28 14:31:31 +08:00
/**
* 停用某张卡
* @param id
* @return
*/
int deactivateCard(Long id);
2023-03-20 17:02:30 +08:00
int unBindingCard(PileAuthCard pileAuthCard);
2023-03-30 10:54:02 +08:00
/**
* 根据逻辑卡号查询某状态的鉴权卡信息
* @param status
* @param logicCard
* @return
*/
PileAuthCard selectSomeStatusCardInfo(String status, String logicCard);
/**
* 通过逻辑卡号查询卡信息
* @param logicCard
* @return
*/
PileAuthCard selectCardInfoByLogicCard(String logicCard);
/**
* 通过memberId查询鉴权卡列表 小程序用
* @param memberId
* @return
*/
List<AuthCardVO> getAuthCardListByMemberId(String memberId);
2023-05-24 09:58:01 +08:00
/**
* 用户绑定鉴权卡 (小程序用)
* @param dto
*/
int bindAuthCard(PileAuthCardDTO dto);
2023-05-24 10:55:55 +08:00
/**
* 用户解绑鉴权卡 (小程序用)
* @param dto
* @return
*/
int unbindAuthCard(PileAuthCardDTO dto);
2023-12-01 13:29:35 +08:00
2023-03-16 13:19:27 +08:00
}