package com.jwipc.spe.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.spe.entity.QmAuditManage;
import com.jwipc.spe.entity.QmNoticeOrder;
import com.jwipc.spe.mapper.QmAuditManageMapper;
import com.jwipc.spe.model.po.QmAuditManagePO;
import com.jwipc.spe.model.po.QmNoticeOrderPO;
import com.jwipc.spe.model.query.QmAuditManageQuery;
import com.jwipc.spe.model.query.QmNoticeOrderQuery;
import com.jwipc.spe.service.IQmAuditManageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 稽核整改主表 服务实现类
 * </p>
 *
 * @author Al
 * @since 2024-03-19
 */
@Service
public class QmAuditManageServiceImpl extends ServiceImpl<QmAuditManageMapper, QmAuditManage> implements IQmAuditManageService {

    @Override
    public List<QmAuditManagePO> findPageByQuery(Page<QmAuditManage> dbPage, QmAuditManageQuery query) {
        if (dbPage==null){
            return baseMapper.findPageByQuery(query);
        }
        return baseMapper.findPageByQuery(dbPage,query);
    }
    @Override
    public QmAuditManagePO getDataById(Long id) {
        return baseMapper.getDataById(id);
    }

    @Override
    public List<QmAuditManagePO> findNoticeQmAuditManageList() {
        return baseMapper.findNoticeQmAuditManageList();
    }
}
