|
|
@@ -47,7 +47,7 @@ public class HealthDataSourceBridgeService {
|
|
|
"growth", "sleep", "vision", "immunity", "nutrition", "gut", "exercise"));
|
|
|
|
|
|
@Resource
|
|
|
- private HealthDimensionScoreService dimensionScoreService;
|
|
|
+ private HealthDimensionScoreService healthDimensionScoreService;
|
|
|
|
|
|
/**
|
|
|
* 契约入口:批量桥接(触发点 A 同批写入,§3.2/§6 ③)。同批记录按序写入,
|
|
|
@@ -149,7 +149,7 @@ public class HealthDataSourceBridgeService {
|
|
|
Integer score, Integer percentile, Date assessDate) {
|
|
|
HealthDimensionScore existing = null;
|
|
|
try {
|
|
|
- existing = dimensionScoreService.getLatestScore(record.getMemberId(), dimension);
|
|
|
+ existing = healthDimensionScoreService.getLatestScore(record.getMemberId(), dimension);
|
|
|
} catch (Exception e) {
|
|
|
log.warn("health.dataSource.bridgeWrite 读取既有最新分失败,跳过维度 {}: {}", dimension, e.getMessage());
|
|
|
return;
|
|
|
@@ -169,6 +169,6 @@ public class HealthDataSourceBridgeService {
|
|
|
target.setTier(Integer.valueOf(TIER_DEVICE));
|
|
|
target.setRawData(record.getParsedResult());
|
|
|
target.setAssessDate(assessDate);
|
|
|
- dimensionScoreService.saveScore(target);
|
|
|
+ healthDimensionScoreService.saveScore(target);
|
|
|
}
|
|
|
}
|