package cn.com.countrygarden.bi.main.dao.review;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.com.countrygarden.bi.main.core.Mapper;
import cn.com.countrygarden.bi.main.core.Result;
import cn.com.countrygarden.bi.main.dto.ReviewQuestionnairelistVo;
import cn.com.countrygarden.bi.main.model.review.ReviewQuestionnaire;
/**
 * 问卷表-数据层
 *
 * @author 汤婷
 * @email www.justintoforest@gamail.com
 * @url 
 * @date 2018-06-25
 */
public interface ReviewQuestionnaireMapper extends Mapper<ReviewQuestionnaire>{
	
	
	String selectReviewQuestionnaireName(@Param(value="questionnaireId") int questionnaireId);


	Result queryQuestionnaireAndproblemOne(int id);

	
	public Integer getfalag(@Param(value="id")Integer id);
	
	public Integer getisrepeat(@Param(value="id")Integer id,@Param(value="judgeId")Integer judgeId,@Param(value="questionnaireId")Integer questionnaireId);

	List<ReviewQuestionnairelistVo> ReviewQuestionnairelistVo(@Param("name") String name,
			@Param("hasRole") boolean hasRole, @Param("userCode") String userCode,@Param("investigationmanagementId")Integer investigationmanagementId);
	
}