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

package com.codvision.workflow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.codvision.workflow.entity.QuestionnaireModule;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @author codvision
 */
public interface QuestionnaireModuleMapper extends BaseMapper<QuestionnaireModule> {

    /**
     * 分页通用查询
     * @param page 分页对象
     * @param paraMap 查询条件
     * @return 列表
     */
    IPage<QuestionnaireModule> getPageResult(IPage<Map<String, Object>> page, @Param("query") Map<String, Object> paraMap);

    /**
     * 检测是否已经填写过问卷
     * @param uuid uuid
     * @param webId webId
     * @return 数值
     */
    Integer checkFillIn(@Param("uuid") String uuid, @Param("webId") String webId);
}
