package com.jwipc.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.LogThirdPartyInterface;
import com.jwipc.sys.mapper.LogThirdPartyInterfaceMapper;
import com.jwipc.sys.model.po.LogThirdPartyInterfacePO;
import com.jwipc.sys.model.query.ThirdLogQuery;
import com.jwipc.sys.service.ILogThirdPartyInterfaceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 调用第三方系统接口日志表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-30
 */
@Service
public class LogThirdPartyInterfaceServiceImpl extends ServiceImpl<LogThirdPartyInterfaceMapper, LogThirdPartyInterface> implements ILogThirdPartyInterfaceService {

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