package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.SysConfig;
import com.jwipc.sys.mapper.SysConfigMapper;
import com.jwipc.sys.model.po.SysConfigPO;
import com.jwipc.sys.model.query.SysConfigQuery;
import com.jwipc.sys.service.ISysConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统配置表 服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-01-27
 */
@Service
public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig> implements ISysConfigService {

    @Override
    public List<SysConfigPO> findPageByQuery(Page<SysConfig> dbPage, SysConfigQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
}
