Переглянути джерело

提交时本地代码覆盖解决

wangzl 5 місяців тому
батько
коміт
611a39f241

+ 21 - 6
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/app/controller/PatientInfoController.java

@@ -2,6 +2,7 @@ package cn.tr.module.smart.app.controller;
 
 import cn.tr.core.pojo.TableDataInfo;
 import cn.tr.module.smart.app.controller.dto.WxDoctorPatientInfoDTO;
+import cn.tr.module.smart.app.controller.vo.WxDoctorPatientListVO;
 import cn.tr.module.smart.app.controller.vo.WxDoctorPatientVO;
 import cn.tr.module.smart.common.service.IBizPatientService;
 import cn.tr.plugin.mybatis.base.BaseController;
@@ -10,12 +11,11 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
 import org.springframework.validation.annotation.Validated;
-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 javax.annotation.Resource;
+import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @author wangzl
@@ -31,11 +31,26 @@ public class PatientInfoController extends BaseController {
     @Resource
     private IBizPatientService bizPatientService;
 
-    @ApiOperationSupport(author = "wangzl",order = 1)
-    @ApiOperation(value="根据条件患者信息列表",notes = "权限: 无")
+    @ApiOperationSupport(author = "wangzl", order = 1)
+    @ApiOperation(value = "根据条件患者信息列表", notes = "权限: 无")
     @PostMapping("/query/page")
     public TableDataInfo<WxDoctorPatientVO> selectList(@RequestBody @Validated WxDoctorPatientInfoDTO query) {
         startPage();
         return getDataTable(bizPatientService.selectPatientList(query));
     }
+
+    @ApiOperationSupport(author = "wangzl", order = 2)
+    @ApiOperation(value = "术前问卷列表", notes = "权限: 无")
+    @PostMapping("/question/list/{patientId}")
+    public List<WxDoctorPatientListVO> selectQuestionList(@PathVariable String patientId) {
+        return bizPatientService.selectQuestionList(patientId);
+    }
+
+    @ApiOperationSupport(author = "wangzl", order = 3)
+    @ApiOperation(value = "术后随访列表", notes = "权限: 无")
+    @PostMapping("/followUp/list/{patientId}")
+    public List<String> selectFollowList(@PathVariable String patientId) {
+        return new ArrayList<>();
+    }
+
 }