Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileAuthCardMapper.java

162 lines
3.7 KiB
Java
Raw Normal View History

2023-03-16 13:19:27 +08:00
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.PileAuthCard;
2023-03-24 13:15:52 +08:00
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-30 10:54:02 +08:00
import org.apache.ibatis.annotations.Param;
2023-03-16 13:19:27 +08:00
import org.springframework.stereotype.Repository;
2023-12-01 13:29:35 +08:00
import java.util.List;
2023-03-16 13:19:27 +08:00
@Repository
public interface PileAuthCardMapper {
2023-12-01 13:29:35 +08:00
/**
* delete by primary key
*
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(Integer id);
/**
* insert record to table
*
* @param record the record
* @return insert count
*/
int insert(PileAuthCard record);
int insertOrUpdate(PileAuthCard record);
int insertOrUpdateSelective(PileAuthCard record);
/**
* insert record to table selective
*
* @param record the record
* @return insert count
*/
int insertSelective(PileAuthCard record);
/**
* select by primary key
*
* @param id primary key
* @return object by primary key
*/
PileAuthCard selectByPrimaryKey(Integer id);
/**
* update record selective
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(PileAuthCard record);
/**
* update record
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(PileAuthCard record);
int updateBatch(List<PileAuthCard> list);
int batchInsert(@Param("list") 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);
2023-03-16 13:19:27 +08:00
2023-03-24 13:15:52 +08:00
PileAuthCardVO getCardInfoById(Long id);
2023-12-01 13:29:35 +08:00
/**
* 查询充电站鉴权卡信息
2023-12-01 13:29:35 +08:00
*
* @param pileAuthCard
* @return
*/
2023-12-01 13:29:35 +08:00
PileAuthCard selectPileAuthCardInfo(PileAuthCard pileAuthCard);
2023-03-16 13:19:27 +08:00
/**
* 查询充电站鉴权卡列表
*
* @param pileAuthCard 充电站鉴权卡
* @return 充电站鉴权卡集合
*/
2023-12-01 13:29:35 +08:00
List<PileAuthCard> selectPileAuthCardList(PileAuthCard pileAuthCard);
2023-03-16 13:19:27 +08:00
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-12-01 13:29:35 +08:00
List<PileAuthCardVO> getPileAuthCardInfoList(PileAuthCardDTO dto);
2023-03-23 10:09:22 +08:00
2023-03-16 13:19:27 +08:00
/**
* 新增充电站鉴权卡
*
* @param pileAuthCard 充电站鉴权卡
* @return 结果
*/
2023-12-01 13:29:35 +08:00
int insertPileAuthCard(PileAuthCard pileAuthCard);
2023-03-16 13:19:27 +08:00
/**
* 修改充电站鉴权卡
*
* @param pileAuthCard 充电站鉴权卡
* @return 结果
*/
2023-12-01 13:29:35 +08:00
int updatePileAuthCard(PileAuthCard pileAuthCard);
2023-03-16 13:19:27 +08:00
/**
* 删除充电站鉴权卡
*
* @param id 充电站鉴权卡主键
* @return 结果
*/
2023-12-01 13:29:35 +08:00
int deletePileAuthCardById(Long id);
2023-03-16 13:19:27 +08:00
2023-03-28 14:31:31 +08:00
/**
* 停用某张卡
2023-12-01 13:29:35 +08:00
*
2023-03-28 14:31:31 +08:00
* @param id
* @return
*/
int deactivateCard(Long id);
2023-03-16 13:19:27 +08:00
/**
* 批量删除充电站鉴权卡
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
2023-12-01 13:29:35 +08:00
int deletePileAuthCardByIds(Long[] ids);
2023-03-20 17:02:30 +08:00
int unBindingCard(PileAuthCard pileAuthCard);
2023-03-30 10:54:02 +08:00
/**
* 根据逻辑卡号查询某状态的鉴权卡信息
2023-12-01 13:29:35 +08:00
*
2023-03-30 10:54:02 +08:00
* @param status
* @param logicCard
* @return
*/
PileAuthCard selectSomeStatusCardInfo(@Param("status") String status, @Param("logicCard") String logicCard);
/**
* 通过memberId查询鉴权卡列表 小程序用
2023-12-01 13:29:35 +08:00
*
* @param memberId
* @return
*/
List<AuthCardVO> getAuthCardListByMemberId(@Param("memberId") String memberId);
2023-12-01 13:29:35 +08:00
}