| | |
| | | /** |
| | | * 查询模板问卷列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateWjx svyLibTemplateWjx) |
| | | { |
| | |
| | | /** |
| | | * 导出模板问卷列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:export')") |
| | | @Log(title = "模板问卷", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateWjx svyLibTemplateWjx) |
| | |
| | | /** |
| | | * 获取模板问卷详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) |
| | | { |
| | |
| | | /** |
| | | * 新增模板问卷 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:add')") |
| | | @Log(title = "模板问卷", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateWjx svyLibTemplateWjx) |
| | |
| | | /** |
| | | * 修改模板问卷 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:edit')") |
| | | @Log(title = "模板问卷", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateWjx svyLibTemplateWjx) |
| | |
| | | /** |
| | | * 删除模板问卷 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:wjx:remove')") |
| | | @Log(title = "模板问卷", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) |