feat(sample-reception): 增加选填血量克重(g)并全量展示 (#188)
样本接收登记落库 blood_weight_g;Web 表单/详情与共享只读组件、 市场/生产展示及移动 OA 质检接收卡片在入库编码后展示该字段。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8253eaa8f8
commit
35f78d33de
15 files changed
+264
-1
No files matched your search
@@ -0,0 +1,17 @@
|
||||
-- 样本接收:增加血量克重(g)。MySQL 5.7,可重复执行。
|
||||
|
||||
SET @col_exists := (
|
||||
SELECT COUNT(*) FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE()
|
||||
AND TABLE_NAME = 'biz_sample_reception'
|
||||
AND COLUMN_NAME = 'blood_weight_g'
|
||||
);
|
||||
SET @sql := IF(
|
||||
@col_exists = 0,
|
||||
'ALTER TABLE biz_sample_reception
|
||||
ADD COLUMN blood_weight_g DECIMAL(18,4) NULL COMMENT ''血量克重(g)'' AFTER lab_storage_code',
|
||||
'SELECT 1'
|
||||
);
|
||||
PREPARE stmt FROM @sql;
|
||||
EXECUTE stmt;
|
||||
DEALLOCATE PREPARE stmt;
|
||||
Reference in new issue
Block a user