liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyTaskTemplateController.java
@@ -35,7 +35,7 @@
    /**
     * 查询任务问卷模板列表
     */
    @PreAuthorize("@ss.hasPermi('system:template:list')")
    //@PreAuthorize("@ss.hasPermi('system:template:list')")
    @ApiOperation("查询任务问卷模板列表")
    @GetMapping("/list")
    public TableDataInfo list(SvyTaskTemplate svyTaskTemplate) {
@@ -48,7 +48,7 @@
     * 导出任务问卷模板列表
     */
    @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) {
@@ -61,7 +61,7 @@
     * 获取任务问卷模板详细信息
     */
    @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));
@@ -71,7 +71,7 @@
     * 新增任务问卷模板
     */
    @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) {
@@ -82,7 +82,7 @@
     * 修改任务问卷模板
     */
    @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) {
@@ -93,7 +93,7 @@
     * 删除任务问卷模板
     */
    @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) {
@@ -103,7 +103,7 @@
    /**
     * 新增或修改随访任务问卷模板库
     */
    @PreAuthorize("@ss.hasPermi('system:template:add')")
    //@PreAuthorize("@ss.hasPermi('system:template:add')")
    @ApiOperation("新增或修改随访任务问卷模板库")
    @PostMapping("/saveOrUpdateTaskTemp")
    public AjaxResult saveOrUpdateTaskTemp(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) {
@@ -116,7 +116,7 @@
     * @param svyTaskTemplateVO
     * @return
     */
    @PreAuthorize("@ss.hasPermi('system:template:add')")
    //@PreAuthorize("@ss.hasPermi('system:template:add')")
    @ApiOperation("查询模板详情根据条件")
    @PostMapping("/selectInfoByCondition")
    public AjaxResult selectInfoByCondition(@RequestBody SvyTaskTemplateVO svyTaskTemplateVO) {