Browse Source

fix: break circular dependency CircleService↔CircleMatchService with @Lazy

iwt 2 months ago
parent
commit
23ee60bdb3

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

@@ -6,6 +6,7 @@ import com.etotem.cfc.entity.SocialCircle;
 import com.etotem.cfc.entity.SocialCircleMember;
 import com.etotem.cfc.mapper.SocialCircleMapper;
 import com.etotem.cfc.mapper.SocialCircleMemberMapper;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
@@ -24,6 +25,7 @@ public class CircleService extends ServiceImpl<SocialCircleMapper, SocialCircle>
     private SocialCircleMemberMapper socialCircleMemberMapper;
 
     @Resource
+    @Lazy
     private CircleMatchService circleMatchService;
 
     /**

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-a39b48ee4f99c443023d9e56bded82acd25fd508
+c32988da2de3a7bd5a32899f6927c680e4a3adfe

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.248",
+  "version": "1.0.265",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.248",
+      "version": "1.0.265",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
   "name": "cfc-web",
-  "version": "1.0.249",
+  "version": "1.0.266",
   "private": true,
   "scripts": {
     "dev": "vue-cli-service serve",

+ 186 - 0
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,192 @@
 # 更新日志 (Changelog)
 
 此文件记录所有构建版本的变更。
+## v1.0.266 (2026-07-13)
+
+
+## v1.0.265 (2026-07-13)
+
+### Bug 修复
+- resolve playwright.config.js merge conflict - restore baseURL
+
+
+## v1.0.264 (2026-07-13)
+
+
+## v1.0.263 (2026-07-13)
+
+### 其他
+- 测试回退
+- 修复管理端前端标签不闭合问题
+- Ultraworked with Sisyphus
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with Sisyphus
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with Sisyphus
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with Sisyphus
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with Sisyphus
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+
+### 新功能
+- add article placeholder cards on action home page
+- DAN报告上传 - 集成到mind/wisdom维度页面
+- DAN报告上传 - 前端API + report-upload页面
+- DAN报告上传 - Controller端点 + 维度分数更新
+- DAN报告上传 - 创建DanReportParseService (A2/B4解析)
+- DAN报告上传 - 实体字段 + 数据库迁移80
+
+
+## v1.0.262 (2026-07-13)
+
+### 其他
+- 测试提交
+
+
+## v1.0.261 (2026-07-13)
+
+
+## v1.0.260 (2026-07-13)
+
+
+## v1.0.259 (2026-07-13)
+
+
+## v1.0.258 (2026-07-13)
+
+### 新功能
+- AI对话记忆层 - 会话摘要+关键事实+意图感知上下文注入
+
+### 其他
+- - 新增映射器: AiConversationSummaryMapper, AiUserFactMapper
+- - 新增AiContextService: 7意图路由
+- - AIService: enrichInputsWithMemory, getContext, requestSummaryAsync
+- - AIChatController: getContext()端点 + sendMessage注入记忆
+- - DatabaseInitializer: runMigration81内建表
+- - schema.sql: 同步两张新表定义
+- - WebConfig: /api/ai/context加入JWT白名单
+- - chat.vue: 简化传参(移除reportId/surveyId)
+- 
+
+
+## v1.0.257 (2026-07-13)
+
+
+## v1.0.256 (2026-07-13)
+
+### 新功能
+- productSpecMap API + Ppoint API 重构 + 供应商管理员搜索修复
+- products/cart 表新增 SKU 规格字段
+
+### 其他
+- - admin.js: Ppoint API 重命名 (getProductPpointList/saveProductPpoint/deleteProductPpoint/byProduct)
+- - supply-system/Form.vue: searchUsers 改用 API 函数
+- 
+- - products.sku_spec_names: 规格维度名 JSON
+- - products.delivery_methods: 配送方式支持
+- - cart.sku_id: 选中 SKU ID
+- - cart.spec_option_ids: 规格选项 ID 列表 JSON
+- 
+
+
+## v1.0.255 (2026-07-13)
+
+
+## v1.0.254 (2026-07-13)
+
+
+## v1.0.253 (2026-07-13)
+
+
+## v1.0.252 (2026-07-13)
+
+### 新功能
+- admin/user/search 供应商选管理员接口 + 修复 CircleService 循环依赖
+
+### 其他
+- - CircleService: 添加 @Lazy 注解打破 CircleService ↔ CircleMatchService 循环依赖
+- - cfc-web: 新增 ProductPpointManage 积分管理页面,完善供应商体系表单
+- - cfc-frontend: product-detail 页面更新
+- 
+
+
+## v1.0.251 (2026-07-13)
+
+### Bug 修复
+- ProductController spec map JSON.parseArray type inference for Java 8
+
+### 新功能
+- 维度页面缺口修补(Phase1) + 圈子系统(Phase2)
+
+### 其他
+- - 身: 健康打卡入口(HealthCheckinCard) + body/index.vue
+- - 智: 阅读时长展示(wisdom/index.vue reading stats)
+- - 心: 天盘相性入门版(已有完整天盘/兼容性模块)
+- - EnergyService: 心子维度(情绪稳定/理解包容/传承传递) + 五行克生算法v2.0
+- - MemberEnergyDTO: 心子维度字段
+- - ProductController: spec/map 规格映射接口
+- Phase2 珍珠图/圈子系统:
+- - 后端: SocialCircle/SocialCircleMember实体+Mapper
+- - 后端: CircleService CRUD + CircleMatchService匹配引擎
+- - 后端: CircleController API + DatabaseInitializer迁移85 + schema.sql
+- - 前端: PearlDiagram.vue 珍珠图横向滚动
+- - 前端: CircleCard.vue 圈子卡片组件
+- - 前端: CircleDetail.vue 圈子详情弹窗
+- - 前端: action/index.vue 集成PearlDiagram + CircleDetail
+- - 前端: api.js 圈子API函数
+- 
+
+
+## v1.0.250 (2026-07-13)
+
+### 新功能
+- 商品推荐 Phase 3-5 — FamilyContextService Dify输入 + AIChatController userId + 复购提醒
+- 电商 + 推荐系统 + 阅读统计 综合升级
+
+### 其他
+- - FamilyContextService: 新增3个Dify inputs (dimensionScores/recentCognitiveResult/purchasedProductTags) + 3私有辅助方法
+- - AIChatController: RecommendationQuery传入userId和familyId用于已购过滤
+- Phase 4 (P1):
+- - AssessmentService已有异步hook: DanAssessmentResult parent_upload 触发认知弱维度商品推荐
+- Phase 5 (P2):
+- - RepurchaseReminderService: @Scheduled 每日09:00扫描30-60天订单创建复购提醒 + getPendingReminders/onReminderClicked/onReminderPurchased
+- - RepurchaseReminderController: GET list + POST click/purchased 3个端点
+- - RepurchaseReminder.vue: 前端待处理复购提醒组件
+- 
+- - wisdom/index.vue: 阅读时长条件从 !== undefined 改为 > 0
+- 
+- - cart: 支持 SKU 选择 (sku_id, spec_option_ids), 字段扩展  (skuId, specDesc, supplierName)
+- - DatabaseInitializer: 迁移84 — cart 表 sku_id, spec_option_ids 列
+- - OrderItemVO: 新增 skuId, specOptionIds
+- - ProductDTO: 新增 effectivePpoint, ppointSource, profitRate
+- - CartService: addToCart 接收 skuId, 回填 supplierName 从 vendorName
+- ### P点管理
+- - PpointService: adminList() 管理端分页列表
+- - AdminProductPpointController: 新增管理端 P点配置控制器
+- ### 商品推荐系统
+- - ProductRecommendationService: 维度匹配引擎 (dimensionScore 排序 + 90天过滤 + 购买历史排除)
+- - ProductRecommendationController: POST /api/recommend/dimension-products
+- - 5维页面 (wisdom/body/mind/action/wealth): DimensionProductList 替换 DimensionProducts
+- ### 健康打卡
+- - HealthCheckinCard.vue: 新增健康打卡卡片组件
+- - body/index.vue: 集成 HealthCheckinCard
+- ### 智慧维度
+- - wisdom/index.vue: 本月阅读卡片 + 阅读统计 API 接入
+- ### 文档
+- - 五维能量设计: 更新 v2.1 富维度子维度算法 + 身克富杠杆文档
+- - 五维五行哲学: 补充富子维度表 + 身克富三态公式
+- 
+
+### Bug 修复
+- CartService 回填 skuId + wisdom 阅读统计条件优化
+
+
 ## v1.0.249 (2026-07-13)
 
 ### 文档