/*
 * 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.InspectionTarget;
import com.codvision.basic.entity.vo.inspection.InspectionTargetVO;
import com.codvision.basic.mapper.inspection.InspectionTargetMapper;
import com.codvision.basic.service.inspection.InspectionTargetService;
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 InspectionTargetServiceImpl extends ServiceImpl<InspectionTargetMapper, InspectionTarget> implements InspectionTargetService {
    @Override
    public IPage<InspectionTargetVO> getPageResult(QueryPage<Map<String, Object>> queryPage) {
        return getBaseMapper().getPageResult(queryPage.getPage(), QueryPageUtil.queryMap(queryPage));
    }
}
