package com.jwipc.shopping.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jwipc.shopping.entity.CostCenter;
import com.jwipc.shopping.mapper.CostCenterMapper;
import com.jwipc.shopping.service.ICostCenterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.jwipc.constant.DbTypeConst.SQLSERVER;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-04-11
 */
@Service
@DS(SQLSERVER)
public class CostCenterServiceImpl extends ServiceImpl<CostCenterMapper, CostCenter> implements ICostCenterService {
    @Override
    public Integer findCount(LambdaQueryWrapper<CostCenter> queryWrapper) {
        return this.baseMapper.findCount(queryWrapper);
    }

    @Override
    public List<CostCenter> findListForPage(Integer offset, Integer rows, LambdaQueryWrapper<CostCenter> queryWrapper) {
        return this.baseMapper.findListForPage(offset,rows,queryWrapper);
    }
}
