| | |
| | | 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 SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | List<SvyLibTemplateCategoryVO> list = svyLibTemplateCategoryService.selectSvyLibTemplateCategoryList(svyLibTemplateCategory); |
| | | return getDataTable(list); |
| | |
| | | return success(svyLibTemplateCategoryService.selectSvyLibTemplateCategoryById(id)); |
| | | } |
| | | |
| | | // /** |
| | | // /** |
| | | // * 新增问卷模板分类 |
| | | // */ |
| | | // @ApiOperation("新增问卷模板分类") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:category:add')") |
| | | // @Log(Template = "问卷模板分类", businessType = BusinessType.INSERT) |
| | | // @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | // @PostMapping("/add") |
| | | // public AjaxResult add(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | // return toAjax(svyLibTemplateCategoryService.insertSvyLibTemplateCategory(svyLibTemplateCategory)); |
| | |
| | | @ApiOperation("修改问卷模板分类") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:category:edit')") |
| | | @Log(title = "问卷模板分类", businessType = BusinessType.UPDATE) |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateCategory svyLibTemplateCategory) { |
| | | return toAjax(svyLibTemplateCategoryService.updateSvyLibTemplateCategory(svyLibTemplateCategory)); |
| | |
| | | //@PreAuthorize("@ss.hasPermi('smartor:assort:add')") |
| | | @Log(title = "问卷模板分类树", businessType = BusinessType.INSERT) |
| | | @ApiOperation("问卷模板分类树") |
| | | @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid") |
| | | @PostMapping("/addtree") |
| | | public AjaxResult addtree(@RequestBody SvyLibTemplateCategoryVO svyLibTemplateCategoryVO) { |
| | | SysUser user = getLoginUser().getUser(); |