|
@@ -5,13 +5,17 @@ import com.zhongzheng.common.core.controller.BaseController;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
|
+import com.zhongzheng.framework.web.service.WxTokenService;
|
|
import com.zhongzheng.modules.bank.bo.*;
|
|
import com.zhongzheng.modules.bank.bo.*;
|
|
import com.zhongzheng.modules.bank.domain.QuestionBusiness;
|
|
import com.zhongzheng.modules.bank.domain.QuestionBusiness;
|
|
import com.zhongzheng.modules.bank.service.IExamQuestionService;
|
|
import com.zhongzheng.modules.bank.service.IExamQuestionService;
|
|
import com.zhongzheng.modules.bank.service.IExamService;
|
|
import com.zhongzheng.modules.bank.service.IExamService;
|
|
import com.zhongzheng.modules.bank.service.IQuestionBusinessService;
|
|
import com.zhongzheng.modules.bank.service.IQuestionBusinessService;
|
|
|
|
+import com.zhongzheng.modules.bank.service.IQuestionChapterExamService;
|
|
import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
import com.zhongzheng.modules.bank.vo.ExamQuestionVo;
|
|
import com.zhongzheng.modules.bank.vo.ExamVo;
|
|
import com.zhongzheng.modules.bank.vo.ExamVo;
|
|
|
|
+import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -39,8 +43,15 @@ public class ExamController extends BaseController {
|
|
|
|
|
|
private final IExamQuestionService iExamQuestionService;
|
|
private final IExamQuestionService iExamQuestionService;
|
|
|
|
|
|
|
|
+ private final IQuestionChapterExamService iQuestionChapterExamService;
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ private final WxTokenService wxTokenService;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 获取试卷详细信息
|
|
* 获取试卷详细信息
|
|
*/
|
|
*/
|
|
@@ -50,6 +61,16 @@ public class ExamController extends BaseController {
|
|
return AjaxResult.success(iExamService.queryById(examId));
|
|
return AjaxResult.success(iExamService.queryById(examId));
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询关联试卷列表
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation("查询章卷关联试卷列表")
|
|
|
|
+ @GetMapping("/exam/list")
|
|
|
|
+ public AjaxResult<List<ExamVo>> examList(QuestionChapterExamQueryBo bo) {
|
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
|
+ List<ExamVo> list = iQuestionChapterExamService.getList(bo);
|
|
|
|
+ return AjaxResult.success(list);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|