package com.ruoyi.account.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ruoyi.account.api.dto.ChargingCardExcelDTO; import com.ruoyi.account.api.dto.ChargingCardQueryDTO; import com.ruoyi.account.api.model.TChargingCard; import org.apache.ibatis.annotations.Param; import java.math.BigDecimal; import java.util.List; public interface TChargingCardMapper extends BaseMapper { IPage selectCardPage(Page page, @Param("query") ChargingCardQueryDTO query); List selectExportList(@Param("query") ChargingCardQueryDTO query); int countByCardNo(@Param("cardNo") String cardNo, @Param("excludeId") Long excludeId); int adjustBalance(@Param("ids") List ids, @Param("amount") BigDecimal amount, @Param("type") Integer type, @Param("maxAmount") BigDecimal maxAmount, @Param("updateBy") Long updateBy); int insertBalanceRecord(@Param("cardId") Long cardId, @Param("type") Integer type, @Param("amount") BigDecimal amount, @Param("remark") String remark, @Param("createBy") Long createBy); }