2023-03-16 13:19:27 +08:00
|
|
|
|
package com.jsowell.pile.service;
|
|
|
|
|
|
|
|
|
|
|
|
import com.jsowell.pile.domain.PileAuthCard;
|
2023-03-24 10:33:05 +08:00
|
|
|
|
import com.jsowell.pile.dto.PileAuthCardDTO;
|
2023-05-24 08:46:20 +08:00
|
|
|
|
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
|
|
|
|
|
2023-03-18 10:59:02 +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);
|
|
|
|
|
|
|
2023-03-24 10:33:05 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 新增充电站鉴权卡
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param dto 充电站鉴权卡
|
|
|
|
|
|
* @return 结果
|
|
|
|
|
|
*/
|
2023-05-24 08:46:20 +08:00
|
|
|
|
int addAuthCard(PileAuthCardDTO dto);
|
2023-03-24 10:33:05 +08:00
|
|
|
|
|
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);
|
2023-05-24 08:46:20 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 通过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
|
|
|
|
}
|