Browse Source

fix(backend): pairwise VO 补齐 isSpouse 与 lastInteractionAt(修复成员详情页 action-sheet 关系标签和上次填写时间显示)

Sisyphus 2 months ago
parent
commit
f684de4797

+ 2 - 0
cfc-backend/src/main/java/com/etotem/cfc/service/RelationshipQualityService.java

@@ -257,8 +257,10 @@ public class RelationshipQualityService {
             vo.setGeneration(fm.getGeneration());
             vo.setEffectiveRole(computeEffectiveRole(fm));
             vo.setRoleLabel(computeEffectiveRole(fm));
+            vo.setIsSpouse(fm.getIsSpouse());
             vo.setIsSelf(centerMemberId.equals(fm.getId()));
             vo.setAge(fm.getAge());
+            vo.setLastInteractionAt(fm.getLastInteractionAt());
 
             FamilyRelationship rel = relMap.get(fm.getId());
             if (rel != null) {