package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.TaxInfo;

import com.jwipc.sys.mapper.TaxMapper;
import com.jwipc.sys.model.po.TaxPO;
import com.jwipc.sys.model.query.TaxQuery;
import com.jwipc.sys.service.ITaxService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 税率主数据 服务实现类
 * </p>
 *
 * @author AL
 * @since 2024-02-22
 */
@Service
public class TaxServiceImpl extends ServiceImpl<TaxMapper, TaxInfo> implements ITaxService {
    @Override
    public List<TaxPO> findPageByQuery(Page<TaxInfo> dbPage, TaxQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
    @Override
    public TaxPO getDataById(Long id) {
        return baseMapper.getDataById(id);
    }
}
