package com.malk.qiwang.mapper;

import com.malk.qiwang.entity.CompanyTitle;
import com.malk.qiwang.entity.InvoiceLibrary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 发票库表 Mapper 接口
 * </p>
 *
 * @author LQY
 * @since 2026-04-27
 */
public interface InvoiceLibraryMapper extends BaseMapper<InvoiceLibrary> {

      /**
     * 根据发票号查询发票记录
     * @param invoiceNumber 发票号码
     * @return 发票记录
     */
    @Select("SELECT * FROM invoice_library WHERE invoice_number = #{invoiceNumber} LIMIT 1")
    InvoiceLibrary selectByInvoiceNumber(@Param("invoiceNumber") String invoiceNumber);
}
