| | |
| | | /** |
| | | * 查询问卷异常列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibException svyLibException) |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody SvyLibException svyLibException) |
| | | { |
| | | startPage(); |
| | | List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException); |
| | |
| | | /** |
| | | * 导出问卷异常列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:export')") |
| | | @Log(title = "问卷异常", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibException svyLibException) |
| | |
| | | /** |
| | | * 获取问卷异常详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:query')") |
| | | @GetMapping(value = "/{ecid}") |
| | | public AjaxResult getInfo(@PathVariable("ecid") Long ecid) |
| | | { |
| | |
| | | /** |
| | | * 新增问卷异常 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:add')") |
| | | @Log(title = "问卷异常", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody SvyLibException svyLibException) |
| | | { |
| | | return toAjax(svyLibExceptionService.insertSvyLibException(svyLibException)); |
| | |
| | | /** |
| | | * 修改问卷异常 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')") |
| | | @Log(title = "问卷异常", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyLibException svyLibException) |
| | | { |
| | | return toAjax(svyLibExceptionService.updateSvyLibException(svyLibException)); |
| | |
| | | /** |
| | | * 删除问卷异常 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')") |
| | | @Log(title = "问卷异常", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ecids}") |
| | | @GetMapping("/remove/{ecids}") |
| | | public AjaxResult remove(@PathVariable Long[] ecids) |
| | | { |
| | | return toAjax(svyLibExceptionService.deleteSvyLibExceptionByEcids(ecids)); |