package com.dy.pipIrrGlobal.daoSe; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.dy.pipIrrGlobal.pojoSe.SeClientCard; import com.dy.pipIrrGlobal.voSe.VoCardInfo; import com.dy.pipIrrGlobal.voSe.VoCards; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; /** * @author ZhuBaoMin * @date 2023/12/22 16:04 * @LastEditTime 2023/12/22 16:04 * @Description */ @Mapper public interface SeClientCardMapper extends BaseMapper { int deleteByPrimaryKey(Long id); int insert(SeClientCard record); int insertSelective(SeClientCard record); SeClientCard selectByPrimaryKey(Long id); int updateByPrimaryKeySelective(SeClientCard record); int updateByPrimaryKey(SeClientCard record); /** * 依据水卡地址获取水卡编号(12月19日废弃) * @param cardAddr * @return */ Long getCardIdByAddr(@Param("cardAddr") String cardAddr); /** * 根据水卡编号获取水卡表主键(12月19日添加后废弃) * @param cardNum 16位水卡编号 * @return 水卡表主键 */ Long getCardIdByNum(@Param("cardNum") String cardNum); /** * 根据行政区划串模块查询水卡编号 * @param areaCode * @return */ String getCardNumOfMax(@Param("areaCode") String areaCode); /** * 根据水卡编号获取水卡表主键及农户编号 * @param cardNum * @return */ Map getCardIdAndClientNum(@Param("cardNum") String cardNum); /** * 根据农户主键获取水卡列表 * @param clientId * @return */ List getCardInfoByClientId(@Param("clientId") Long clientId); /** * 根据水卡编号获取操作记录列表 * @param cardNum 水卡编号 * @return 水卡操作记录列表 */ List> getOperateRecordsByCardNum(@Param("cardNum") Long cardNum); /** * 根据水卡编号获取余额 * @param cardNum 水卡编号 * @return 余额 */ Float getMoneyByCardNum(@Param("cardNum") Long cardNum); /** * 根据水卡编号获取充值总额 * @param cardNum * @return */ Float sumRechargeByCardNum(@Param("cardNum") Long cardNum); /** * 根据水卡编号获取卡片状态 * @param cardNum * @return */ String getCardStateByCardNum(@Param("cardNum") Long cardNum); /** * 根据指定条件获取水卡列表记录数,应用程序使用 * @param params * @return */ Long getCardsCount(Map params); /** * 根据指定条件获取水卡列表,应用程序使用 * @param params * @return */ List getCards(Map params); }