package cn.pluss.platform.mapper;

import cn.pluss.platform.entity.JftReceiptInfo;
import cn.pluss.platform.vo.JftReceiptInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 收银呗缴费通收款单 Mapper 接口
 * </p>
 *
 * @author crystal
 * @since 2022-06-16
 */
public interface JftReceiptInfoMapper extends BaseMapper<JftReceiptInfo> {

    /**
     * 缴费通
     * @param page
     * @param condition
     * @return
     */
    Page<JftReceiptInfoVO> pageInfo(@Param("page") Page<JftReceiptInfoVO> page, @Param("condition") JftReceiptInfo condition);

    /**
     * 根据token查询
     * @param token
     * @return
     */
    @Select("SELECT * FROM tb_pluss_jft_receipt_info WHERE token = #{token}")
    JftReceiptInfo getByToken(String token);
}
