| | |
| | | /** |
| | | * 查询问卷分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyCategory svyCategory) { |
| | | // startPage(); |
| | |
| | | /** |
| | | * 导出问卷分类列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:export')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyCategory svyCategory) { |
| | |
| | | /** |
| | | * 获取问卷分类信息通过分类名称 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('smartor:svycategory:query')") |
| | | // //@PreAuthorize("@ss.hasPermi('smartor:svycategory:query')") |
| | | @ApiOperation("获取问卷分类详细信息(问卷类别)") |
| | | @PostMapping(value = "/getInfo") |
| | | public TableDataInfo getInfo(@RequestParam(required = false) String categoryname) { |
| | |
| | | /** |
| | | * 新增问卷分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:add')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问卷分类") |
| | | @PostMapping("/add") |
| | |
| | | /** |
| | | * 新增问卷分类树 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:assort:add')") |
| | | @Log(title = "问题话术分类库", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增问卷分类树") |
| | | @PostMapping("/addtree") |
| | |
| | | /** |
| | | * 修改问卷分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:edit')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.UPDATE) |
| | | @ApiOperation("修改问卷分类") |
| | | @PostMapping("/edit") |
| | |
| | | /** |
| | | * 删除问卷分类 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svycategory:remove')") |
| | | @Log(title = "问卷分类", businessType = BusinessType.DELETE) |
| | | @ApiOperation("删除问卷分类") |
| | | @GetMapping("/remove/{ids}") |