| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.AddOrgId; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | */ |
| | | @ApiOperation("查询问卷题目分类列表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:list')") |
| | | @PostMapping("/list") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("list") |
| | | public TableDataInfo list(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | // startPage(); |
| | | List<SvyLibScriptCategoryVO> list = svyLibScriptCategoryService.selectSvyLibScriptCategoryList(svyLibScriptCategory); |
| | |
| | | return success(svyLibScriptCategoryService.selectSvyLibScriptCategoryById(id)); |
| | | } |
| | | |
| | | // /** |
| | | // /** |
| | | // * 新增问卷题目分类 |
| | | // */ |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(title = "问卷题目分类", businessType = BusinessType.INSERT) |
| | | // @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | // return toAjax(svyLibScriptCategoryService.insertSvyLibScriptCategory(svyLibScriptCategory)); |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "问卷题目分类", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibScriptCategory svyLibScriptCategory) { |
| | | return toAjax(svyLibScriptCategoryService.updateSvyLibScriptCategory(svyLibScriptCategory)); |