package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.DigitalSealConfig;
import com.jwipc.sys.mapper.DigitalSealConfigMapper;
import com.jwipc.sys.model.query.DigitalSealConfigQuery;
import com.jwipc.sys.service.IDigitalSealConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 电子印章配置表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-06-19
 */
@Service
public class DigitalSealConfigServiceImpl extends ServiceImpl<DigitalSealConfigMapper, DigitalSealConfig> implements IDigitalSealConfigService {

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