package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.dto.HuifuWalletBusiDto;
import com.zbkj.common.model.huifu.HuifuWalletBusi;
import org.apache.ibatis.annotations.Param;

/**
 * <b>  </b>
 * @author ZXF
 * @create 2023/07/31 0031 11:08
 * @version
 * @注意事项 </b>
 */
public interface HuifuWalletBusiDao extends BaseMapper<HuifuWalletBusi> {

    /**
     * 插入入驻业务信息
     *
     * @param huifuWalletBusi
     * @return
     * @author llc
     * @date 2019-06-22
     */
    int insertHuifuWalletBusi(HuifuWalletBusi huifuWalletBusi);
    /**
     * <b> 修改入驻业务信息 </b>
     * @author ZXF
     * @create 2023/04/12 0012 11:17
     * @version
     * @注意事项 </b>
     */
    int updateHuifuWalletBusiAll(HuifuWalletBusi huifuWalletBusi);



    int updateHuifuWalletTokenNo(HuifuWalletBusi huifuWalletBusi);


    /**
     * 查询企业钱包账户
     *
     * @param uid
     * @return
     * @author llc
     * @date 2019-06-24
     */
    HuifuWalletBusiDto getHuifuWalletBusiByAccountId(@Param("accountId") Integer accountId);

    /**
     * 根据钱包号查询企业钱包账户
     *
     * @param walletNo
     * @return
     * @author lp
     * @date 2019-09-03
     */
    HuifuWalletBusiDto getHuifuWalletBusiByWalletNo(@Param("walletNo") String walletNo);

    /**
     * <b> 根据结算卡号查询结算tokenNo </b>
     * @author ZXF
     * @create 2023/02/20 0020 17:03
     * @version
     * @注意事项 </b>
     */
    String getWalletTokenNoBybankCardNo(@Param("bankCardNo") String bankCardNo);


}
