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

package com.codvision.workflow.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codvision.webcore.bean.QueryPage;
import com.codvision.webcore.util.QueryPageUtil;
import com.codvision.workflow.entity.QuestionnaireResult;
import com.codvision.workflow.mapper.QuestionnaireResultMapper;
import com.codvision.workflow.service.QuestionnaireResultService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author codvision
 */
@Service
public class QuestionnaireResultServiceImpl extends ServiceImpl<QuestionnaireResultMapper, QuestionnaireResult> implements QuestionnaireResultService {

    @Override
    public IPage<QuestionnaireResult> getPageResult(QueryPage<Map<String, Object>> queryPage) {
        return getBaseMapper().getPageResult(queryPage.getPage(), QueryPageUtil.queryMap(queryPage));
    }
}
