package com.jwipc.order.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.order.entity.FileLog;
import com.jwipc.order.mapper.FileLogMapper;
import com.jwipc.order.model.po.FileLogDTO;
import com.jwipc.order.model.query.BasicPlanQuery;
import com.jwipc.order.service.IFileLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 系统附件日志表 服务实现类
 * </p>
 *
 * @author 邓京术
 * @since 2025-05-15
 */
@Service
public class FileLogServiceImpl extends ServiceImpl<FileLogMapper, FileLog> implements IFileLogService {
    @Override
    public List<FileLogDTO> selectListByPage(Page<FileLog> dbPage, BasicPlanQuery query) {
        if(dbPage == null){
            return baseMapper.selectListByPage(query);
        }
        return baseMapper.selectListByPage(dbPage,query);
    }
}
