package com.jeequan.jeepay.service.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeequan.jeepay.db.entity.MemberAccountHistory;
import com.jeequan.jeepay.db.entity.MemberInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 会员账户流水表 Mapper 接口
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2023-04-12
 */
public interface MemberAccountHistoryMapper extends BaseMapper<MemberAccountHistory> {

    int updateBalanceByMbrId(MemberInfo updateRecord);

    int updateSafeKey(@Param("mbrId") String mbrId, @Param("safePwd") String safePwd);

    Map count(@Param("ew") LambdaQueryWrapper<MemberAccountHistory> wrapper);
}
