package com.fdkankan.manage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fdkankan.manage.entity.InvoiceRegister;
import com.fdkankan.manage.mapper.IInvoiceRegisterMapper;
import com.fdkankan.manage.service.IInvoiceRegisterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 开票登记表 服务实现类
 * </p>
 *
 * @author 
 * @since 2022-06-02
 */
@Service
public class InvoiceRegisterServiceImpl extends ServiceImpl<IInvoiceRegisterMapper, InvoiceRegister> implements IInvoiceRegisterService {

    @Override
    public InvoiceRegister getByInvoiceId(long invoiceId) {
        return this.getOne(new LambdaQueryWrapper<InvoiceRegister>().eq(InvoiceRegister::getInvoiceId, invoiceId));
    }
}
