| | |
| | | /** |
| | | * 查询问卷结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibResult svyLibResult) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | | startPage(); |
| | | List<SvyLibResult> list = svyLibResultService.selectSvyLibResultList(svyLibResult); |
| | |
| | | /** |
| | | * 导出问卷结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:export')") |
| | | @Log(title = "问卷结果", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibResult svyLibResult) |
| | |
| | | /** |
| | | * 获取问卷结果详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:query')") |
| | | @GetMapping(value = "/{resultid}") |
| | | public AjaxResult getInfo(@PathVariable("resultid") Long resultid) |
| | | { |
| | |
| | | /** |
| | | * 新增问卷结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:add')") |
| | | @Log(title = "问卷结果", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | | return toAjax(svyLibResultService.insertSvyLibResult(svyLibResult)); |
| | |
| | | /** |
| | | * 修改问卷结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:edit')") |
| | | @Log(title = "问卷结果", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibResult svyLibResult) |
| | | { |
| | | return toAjax(svyLibResultService.updateSvyLibResult(svyLibResult)); |
| | |
| | | /** |
| | | * 删除问卷结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyresult:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyresult:remove')") |
| | | @Log(title = "问卷结果", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{resultids}") |
| | | @GetMapping("/remove/{resultids}") |
| | | public AjaxResult remove(@PathVariable Long[] resultids) |
| | | { |
| | | return toAjax(svyLibResultService.deleteSvyLibResultByResultids(resultids)); |