|
|
@@ -1,103 +0,0 @@
|
|
|
-package com.zhongzheng.controller.bank;
|
|
|
-
|
|
|
-import java.util.List;
|
|
|
-import java.util.Arrays;
|
|
|
-
|
|
|
-import com.zhongzheng.modules.bank.bo.QuestionBusinessAddBo;
|
|
|
-import com.zhongzheng.modules.bank.bo.QuestionBusinessEditBo;
|
|
|
-import com.zhongzheng.modules.bank.bo.QuestionBusinessQueryBo;
|
|
|
-import com.zhongzheng.modules.bank.service.IQuestionBusinessService;
|
|
|
-import com.zhongzheng.modules.bank.vo.QuestionBusinessVo;
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-import com.zhongzheng.common.annotation.Log;
|
|
|
-import com.zhongzheng.common.core.controller.BaseController;
|
|
|
-import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
-import com.zhongzheng.common.enums.BusinessType;
|
|
|
-import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
-import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-
|
|
|
-/**
|
|
|
- * 题目业务层次关系Controller
|
|
|
- *
|
|
|
- * @author hjl
|
|
|
- * @date 2021-10-25
|
|
|
- */
|
|
|
-@Api(value = "题目业务层次关系控制器", tags = {"题目业务层次关系管理"})
|
|
|
-@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
-@RestController
|
|
|
-@RequestMapping("/bank/question/business")
|
|
|
-public class QuestionBusinessController extends BaseController {
|
|
|
-
|
|
|
- private final IQuestionBusinessService iQuestionBusinessService;
|
|
|
-
|
|
|
- /**
|
|
|
- * 查询题目业务层次关系列表
|
|
|
- */
|
|
|
- @ApiOperation("查询题目业务层次关系列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:business:list')")
|
|
|
- @GetMapping("/list")
|
|
|
- public TableDataInfo<QuestionBusinessVo> list(QuestionBusinessQueryBo bo) {
|
|
|
- startPage();
|
|
|
- List<QuestionBusinessVo> list = iQuestionBusinessService.queryList(bo);
|
|
|
- return getDataTable(list);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 导出题目业务层次关系列表
|
|
|
- */
|
|
|
- /* @ApiOperation("导出题目业务层次关系列表")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:business:export')")
|
|
|
- @Log(title = "题目业务层次关系", businessType = BusinessType.EXPORT)
|
|
|
- @GetMapping("/export")
|
|
|
- public AjaxResult<QuestionBusinessVo> export(QuestionBusinessQueryBo bo) {
|
|
|
- List<QuestionBusinessVo> list = iQuestionBusinessService.queryList(bo);
|
|
|
- ExcelUtil<QuestionBusinessVo> util = new ExcelUtil<QuestionBusinessVo>(QuestionBusinessVo.class);
|
|
|
- return util.exportExcel(list, "题目业务层次关系");
|
|
|
- }*/
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取题目业务层次关系详细信息
|
|
|
- */
|
|
|
- /* @ApiOperation("获取题目业务层次关系详细信息")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:business:query')")
|
|
|
- @GetMapping("/{id}")
|
|
|
- public AjaxResult<QuestionBusinessVo> getInfo(@PathVariable("id" ) Long id) {
|
|
|
- return AjaxResult.success(iQuestionBusinessService.queryById(id));
|
|
|
- }*/
|
|
|
-
|
|
|
- /**
|
|
|
- * 新增题目业务层次关系
|
|
|
- */
|
|
|
- /* @ApiOperation("新增题目业务层次关系")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:business:add')")
|
|
|
- @Log(title = "题目业务层次关系", businessType = BusinessType.INSERT)
|
|
|
- @PostMapping()
|
|
|
- public AjaxResult<Void> add(@RequestBody QuestionBusinessAddBo bo) {
|
|
|
- return toAjax(iQuestionBusinessService.insertByAddBo(bo) ? 1 : 0);
|
|
|
- }*/
|
|
|
-
|
|
|
- /**
|
|
|
- * 修改题目业务层次关系
|
|
|
- */
|
|
|
- /* @ApiOperation("修改题目业务层次关系")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:business:edit')")
|
|
|
- @Log(title = "题目业务层次关系", businessType = BusinessType.UPDATE)
|
|
|
- @PutMapping()
|
|
|
- public AjaxResult<Void> edit(@RequestBody QuestionBusinessEditBo bo) {
|
|
|
- return toAjax(iQuestionBusinessService.updateByEditBo(bo) ? 1 : 0);
|
|
|
- }*/
|
|
|
-
|
|
|
-
|
|
|
-}
|