|
@@ -4242,81 +4242,75 @@ sqls.add("INSERT IGNORE INTO health_norm_reference (dimension, gender, age_min,
|
|
|
Long actionId = dimensionNodeId("action");
|
|
Long actionId = dimensionNodeId("action");
|
|
|
Long wealthId = dimensionNodeId("wealth");
|
|
Long wealthId = dimensionNodeId("wealth");
|
|
|
|
|
|
|
|
- // 2) 7 body 维(health,legacy_alias 保留旧名)
|
|
|
|
|
|
|
+ // 2) 7 body 维(health,原 health_dimension_scores;legacy_alias = 旧取数字段名)
|
|
|
String[][] bodyChildren = {
|
|
String[][] bodyChildren = {
|
|
|
- {"body.growth", "成长", "growth"},
|
|
|
|
|
- {"body.sleep", "睡眠", "sleep"},
|
|
|
|
|
- {"body.vision", "视力", "vision"},
|
|
|
|
|
- {"body.immunity", "免疫", "immunity"},
|
|
|
|
|
- {"body.nutrition", "营养", "nutrition"},
|
|
|
|
|
- {"body.gut", "肠道", "gut"},
|
|
|
|
|
- {"body.exercise", "运动", "exercise"},
|
|
|
|
|
|
|
+ {"body.growth", "生长发育", "growth"},
|
|
|
|
|
+ {"body.sleep", "睡眠质量", "sleep"},
|
|
|
|
|
+ {"body.vision", "视力健康", "vision"},
|
|
|
|
|
+ {"body.immunity", "免疫力", "immunity"},
|
|
|
|
|
+ {"body.nutrition", "营养均衡", "nutrition"},
|
|
|
|
|
+ {"body.gut", "肠胃健康", "gut"},
|
|
|
|
|
+ {"body.exercise", "运动活力", "exercise"},
|
|
|
};
|
|
};
|
|
|
for (String[] c : bodyChildren) {
|
|
for (String[] c : bodyChildren) {
|
|
|
ensureDimensionNode(c[0], c[1], bodyId, "health", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
ensureDimensionNode(c[0], c[1], bodyId, "health", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 3) 认知 6 维(wisdom 根;DAN 测评「六维认知体系」)
|
|
|
|
|
|
|
+ // 3) 认知 7 维(wisdom 根;DAN 认知报告字段)
|
|
|
String[][] wisdomChildren = {
|
|
String[][] wisdomChildren = {
|
|
|
- {"wisdom.perception", "感知", "perceptionScore"},
|
|
|
|
|
- {"wisdom.focus", "专注", "focusScore"},
|
|
|
|
|
- {"wisdom.memory", "记忆", "memoryScore"},
|
|
|
|
|
- {"wisdom.logic", "逻辑", "logicScore"},
|
|
|
|
|
- {"wisdom.spatial", "空间", "spatialScore"},
|
|
|
|
|
|
|
+ {"wisdom.memory", "记忆力", "memoryScore"},
|
|
|
|
|
+ {"wisdom.attention", "注意力", "attentionScore"},
|
|
|
|
|
+ {"wisdom.logic", "逻辑推理", "logicScore"},
|
|
|
|
|
+ {"wisdom.spatial", "空间想象", "spatialScore"},
|
|
|
|
|
+ {"wisdom.perception", "感知能力", "perceptionScore"},
|
|
|
|
|
+ {"wisdom.focus", "专注力", "focusScore"},
|
|
|
{"wisdom.processingSpeed", "加工速度", "processingSpeedScore"},
|
|
{"wisdom.processingSpeed", "加工速度", "processingSpeedScore"},
|
|
|
};
|
|
};
|
|
|
for (String[] c : wisdomChildren) {
|
|
for (String[] c : wisdomChildren) {
|
|
|
ensureDimensionNode(c[0], c[1], wisdomId, "cognitive", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
ensureDimensionNode(c[0], c[1], wisdomId, "cognitive", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 4) 心 10 维(mind 根;EMI/心理:大五5 + 情绪稳定 + 自我驱动3 + 自我概念)
|
|
|
|
|
|
|
+ // 4) 心 10 维(mind 根;EMI/心理:大五5 + 自我驱动3 + 情绪稳定 + 自我概念)
|
|
|
String[][] mindChildren = {
|
|
String[][] mindChildren = {
|
|
|
- {"mind.bigFiveOpenness", "开放性", "bigFiveOpenness"},
|
|
|
|
|
- {"mind.bigFiveConscientiousness","尽责性", "bigFiveConscientiousness"},
|
|
|
|
|
- {"mind.bigFiveExtraversion", "外向性", "bigFiveExtraversion"},
|
|
|
|
|
- {"mind.bigFiveAgreeableness", "宜人性", "bigFiveAgreeableness"},
|
|
|
|
|
- {"mind.bigFiveNeuroticism", "神经质", "bigFiveNeuroticism"},
|
|
|
|
|
- {"mind.emotionStability", "情绪稳定", "emotionStability"},
|
|
|
|
|
- {"mind.driveAutonomy", "自主", "driveAutonomy"},
|
|
|
|
|
- {"mind.driveCompetence", "胜任", "driveCompetence"},
|
|
|
|
|
- {"mind.driveRelatedness", "关系归属", "driveRelatedness"},
|
|
|
|
|
- {"mind.selfConceptOverall", "自我概念", "selfConceptOverall"},
|
|
|
|
|
|
|
+ {"mind.openness", "开放性", "opennessScore"},
|
|
|
|
|
+ {"mind.conscientiousness","尽责性", "conscientiousnessScore"},
|
|
|
|
|
+ {"mind.extraversion", "外向性", "extraversionScore"},
|
|
|
|
|
+ {"mind.agreeableness", "宜人性", "agreeablenessScore"},
|
|
|
|
|
+ {"mind.neuroticism", "神经质", "neuroticismScore"},
|
|
|
|
|
+ {"mind.emotionStability", "情绪稳定性", "emotionStability"},
|
|
|
|
|
+ {"mind.driveAutonomy", "自主性", "driveAutonomy"},
|
|
|
|
|
+ {"mind.driveCompetence", "胜任感", "driveCompetence"},
|
|
|
|
|
+ {"mind.driveRelatedness", "归属感", "driveRelatedness"},
|
|
|
|
|
+ {"mind.selfConceptOverall","自我概念", "selfConceptOverall"},
|
|
|
};
|
|
};
|
|
|
for (String[] c : mindChildren) {
|
|
for (String[] c : mindChildren) {
|
|
|
- ensureDimensionNode(c[0], c[1], mindId, "psych", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
|
|
|
|
+ ensureDimensionNode(c[0], c[1], mindId, "emi", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 5) 关系 12 维(action 根;关系质量:代码实际 12 个 action* 维,非推定的 5 维)
|
|
|
|
|
|
|
+ // 5) 关系 5 维(action 根;RelationshipScoreVO 字段:亲子信任/亲密度/沟通质量/关系健康度/最近互动)
|
|
|
String[][] actionChildren = {
|
|
String[][] actionChildren = {
|
|
|
- {"action.childParentChild", "亲子(子→父)", "actionChildParentChild"},
|
|
|
|
|
- {"action.sibling", "手足", "actionSibling"},
|
|
|
|
|
- {"action.relative", "亲戚", "actionRelative"},
|
|
|
|
|
- {"action.teacherStudent", "师生", "actionTeacherStudent"},
|
|
|
|
|
- {"action.childSociality", "儿童社交", "actionChildSociality"},
|
|
|
|
|
- {"action.childInterpersonal","儿童人际", "actionChildInterpersonal"},
|
|
|
|
|
- {"action.parentChild", "父→子", "actionParentChild"},
|
|
|
|
|
- {"action.marital", "婚姻", "actionMarital"},
|
|
|
|
|
- {"action.parental", "教养", "actionParental"},
|
|
|
|
|
- {"action.leadership", "领导", "actionLeadership"},
|
|
|
|
|
- {"action.sociality", "社交", "actionSociality"},
|
|
|
|
|
- {"action.interpersonal", "人际", "actionInterpersonal"},
|
|
|
|
|
|
|
+ {"action.parentTrust", "亲子信任", "trustScore"},
|
|
|
|
|
+ {"action.parentIntimacy", "亲子亲密度", "intimacyScore"},
|
|
|
|
|
+ {"action.communication", "沟通质量", "communicationScore"},
|
|
|
|
|
+ {"action.healthStatus", "关系健康度", "totalScore"},
|
|
|
|
|
+ {"action.lastInteraction", "最近互动", "lastInteractionAt"},
|
|
|
};
|
|
};
|
|
|
for (String[] c : actionChildren) {
|
|
for (String[] c : actionChildren) {
|
|
|
ensureDimensionNode(c[0], c[1], actionId, "relationship", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
ensureDimensionNode(c[0], c[1], actionId, "relationship", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 6) 富 4 维(wealth 根;财富素养)
|
|
|
|
|
|
|
+ // 6) 富 4 维(wealth 根;MemberEnergyDTO 字段)
|
|
|
String[][] wealthChildren = {
|
|
String[][] wealthChildren = {
|
|
|
- {"wealth.skill", "财商技能", "wealthSkill"},
|
|
|
|
|
- {"wealth.altruism", "财富利他", "wealthAltruism"},
|
|
|
|
|
- {"wealth.income", "财富收入", "wealthIncome"},
|
|
|
|
|
- {"wealth.fx", "外汇", "wealthFx"},
|
|
|
|
|
|
|
+ {"wealth.skill", "个人能力", "wealthSkill"},
|
|
|
|
|
+ {"wealth.altruism", "利他贡献", "wealthAltruism"},
|
|
|
|
|
+ {"wealth.income", "CF值积累", "wealthIncome"},
|
|
|
|
|
+ {"wealth.fx", "财务素养", "wealthFx"},
|
|
|
};
|
|
};
|
|
|
for (String[] c : wealthChildren) {
|
|
for (String[] c : wealthChildren) {
|
|
|
- ensureDimensionNode(c[0], c[1], wealthId, "wealth-literacy", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
|
|
|
|
+ ensureDimensionNode(c[0], c[1], wealthId, "energy", "[\"" + c[2] + "\"]", null, 0, "sub");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- log.info("统一维度注册中心种子已就绪(5根 + 7 body + 认知6 + 心10 + 关系12 + 富4)");
|
|
|
|
|
|
|
+ log.info("统一维度注册中心种子已就绪(5根 + body7 + wisdom7 + mind10 + action5 + wealth4)");
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
log.warn("统一维度注册中心种子初始化失败: {}", e.getMessage());
|
|
log.warn("统一维度注册中心种子初始化失败: {}", e.getMessage());
|
|
|
}
|
|
}
|