ExamArrangementController.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.zhongzheng.controller.exam;
  2. import com.zhongzheng.common.annotation.Log;
  3. import com.zhongzheng.common.core.controller.BaseController;
  4. import com.zhongzheng.common.core.domain.AjaxResult;
  5. import com.zhongzheng.common.core.page.TableDataInfo;
  6. import com.zhongzheng.common.enums.BusinessType;
  7. import com.zhongzheng.modules.exam.bo.*;
  8. import com.zhongzheng.modules.exam.service.IExamArrangementGuideService;
  9. import com.zhongzheng.modules.exam.service.IExamArrangementService;
  10. import com.zhongzheng.modules.exam.vo.ExamArrangementGuideVo;
  11. import com.zhongzheng.modules.exam.vo.ExamArrangementVo;
  12. import com.zhongzheng.modules.exam.vo.ExamUserVo;
  13. import io.swagger.annotations.Api;
  14. import io.swagger.annotations.ApiOperation;
  15. import lombok.RequiredArgsConstructor;
  16. import org.springframework.beans.factory.annotation.Autowired;
  17. import org.springframework.security.access.prepost.PreAuthorize;
  18. import org.springframework.web.bind.annotation.*;
  19. import java.util.Arrays;
  20. import java.util.List;
  21. /**
  22. * 考试安排,包含考试指引Controller
  23. *
  24. * @author change
  25. * @date 2021-05-19
  26. */
  27. @Api(value = "考试报名指引", tags = {"考试安排,学员计划,考试指南"})
  28. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  29. @RestController
  30. @RequestMapping("/app/common/exam/arrangement")
  31. public class ExamArrangementController extends BaseController {
  32. private final IExamArrangementService iExamArrangementService;
  33. private final IExamArrangementGuideService iExamArrangementGuideService;
  34. /**
  35. * 查询考试安排,包含考试指引列表
  36. */
  37. @ApiOperation("考试报名指引")
  38. @GetMapping("/list")
  39. public TableDataInfo<ExamArrangementVo> list(ExamArrangementQueryBo bo) {
  40. startPage();
  41. List<ExamArrangementVo> list = iExamArrangementService.queryList(bo);
  42. return getDataTable(list);
  43. }
  44. }