package com.matrix.system.hive.dao;
|
|
import com.matrix.system.hive.bean.Question;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
import com.matrix.core.pojo.PaginationVO;
|
|
import java.util.Map;
|
|
|
/**
|
*
|
* @date 2017-03-01 09:42
|
*/
|
|
|
public interface QuestionDao{
|
|
public int insert(Question question);
|
|
public int batchInsert(@Param("list") List<Question> questionList);
|
|
public int updateByMap(Map<String, Object> modifyMap);
|
|
public int updateByModel(Question question);
|
|
public int deleteByIds(@Param("list") List<Long> list);
|
|
public int deleteById(Long id);
|
|
public int deleteByModel(@Param("record") Question question);
|
|
public List<Question> selectInPage(@Param("record") Question question, @Param("pageVo") PaginationVO pageVo);
|
|
public List<Question> selectByModel(@Param("record") Question question);
|
|
public int selectTotalRecord(@Param("record") Question question);
|
|
public Question selectById(Long id);
|
|
public Question selectForUpdate(Long id);
|
/**
|
* 根据会员id,与问题分类,获取一个分类的所有问卷及答案
|
* @param id 会员
|
* @param type 问卷分类
|
* @return
|
*/
|
public List<Question> selectVipAnswerAllByModel(@Param("id") Long id, @Param("type") String type);
|
|
}
|