/*
 * 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.InspectionRecordItem;
import com.codvision.basic.mapper.inspection.InspectionRecordItemMapper;
import com.codvision.basic.service.inspection.InspectionRecordItemService;
import com.codvision.webcore.bean.QueryPage;
import com.codvision.webcore.util.QueryPageUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author codvison
 */
@Service
public class InspectionRecordItemServiceImpl extends ServiceImpl<InspectionRecordItemMapper, InspectionRecordItem> implements InspectionRecordItemService {
    @Override
    public IPage<InspectionRecordItem> getPageResult(QueryPage<Map<String, Object>> queryPage) {
        return getBaseMapper().getPageResult(queryPage.getPage(), QueryPageUtil.queryMap(queryPage));
    }
}
