|
@@ -6,8 +6,10 @@ import java.util.Arrays;
|
|
|
import com.zhongzheng.modules.bank.bo.*;
|
|
|
import com.zhongzheng.modules.bank.domain.QuestionBusiness;
|
|
|
import com.zhongzheng.modules.bank.service.IQuestionBusinessService;
|
|
|
+import com.zhongzheng.modules.bank.service.IQuestionModuleChapterService;
|
|
|
import com.zhongzheng.modules.bank.service.IQuestionModuleService;
|
|
|
import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
|
+import com.zhongzheng.modules.bank.vo.QuestionChapterVo;
|
|
|
import com.zhongzheng.modules.bank.vo.QuestionModuleVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -45,6 +47,8 @@ public class QuestionModuleController extends BaseController {
|
|
|
|
|
|
private final IQuestionBusinessService iQuestionBusinessService;
|
|
|
|
|
|
+ private final IQuestionModuleChapterService iQuestionModuleChapterService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询题目模块列表
|
|
|
*/
|
|
@@ -125,4 +129,15 @@ public class QuestionModuleController extends BaseController {
|
|
|
List<QuestionBusiness> list = iQuestionBusinessService.getListById(bo);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询题目业务层次关系列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询关联章卷列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:business:list')")
|
|
|
+ @GetMapping("/chapter/list")
|
|
|
+ public AjaxResult<List<QuestionChapterVo>> questionList(QuestionModuleChapterQueryBo bo) {
|
|
|
+ List<QuestionChapterVo> list = iQuestionModuleChapterService.getList(bo);
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
}
|