You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.7 KiB
69 lines
1.7 KiB
package com.ccic.safeliab.dao; |
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|
import com.ccic.safeliab.entity.ExDict; |
|
import com.ccic.safeliab.entity.Industry; |
|
import com.ccic.safeliab.entity.QuestionCategories; |
|
import org.apache.ibatis.annotations.Mapper; |
|
import org.apache.ibatis.annotations.Param; |
|
|
|
import java.util.List; |
|
|
|
/** |
|
* Mapper 接口 |
|
* |
|
* @author Chill |
|
*/ |
|
@Mapper |
|
public interface QuestionMapper extends BaseMapper<QuestionCategories> { |
|
|
|
/** |
|
* 主键查询 |
|
*/ |
|
QuestionCategories selectQuestionById(Integer questionId); |
|
|
|
/** |
|
* 查询当前页数据 |
|
* |
|
* @param industryId 监管行业 |
|
* @param serviceTypeId 服务类型 |
|
* @param questionContent 题干条件 |
|
* @param offset 偏移量 |
|
* @param num 每页显示的记录数 |
|
* @return 当前页数据 |
|
*/ |
|
List<QuestionCategories> getList( |
|
@Param("industryId") Long industryId, |
|
@Param("serviceTypeId") Long serviceTypeId, |
|
@Param("questionContent") String questionContent, |
|
@Param("offset") int offset, |
|
@Param("num") int num); |
|
|
|
/** |
|
* 查询总数量 |
|
* |
|
* @param industryId 监管行业 |
|
* @param serviceTypeId 服务类型 |
|
* @param questionContent 题干条件 |
|
* @return 总数量 |
|
*/ |
|
int getListSize( |
|
@Param("industryId") Long industryId, |
|
@Param("serviceTypeId") Long serviceTypeId, |
|
@Param("questionContent") String questionContent); |
|
|
|
/** |
|
* 获取行业 |
|
* |
|
* @return 行业 |
|
*/ |
|
List<Industry> getIndustry(); |
|
|
|
/** |
|
* 查询当题目详情 |
|
* |
|
* @param id 监管行业 |
|
* @return 题目详情 |
|
*/ |
|
QuestionCategories getDetail(@Param("id") Long id); |
|
}
|
|
|