|
@@ -2,6 +2,8 @@ package cn.tr.module.smart.wx.controller;
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
|
|
|
|
|
|
+import cn.tr.core.exception.ServiceException;
|
|
|
|
|
+import cn.tr.core.exception.TRExcCode;
|
|
|
import cn.tr.core.pojo.CommonResult;
|
|
import cn.tr.core.pojo.CommonResult;
|
|
|
import cn.tr.module.smart.common.enums.ClinicPhaseEnums;
|
|
import cn.tr.module.smart.common.enums.ClinicPhaseEnums;
|
|
|
import cn.tr.module.smart.common.service.IBizClinicRoomService;
|
|
import cn.tr.module.smart.common.service.IBizClinicRoomService;
|
|
@@ -90,7 +92,18 @@ public class BizWxAppletQuestionController extends BaseController{
|
|
|
@ApiOperationSupport(author = "lf", order = 6)
|
|
@ApiOperationSupport(author = "lf", order = 6)
|
|
|
@GetMapping("/groupDetail/{id}")
|
|
@GetMapping("/groupDetail/{id}")
|
|
|
@ApiOperation(value = "获取术后问卷信息(包含问题)",notes = "权限: 无")
|
|
@ApiOperation(value = "获取术后问卷信息(包含问题)",notes = "权限: 无")
|
|
|
- public CommonResult<BizWebQuestionGroupVO> selectQuestionnaireById(@PathVariable("id") String id) {
|
|
|
|
|
|
|
+ public CommonResult<BizWebQuestionGroupVO> groupDetail(@PathVariable("id") String id) {
|
|
|
return CommonResult.success(questionGroupService.selectBizQuestionGroupById(id));
|
|
return CommonResult.success(questionGroupService.selectBizQuestionGroupById(id));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperationSupport(author = "lf", order = 7)
|
|
|
|
|
+ @GetMapping("/groupDetailByAi/{clinicId}")
|
|
|
|
|
+ @ApiOperation(value = "获取术后问卷信息(AI实时生成)",notes = "权限: 无")
|
|
|
|
|
+ public CommonResult<BizWebQuestionGroupVO> groupDetailByAi(@PathVariable("clinicId") String clinicId) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ return CommonResult.success(questionGroupService.groupDetailByAi(clinicId));
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ throw new ServiceException(TRExcCode.SYSTEM_ERROR_B0001,"问卷获取失败");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|