/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.service.impl.inspection;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codvision.basic.entity.inspection.InspectionChecklist;
import com.codvision.basic.mapper.inspection.InspectionChecklistMapper;
import com.codvision.basic.service.inspection.InspectionChecklistService;
import com.codvision.webcore.bean.QueryPage;
import com.codvision.webcore.util.QueryPageUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author codvision
 */
@Service
public class InspectionChecklistServiceImpl extends ServiceImpl<InspectionChecklistMapper, InspectionChecklist> implements InspectionChecklistService {
    @Override
    public IPage<InspectionChecklist> getPageResult(QueryPage<Map<String, Object>> queryPage) {
        return getBaseMapper().getPageResult(queryPage.getPage(), QueryPageUtil.queryMap(queryPage));
    }
}
