Merge branch 'main' of http://27.223.88.102:33000/chenx/qhmes
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
-- MES 胶料快检记录原始数据明细(存储桌面端试验结果全部检测值)
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `mes_xsl_rubber_quick_test_record_raw_line` (
|
||||
`id` varchar(32) NOT NULL COMMENT '主键',
|
||||
`record_id` varchar(32) NOT NULL COMMENT '主表 mes_xsl_rubber_quick_test_record.id',
|
||||
`row_no` varchar(32) DEFAULT NULL COMMENT '试验结果编号(如1_1)',
|
||||
`data_point_id` varchar(32) DEFAULT NULL COMMENT '数据点ID',
|
||||
`inspect_item` varchar(128) DEFAULT NULL COMMENT '数据点名称',
|
||||
`lower_limit` decimal(18,6) DEFAULT NULL COMMENT '下限值',
|
||||
`upper_limit` decimal(18,6) DEFAULT NULL COMMENT '上限值',
|
||||
`inspect_value` decimal(18,6) DEFAULT NULL COMMENT '检测值',
|
||||
`row_inspect_result` varchar(2) DEFAULT NULL COMMENT '行检验结果(字典xslmes_rubber_quick_test_record_result:1合格0不合格)',
|
||||
`sort_no` int DEFAULT NULL COMMENT '排序号',
|
||||
`create_by` varchar(32) DEFAULT NULL COMMENT '创建人',
|
||||
`create_time` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
`update_by` varchar(32) DEFAULT NULL COMMENT '更新人',
|
||||
`update_time` datetime DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_rubber_quick_test_record_raw_record_id` (`record_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='MES胶料快检记录原始数据明细';
|
||||
@@ -0,0 +1,11 @@
|
||||
-- 胶料快检实验标准:补齐 tenant_id 为空的记录(与 MES 默认租户 1002 一致)
|
||||
-- 说明:桌面端按 tenantId 拉取列表,tenant_id 为 NULL 的记录会被过滤导致条数不一致
|
||||
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
SET @mes_tenant_id = 1002;
|
||||
|
||||
UPDATE `mes_xsl_rubber_quick_test_std`
|
||||
SET `tenant_id` = @mes_tenant_id
|
||||
WHERE `tenant_id` IS NULL
|
||||
AND (`del_flag` = 0 OR `del_flag` IS NULL);
|
||||
Reference in New Issue
Block a user