|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.daoSe; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoSe.SeCardOperate; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSe.*; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.voSt.VoClientOpenCardCount; | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-02-02 16:00 | 
|---|
|  |  |  | * @LastEditTime 2024-02-02 16:00 | 
|---|
|  |  |  | * @date 2025-05-08 17:15 | 
|---|
|  |  |  | * @LastEditTime 2025-05-08 17:15 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface SeCardOperateMapper extends BaseMapper<SeCardOperate> { | 
|---|
|  |  |  | public interface SeCardOperateMapper { | 
|---|
|  |  |  | int deleteByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int insert(SeCardOperate record); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer turnOperateValidByCardId(@Param("cardId") Long cardId, @Param("operateType") Integer operateType); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 充值机用根据订单号将操作记录改为有效 | 
|---|
|  |  |  | * @param orderNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer turnOperateValidByOrderNumber(String orderNumber); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 充值机用获取充值操作后新的余额及充值时间 | 
|---|
|  |  |  | * @param orderNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //Float getBalanceAfterRecharge(String orderNumber); | 
|---|
|  |  |  | VoAfterRecharge getBalanceAfterRecharge(String orderNumber); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 充值机用根据水卡ID获取同步充值记录数量 | 
|---|
|  |  |  | * @param cardId | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer getPlusRechargeCount(Long cardId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据水卡ID、操作类型获取获取最后一条记录,判断开卡是否同步充值使用 | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | SeCardOperate getCardOperate(@Param("operateType") Integer operateType, @Param("cardId") Long cardId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 充值机用根据订单号获取非交易金额 | 
|---|
|  |  |  | * @param orderNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Float getNoTradeAmount(String orderNumber); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 充值机用根据订单号获取操作时间 | 
|---|
|  |  |  | * @param orderNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Date getOperateTime(String orderNumber); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 充值机使用根据订单号获取操作记录 | 
|---|
|  |  |  | * @param orderNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | VoRepaySupplementSimple getCardOperateByOrderNumber(String orderNumber); | 
|---|
|  |  |  | } | 
|---|