| | |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * @param query page,size |
| | | * |
| | | * @param query page,size |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @GetMapping("/page") |
| | |
| | | |
| | | /** |
| | | * 新增 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @PostMapping("/save") |
| | |
| | | |
| | | /** |
| | | * 修改 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @PostMapping("/update") |
| | |
| | | |
| | | /** |
| | | * 新增或修改 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @PostMapping("/submit") |
| | | public R submit(@RequestBody ExamSubjectChoices examSubjectChoices) { |
| | | if (null!=examSubjectChoices.getId()){ |
| | | if (null != examSubjectChoices.getId()) { |
| | | examSubjectChoices.setCreateDate(new Date()); |
| | | }else { |
| | | } else { |
| | | examSubjectChoices.setModifyDate(new Date()); |
| | | } |
| | | return R.status(examSubjectChoicesService.saveOrUpdate(examSubjectChoices)); |
| | |
| | | |
| | | /** |
| | | * 删除 |
| | | * |
| | | * @param ids 选择题信息ids 数组 |
| | | */ |
| | | @PostMapping("/remove") |
| | |
| | | |
| | | /** |
| | | * 详情 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @GetMapping("/detail") |
| | |
| | | |
| | | /** |
| | | * 详情(包含选项信息) |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | | @GetMapping("/details") |
| | |
| | | return R.data(detail); |
| | | } |
| | | |
| | | /** |
| | | * 查询试卷包含的题目 |
| | | */ |
| | | @GetMapping("/getEexPaperChoices") |
| | | public R<IPage<ExamSubjectChoicesVO>> getEexPaperChoices(ExamSubjectChoicesVO examSubjectChoices, Query query) { |
| | | IPage<ExamSubjectChoicesVO> pages = examSubjectChoicesService.getEexPaperChoices(Condition.getPage(query), examSubjectChoices); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 修改单项题目分值 |
| | | */ |
| | | @PostMapping("/updateChoicesValue") |
| | | public R updateChoicesValue(String id,String value) { |
| | | return R.status(examSubjectChoicesService.updateChoicesValue(id,value)); |
| | | } |
| | | |
| | | } |