Parcourir la source

chore: auto bump version and changelog [skip ci]

iwt il y a 1 semaine
Parent
commit
e51f025e5a

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

@@ -10529,5 +10529,9 @@ public class DatabaseInitializer implements CommandLineRunner {
         } catch (Exception e) {
             // 表已存在,忽略错误
         }
+
+        // 迁移306: health_reports和health_report_drafts添加file_hash字段(报告上传去重)
+        ensureColumn("health_reports", "file_hash", "VARCHAR(64) DEFAULT NULL COMMENT '文件MD5哈希,用于重复上传检测'");
+        ensureColumn("health_report_drafts", "file_hash", "VARCHAR(64) DEFAULT NULL COMMENT '文件MD5哈希,用于重复上传检测'");
     }
 }

+ 1 - 0
cfc-backend/src/main/resources/schema.sql

@@ -1827,6 +1827,7 @@ CREATE TABLE IF NOT EXISTS health_report_drafts (
     family_id BIGINT COMMENT '家庭ID',
     report_type VARCHAR(32) NOT NULL COMMENT '报告类型: physical_exam/gut_flora',
     file_url VARCHAR(500) COMMENT '上传的文件URL',
+    file_hash VARCHAR(64) DEFAULT NULL COMMENT '文件MD5哈希,用于重复上传检测',
     original_filename VARCHAR(255) COMMENT '原始文件名',
     payload_json MEDIUMTEXT NOT NULL COMMENT '草稿载荷JSON(含解析/手动录入的所有指标)',
     status VARCHAR(20) DEFAULT 'pending' COMMENT '状态: pending/confirmed/discarded',

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-5c7c6d492f8e5d15740df2585154a920ce5e803c
+de09a59dc7c7a4b0eac25b07b27fa1586f756cf8

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

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