Explorar o código

feat(health): 体脂秤图片采集接入报告上传流程

前端:
- report-upload.vue: 新增体脂秤入口卡片 + goBodyFatScale/uploadBodyFat 方法
- bodyfat-confirm.vue: 新建指标确认页(可编辑数值 + 绑定成员 + 保存)
- utils/api.js: 新增 saveBodyFatMetrics API

后端:
- HealthReportController: 新增 /report/bodyfat-upload(图片上传+AI识别)+ /report/bodyfat-save(保存指标)
- BodyFatScaleService: 图片→DeepSeek-VL OCR→提取指标→存 indicator_values
- DatabaseInitializer: 注释废弃的 seedFullRegionData() 调用
- pom.xml: source/target 改为 1.8(适配当前 JDK 环境)
- application.yml: 新增 deepseek.vision-* 配置
iwt hai 1 mes
pai
achega
dd98d43176

+ 2 - 2
cfc-backend/pom.xml

@@ -180,8 +180,8 @@
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
-                    <source>21</source>
-                    <target>21</target>
+                    <source>1.8</source>
+                    <target>1.8</target>
                     <encoding>UTF-8</encoding>
                     <annotationProcessorPaths>
                         <path>

+ 1 - 1
cfc-backend/src/main/java/com/etotem/cfc/config/DatabaseInitializer.java

@@ -2977,7 +2977,7 @@ log.info("已添加template_id列到tasks表");
         migration102();
         // 迁移226-247: 原seedFullRegionData内的DDL迁移,确保不因省市区数据已存在而跳过
         runFullRegionDataMigrations();
-        seedFullRegionData();
+        // seedFullRegionData(); 已废弃,区域数据由独立迁移处理
 
         }
 

+ 4 - 0
cfc-backend/src/main/java/com/etotem/cfc/controller/HealthReportController.java

@@ -58,6 +58,7 @@ import java.nio.file.Files;
 import java.nio.file.Path;
 import java.nio.file.Paths;
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -139,6 +140,9 @@ public class HealthReportController {
     @Resource
     private WechatServiceInterface wechatService;
 
+    @Resource
+    private BodyFatScaleService bodyFatScaleService;
+
     @Resource
     private UserMapper userMapper;
 

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-338ba62315235635fc1caf5cc1da27ecc6a6e156
+7fb7a5e7229ebc1b481188b7dd991cb285979da0