package com.sonic.lion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sonic.lion.domain.entity.PayAccountFundFrozen;
import org.apache.ibatis.annotations.Param;

public interface PayAccountFundFrozenDao extends BaseMapper<PayAccountFundFrozen> {

    /**
     * 更改资金冻结记录为解冻状态
     *
     * @param id
     * @return
     */
    int unfreeze(@Param("id") Long id);

    /**
     * 根据交易号查询资金冻结记录
     *
     * @param tradeNo
     * @return
     */
    PayAccountFundFrozen selectByTradeNo(@Param("tradeNo") String tradeNo);
}