package com.jwipc.sys.service.impl;

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

import java.util.List;

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

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