liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceSubtaskAnswerController.java
@@ -6,7 +6,7 @@
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.smartor.domain.ServiceSubtaskAnswer;
import com.smartor.domain.*;
import com.smartor.service.IServiceSubtaskAnswerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -35,7 +35,7 @@
    /**
     * 查询任务问卷问题选项列表
     */
    @PreAuthorize("@ss.hasPermi('system:answer:list')")
    //@PreAuthorize("@ss.hasPermi('system:answer:list')")
    @ApiOperation("查询任务问卷问题选项列表")
    @GetMapping("/list")
    public TableDataInfo list(ServiceSubtaskAnswer serviceSubtaskAnswer) {
@@ -47,7 +47,7 @@
    /**
     * 导出任务问卷问题选项列表
     */
    @PreAuthorize("@ss.hasPermi('system:answer:export')")
    //@PreAuthorize("@ss.hasPermi('system:answer:export')")
    @Log(title = "任务问卷问题选项", businessType = BusinessType.EXPORT)
    @ApiOperation("任务问卷问题选项")
    @PostMapping("/export")
@@ -60,7 +60,7 @@
    /**
     * 获取任务问卷问题选项详细信息
     */
    @PreAuthorize("@ss.hasPermi('system:answer:query')")
    //@PreAuthorize("@ss.hasPermi('system:answer:query')")
    @GetMapping(value = "/getInfo/{id}")
    @ApiOperation("获取任务问卷问题选项详细信息")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
@@ -70,7 +70,7 @@
    /**
     * 新增任务问卷问题选项
     */
    @PreAuthorize("@ss.hasPermi('system:answer:add')")
    //@PreAuthorize("@ss.hasPermi('system:answer:add')")
    @Log(title = "任务问卷问题选项", businessType = BusinessType.INSERT)
    @ApiOperation("新增任务问卷问题选项")
    @PostMapping("/add")
@@ -81,7 +81,7 @@
    /**
     * 修改任务问卷问题选项
     */
    @PreAuthorize("@ss.hasPermi('system:answer:edit')")
    //@PreAuthorize("@ss.hasPermi('system:answer:edit')")
    @Log(title = "任务问卷问题选项", businessType = BusinessType.UPDATE)
    @ApiOperation("修改任务问卷问题选项")
    @PostMapping("/edit")
@@ -92,11 +92,36 @@
    /**
     * 删除任务问卷问题选项
     */
    @PreAuthorize("@ss.hasPermi('system:answer:remove')")
    //@PreAuthorize("@ss.hasPermi('system:answer:remove')")
    @Log(title = "任务问卷问题选项", businessType = BusinessType.DELETE)
    @ApiOperation("删除任务问卷问题选项")
    @DeleteMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(serviceSubtaskAnswerService.deleteServiceSubtaskAnswerByIds(ids));
    }
    @ApiOperation("患者问题结果记录(外链)")
    @PostMapping("/saveQuestionAnswer")
    public AjaxResult saveQuestionAnswer(@RequestBody ServiceSubTaskAnswerReq serviceSubTaskAnswerReq) {
        return toAjax(serviceSubtaskAnswerService.saveQuestionAnswer(serviceSubTaskAnswerReq));
    }
    @ApiOperation("患者问题结果记录缓存(外链)")
    @PostMapping("/saveQuestionCache")
    public AjaxResult saveQuestionCache(@RequestBody ServiceSubTaskCacheReq serviceSubTaskCacheReq) {
        return toAjax(serviceSubtaskAnswerService.saveQuestionCache(serviceSubTaskCacheReq));
    }
    @ApiOperation("获取患者问题结果记录缓存(外链)")
    @PostMapping("/getQuestionCache")
    public AjaxResult getQuestionCache(@RequestBody ServiceSubTaskCacheReq serviceSubTaskCacheReq) {
        return AjaxResult.success(serviceSubtaskAnswerService.getQuestionCache(serviceSubTaskCacheReq));
    }
    @ApiOperation("医生查询患者问题结果(外链)")
    @PostMapping("/selectPatQuestionResult")
    public AjaxResult selectPatQuestionResult(@RequestBody ServiceSubTaskQueryReq serviceSubTaskQueryReq) {
        return AjaxResult.success(serviceSubtaskAnswerService.selectPatQuestionResult(serviceSubTaskQueryReq));
    }
}