| | |
| | | * 查询任务问卷题目列表 |
| | | */ |
| | | @ApiOperation("查询任务问卷题目列表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskScript svyTaskScript) { |
| | | startPage(); |
| | |
| | | * 导出任务问卷题目列表 |
| | | */ |
| | | @ApiOperation("导出任务问卷题目列表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "任务问卷题目", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskScript svyTaskScript) { |
| | |
| | | * 获取任务问卷题目详细信息 |
| | | */ |
| | | @ApiOperation("获取任务问卷题目详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(svyTaskScriptService.selectSvyTaskScriptById(id)); |
| | |
| | | * 新增任务问卷题目 |
| | | */ |
| | | @ApiOperation("新增任务问卷题目") |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "任务问卷题目", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyTaskScript svyTaskScript) { |
| | |
| | | * 修改任务问卷题目 |
| | | */ |
| | | @ApiOperation("修改任务问卷题目") |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "任务问卷题目", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskScript svyTaskScript) { |
| | |
| | | * 删除任务问卷题目 |
| | | */ |
| | | @ApiOperation("导出综合问卷任务(任务)列表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "任务问卷题目", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |