jyy
2021-01-26 2c25c956ee0dc781500c70c7479c36f8b58f3445
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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);
    
}