|
@@ -3,10 +3,11 @@ package com.zhongzheng.controller.bank;
|
|
|
import java.util.List;
|
|
|
import java.util.Arrays;
|
|
|
|
|
|
-import com.zhongzheng.modules.bank.bo.QuestionModuleAddBo;
|
|
|
-import com.zhongzheng.modules.bank.bo.QuestionModuleEditBo;
|
|
|
-import com.zhongzheng.modules.bank.bo.QuestionModuleQueryBo;
|
|
|
+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.IQuestionModuleService;
|
|
|
+import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
|
import com.zhongzheng.modules.bank.vo.QuestionModuleVo;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -42,6 +43,8 @@ public class QuestionModuleController extends BaseController {
|
|
|
|
|
|
private final IQuestionModuleService iQuestionModuleService;
|
|
|
|
|
|
+ private final IQuestionBusinessService iQuestionBusinessService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询题目模块列表
|
|
|
*/
|
|
@@ -109,4 +112,17 @@ public class QuestionModuleController extends BaseController {
|
|
|
public AjaxResult<Void> remove(@PathVariable Long[] questionModuleIds) {
|
|
|
return toAjax(iQuestionModuleService.deleteWithValidByIds(Arrays.asList(questionModuleIds), true) ? 1 : 0);
|
|
|
}*/
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询题目业务层次关系列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询业务层次关系列表")
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:business:list')")
|
|
|
+ @GetMapping("/business/list")
|
|
|
+ public TableDataInfo<QuestionBusiness> businessList(QuestionBusinessQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ bo.setType(QuestionBusiness.TYPE_QUESTION_MODULE);
|
|
|
+ List<QuestionBusiness> list = iQuestionBusinessService.getListById(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
}
|