feat(production-reception): 脐带MSC增加选填脐带长度(cm) (#190)
生产接收 profile 挂载 cordLengthCm;前后端标为选填,避免被 既有「profile 全必填」逻辑拦截;只读/移动展示走共享字段解析。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0a62fd225c
commit
f80632c873
13 files changed
+154
-9
No files matched your search
@@ -0,0 +1,17 @@
|
||||
-- 生产接收:增加脐带长度(cm)。MySQL 5.7,可重复执行。
|
||||
|
||||
SET @col_exists := (
|
||||
SELECT COUNT(*) FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE()
|
||||
AND TABLE_NAME = 'biz_sample_production_reception'
|
||||
AND COLUMN_NAME = 'cord_length_cm'
|
||||
);
|
||||
SET @sql := IF(
|
||||
@col_exists = 0,
|
||||
'ALTER TABLE biz_sample_production_reception
|
||||
ADD COLUMN cord_length_cm DECIMAL(18,4) NULL COMMENT ''脐带长度(cm)'' AFTER nucleated_cell_count_1e8',
|
||||
'SELECT 1'
|
||||
);
|
||||
PREPARE stmt FROM @sql;
|
||||
EXECUTE stmt;
|
||||
DEALLOCATE PREPARE stmt;
|
||||
Reference in new issue
Block a user