|
@@ -259,6 +259,17 @@ public class HealthReportController {
|
|
|
return Result.success(reports);
|
|
return Result.success(reports);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Operation(summary = "获取全家健康报告列表(方案页选择用)")
|
|
|
|
|
+ @PostMapping("/reports/family")
|
|
|
|
|
+ public Result<List<HealthReport>> listFamilyReports(
|
|
|
|
|
+ @RequestAttribute(value = "familyId", required = false) Long familyId) {
|
|
|
|
|
+ if (familyId == null) {
|
|
|
|
|
+ return Result.error("familyId不能为空");
|
|
|
|
|
+ }
|
|
|
|
|
+ List<HealthReport> reports = healthReportService.getFamilyReports(familyId);
|
|
|
|
|
+ return Result.success(reports);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 管理端分页查询所有报告
|
|
* 管理端分页查询所有报告
|
|
|
*/
|
|
*/
|