| | |
| | | /** |
| | | * 查询任务问卷模板列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @ApiOperation("查询任务问卷模板列表") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * 导出任务问卷模板列表 |
| | | */ |
| | | @ApiOperation("导出任务问卷模板列表") |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @Log(title = "任务问卷模板", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * 获取任务问卷模板详细信息 |
| | | */ |
| | | @ApiOperation("获取任务问卷模板详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @GetMapping(value = "/{svyid}") |
| | | public AjaxResult getInfo(@PathVariable("svyid") Long svyid) { |
| | | return success(svyTaskTemplateService.selectSvyTaskTemplateBySvyid(svyid)); |
| | |
| | | * 新增任务问卷模板 |
| | | */ |
| | | @ApiOperation("新增任务问卷模板") |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @Log(title = "任务问卷模板", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * 修改任务问卷模板 |
| | | */ |
| | | @ApiOperation("修改任务问卷模板") |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "任务问卷模板", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody SvyTaskTemplate svyTaskTemplate) { |
| | |
| | | * 删除任务问卷模板 |
| | | */ |
| | | @ApiOperation("删除任务问卷模板") |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @Log(title = "任务问卷模板", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{svyids}") |
| | | public AjaxResult remove(@PathVariable Long[] svyids) { |
| | |
| | | /** |
| | | * 新增或修改随访任务问卷模板库 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("新增或修改随访任务问卷模板库") |
| | | @PostMapping("/saveOrUpdateTaskTemp") |
| | | public AjaxResult saveOrUpdateTaskTemp(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |
| | |
| | | * @param svyTaskTemplateVO |
| | | * @return |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("查询模板详情根据条件") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) { |