|
@@ -33,7 +33,6 @@ public class QuestionInfoTwoController extends BaseController{
|
|
/**
|
|
/**
|
|
* 查询202204题库列表
|
|
* 查询202204题库列表
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('question:two:list')")
|
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
@ApiOperation("查询202204题库列表")
|
|
@ApiOperation("查询202204题库列表")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@@ -46,23 +45,11 @@ public class QuestionInfoTwoController extends BaseController{
|
|
return toResponsePageInfo(list);
|
|
return toResponsePageInfo(list);
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 导出202204题库列表
|
|
|
|
- */
|
|
|
|
- @PreAuthorize("@ss.hasPermi('question:two:export')")
|
|
|
|
- @Log(title = "202204题库", businessType = BusinessTypeEnum.EXPORT)
|
|
|
|
- @GetMapping("/export")
|
|
|
|
- @ApiOperation("导出202204题库列表Excel")
|
|
|
|
- public Response<String> export(@ModelAttribute QuestionInfoTwo questionInfoTwo){
|
|
|
|
- List<QuestionInfoTwo> list = questionInfoTwoService.selectQuestionInfoTwoList(questionInfoTwo);
|
|
|
|
- ExcelUtil<QuestionInfoTwo> util = new ExcelUtil<QuestionInfoTwo>(QuestionInfoTwo.class);
|
|
|
|
- return util.exportExcel(list, "two");
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 获取202204题库详细信息
|
|
* 获取202204题库详细信息
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@ss.hasPermi('question:two:query')")
|
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
@ApiOperation("获取202204题库详细信息")
|
|
@ApiOperation("获取202204题库详细信息")
|
|
public Response<QuestionInfoTwo> getInfo(
|
|
public Response<QuestionInfoTwo> getInfo(
|
|
@@ -72,39 +59,5 @@ public class QuestionInfoTwoController extends BaseController{
|
|
return Response.success(questionInfoTwoService.getById(id));
|
|
return Response.success(questionInfoTwoService.getById(id));
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * 新增202204题库
|
|
|
|
- */
|
|
|
|
- @PreAuthorize("@ss.hasPermi('question:two:add')")
|
|
|
|
- @Log(title = "202204题库", businessType = BusinessTypeEnum.INSERT)
|
|
|
|
- @PostMapping
|
|
|
|
- @ApiOperation("新增202204题库")
|
|
|
|
- public Response<Integer> add(@RequestBody QuestionInfoTwo questionInfoTwo){
|
|
|
|
- return toResponse(questionInfoTwoService.save(questionInfoTwo) ? 1 : 0);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 修改202204题库
|
|
|
|
- */
|
|
|
|
- @PreAuthorize("@ss.hasPermi('question:two:edit')")
|
|
|
|
- @Log(title = "202204题库", businessType = BusinessTypeEnum.UPDATE)
|
|
|
|
- @PutMapping
|
|
|
|
- @ApiOperation("修改202204题库")
|
|
|
|
- public Response<Integer> edit(@RequestBody QuestionInfoTwo questionInfoTwo){
|
|
|
|
- return toResponse(questionInfoTwoService.updateById(questionInfoTwo) ? 1 : 0);
|
|
|
|
- }
|
|
|
|
|
|
|
|
- /**
|
|
|
|
- * 删除202204题库
|
|
|
|
- */
|
|
|
|
- @PreAuthorize("@ss.hasPermi('question:two:remove')")
|
|
|
|
- @Log(title = "202204题库", businessType = BusinessTypeEnum.DELETE)
|
|
|
|
- @DeleteMapping("/{ids}")
|
|
|
|
- @ApiOperation("删除202204题库")
|
|
|
|
- public Response<Integer> remove(
|
|
|
|
- @ApiParam(name = "ids", value = "202204题库ids参数", required = true)
|
|
|
|
- @PathVariable Long[] ids
|
|
|
|
- ){
|
|
|
|
- return toResponse(questionInfoTwoService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|