|
|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -99,7 +100,7 @@ public class RelationshipQualityController {
|
|
|
}
|
|
|
Long familyId = getFamilyIdFromRequest(request, body);
|
|
|
if (familyId == null) {
|
|
|
- return Result.success(List.of());
|
|
|
+ return Result.success(Collections.emptyList());
|
|
|
}
|
|
|
List<HealthAlertVO> alerts = relationshipQualityService.getHealthAlerts(familyId);
|
|
|
return Result.success(alerts);
|
|
|
@@ -115,7 +116,7 @@ public class RelationshipQualityController {
|
|
|
}
|
|
|
Long familyId = getFamilyIdFromRequest(request, body);
|
|
|
if (familyId == null) {
|
|
|
- return Result.success(List.of());
|
|
|
+ return Result.success(Collections.emptyList());
|
|
|
}
|
|
|
Integer daysAhead = body != null && body.get("daysAhead") != null
|
|
|
? Integer.valueOf(body.get("daysAhead").toString()) : 7;
|