|
|
@@ -1,12 +1,14 @@
|
|
|
package cn.tr.module.smart.web.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckLogin;
|
|
|
+import cn.tr.core.pojo.CommonResult;
|
|
|
import cn.tr.core.pojo.TableDataInfo;
|
|
|
import cn.tr.module.smart.common.service.IBizQuestionAnswerService;
|
|
|
import cn.tr.module.smart.web.dto.BizWebPainAssessmentQueryDTO;
|
|
|
import cn.tr.module.smart.web.dto.BizWebQuestionAnswerQueryDTO;
|
|
|
import cn.tr.module.smart.web.vo.BizWebPainAssessmentVO;
|
|
|
import cn.tr.module.smart.web.vo.BizWebQuestionAnswerVO;
|
|
|
+import cn.tr.module.smart.wx.controller.vo.BizWxDeptQuestionVO;
|
|
|
import cn.tr.module.sys.oauth2.LoginTypeConstant;
|
|
|
import cn.tr.plugin.mybatis.base.BaseController;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
@@ -14,17 +16,16 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @author wangzl
|
|
|
* @description: TODO
|
|
|
* @date 2025/7/1 11:27
|
|
|
*/
|
|
|
-@Api(tags = "web端术后问卷")
|
|
|
+@Api(tags = "web端问卷")
|
|
|
@RestController
|
|
|
@RequestMapping("/web/answer")
|
|
|
@AllArgsConstructor
|
|
|
@@ -33,11 +34,19 @@ public class BizWebQuestionAnswerController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private IBizQuestionAnswerService bizQuestionAnswerService;
|
|
|
- @ApiOperationSupport(author = "wangzl",order = 1)
|
|
|
- @ApiOperation(value="根据条件查询患者问卷列表",notes = "权限: 无")
|
|
|
+
|
|
|
+ @ApiOperationSupport(author = "wangzl", order = 1)
|
|
|
+ @ApiOperation(value = "根据条件查询患者问卷列表", notes = "权限: 无")
|
|
|
@PostMapping("/query/page")
|
|
|
public TableDataInfo<BizWebQuestionAnswerVO> selectList(@RequestBody BizWebQuestionAnswerQueryDTO query) {
|
|
|
startPage();
|
|
|
return getDataTable(bizQuestionAnswerService.selectWebQuestionAnswerList(query));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperationSupport(author = "wangzl", order = 2)
|
|
|
+ @ApiOperation(value = "查看问卷详情", notes = "权限: 无")
|
|
|
+ @GetMapping("/detail/{answerId}")
|
|
|
+ public CommonResult<List<BizWxDeptQuestionVO>> selectDetailByAnswerId(@PathVariable String answerId) {
|
|
|
+ return CommonResult.success(bizQuestionAnswerService.selectDetailByAnswerId(answerId));
|
|
|
+ }
|
|
|
}
|