|  |  | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
 |  |  | import com.dy.pipIrrGlobal.pojoSe.SeVirtualCard; | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoCardInfo1; | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoVcRecharge; | 
 |  |  | import com.dy.pipIrrGlobal.voSe.VoVirtualCard; | 
 |  |  | 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 | 
 |  |  | 
 |  |  |      * 获取农户全部虚拟卡 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoVirtualCard> getVCs(@Param("clientId") Long clientId); | 
 |  |  |     List<VoVirtualCard> getVCs(@Param("alarmValue") Integer alarmValue, @Param("clientId") Long clientId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据虚拟卡ID获取虚拟卡对象 | 
 |  |  |      * @param vcId | 
 |  |  |      * @return | 
 |  |  |      * @param vcId 虚拟卡ID | 
 |  |  |      * @return 虚拟卡对象 | 
 |  |  |      */ | 
 |  |  |     VoVirtualCard getVcById(@Param("vcId") Long vcId); | 
 |  |  |  | 
 |  |  | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     SeVirtualCard getVcCardByNum(@Param("vcNum") String vcNum); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据虚拟水卡编号获取对应的农户id和姓名 | 
 |  |  |      * @param vcNum | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Map getClientIdAndNameByVsCardNo(@Param("vcNum") Long vcNum); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 得到水卡对象 | 
 |  |  |      * @param cardNum | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoCardInfo1> getCardsByNum(@Param("cardNum") Long cardNum); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据虚拟卡编号获取虚拟卡ID | 
 |  |  | 
 |  |  |      * @param intakeId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     void updateVcCardNoUseStateByIntakeId(@Param("intakeId")Long intakeId) ; | 
 |  |  |     void updateVcCardNoUseStateByIntakeId(@Param("intakeId")Long intakeId, @Param("now")Date now) ; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取虚拟卡充值记录 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     List<VoVcRecharge> getVcRechargeRecords(Map<?, ?> params); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取虚拟卡充值记录数 | 
 |  |  |      * @param params | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Long getRechargeRecordCount(Map<?, ?> params); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 更新实体卡剩余金额 | 
 |  |  |      * @param id | 
 |  |  |      * @param money | 
 |  |  |      */ | 
 |  |  |     void updateMoney(@Param("id")Long id , @Param("money")Double money); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 根据农户ID及虚拟卡ID获取正常状态的虚拟卡对象,销卡使用 | 
 |  |  |      * @param clientId | 
 |  |  |      * @param vcId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     SeVirtualCard getVcByClientIdAndVcId(@Param("clientId")Long clientId, @Param("vcId")Long vcId); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 注销虚拟卡 | 
 |  |  |      * @param vcId | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     Integer cancelVc(@Param("clientId")Long clientId, @Param("vcId")Long vcId); | 
 |  |  | } |