fix: 字段修改
This commit is contained in:
@@ -5,53 +5,54 @@
|
||||
|
||||
-- 同种物料准备两个起点,支持上下轴使用相同日计划物料。
|
||||
-- 不覆盖已有记录;重复执行不会重置已经使用或锁定的测试点位。
|
||||
-- parent_point_code 为示例关联编码,执行前请按现场关联关系调整。
|
||||
INSERT INTO lms_cache_cutpoint
|
||||
(ivt_id, point_code, point_name, material_code, qzz_no, gx_no,
|
||||
(ivt_id, point_code, parent_point_code, point_name, material_code, qzz_no, gx_no,
|
||||
sub_container, point_type, point_status, lock_status, is_used,
|
||||
product_area, plan, sort_seq, remark, creator, create_name, updater, update_optname, create_time, update_time)
|
||||
SELECT 9909040101, 'TEST_GZ_CACHE_01', '上轴测试管轴缓存位01',
|
||||
product_area, plan, sort_seq, remark, creator, updater, create_time, update_time)
|
||||
SELECT 9909040101, 'TEST_GZ_CACHE_01', 'TEST_PARENT_01', '上轴测试管轴缓存位01',
|
||||
'TEST_CORE_MAT_A', 'TEST_QZZ_001', 'TEST_GX_001',
|
||||
'TEST_SUB_001', '5', '1', '0', '1', '1', '1', 1,
|
||||
'分切上轴接口测试数据', '1', '超级管理员', '1', '超级管理员', NOW(), NOW()
|
||||
'分切上轴接口测试数据', '1', '1', NOW(), NOW()
|
||||
WHERE NOT EXISTS (SELECT 1 FROM lms_cache_cutpoint
|
||||
WHERE point_code = 'TEST_GZ_CACHE_01');
|
||||
|
||||
INSERT INTO lms_cache_cutpoint
|
||||
(ivt_id, point_code, point_name, material_code, qzz_no, gx_no,
|
||||
(ivt_id, point_code, parent_point_code, point_name, material_code, qzz_no, gx_no,
|
||||
sub_container, point_type, point_status, lock_status, is_used,
|
||||
product_area, plan, sort_seq, remark, creator, create_name, updater, update_optname, create_time, update_time)
|
||||
SELECT 9909040102, 'TEST_GZ_CACHE_02', '上轴测试管轴缓存位02',
|
||||
product_area, plan, sort_seq, remark, creator, updater, create_time, update_time)
|
||||
SELECT 9909040102, 'TEST_GZ_CACHE_02', 'TEST_PARENT_02', '上轴测试管轴缓存位02',
|
||||
'TEST_CORE_MAT_A', 'TEST_QZZ_002', 'TEST_GX_002',
|
||||
'TEST_SUB_002', '5', '1', '0', '1', '1', '1', 2,
|
||||
'分切上轴接口测试数据', '1', '超级管理员', '1', '超级管理员', NOW(), NOW()
|
||||
'分切上轴接口测试数据', '1', '1', NOW(), NOW()
|
||||
WHERE NOT EXISTS (SELECT 1 FROM lms_cache_cutpoint
|
||||
WHERE point_code = 'TEST_GZ_CACHE_02');
|
||||
|
||||
INSERT INTO lms_cache_cutpoint
|
||||
(ivt_id, point_code, point_name, material_code, qzz_no, gx_no,
|
||||
(ivt_id, point_code, parent_point_code, point_name, material_code, qzz_no, gx_no,
|
||||
sub_container, point_type, point_status, lock_status, is_used,
|
||||
product_area, plan, sort_seq, remark, creator, create_name, updater, update_optname, create_time, update_time)
|
||||
SELECT 9909040103, 'TEST_GZ_CACHE_03', '上轴测试管轴缓存位03',
|
||||
product_area, plan, sort_seq, remark, creator, updater, create_time, update_time)
|
||||
SELECT 9909040103, 'TEST_GZ_CACHE_03', 'TEST_PARENT_03', '上轴测试管轴缓存位03',
|
||||
'TEST_CORE_MAT_B', 'TEST_QZZ_003', 'TEST_GX_003',
|
||||
'TEST_SUB_003', '5', '1', '0', '1', '1', '1', 3,
|
||||
'分切上轴接口测试数据', '1', '超级管理员', '1', '超级管理员', NOW(), NOW()
|
||||
'分切上轴接口测试数据', '1', '1', NOW(), NOW()
|
||||
WHERE NOT EXISTS (SELECT 1 FROM lms_cache_cutpoint
|
||||
WHERE point_code = 'TEST_GZ_CACHE_03');
|
||||
|
||||
INSERT INTO lms_cache_cutpoint
|
||||
(ivt_id, point_code, point_name, material_code, qzz_no, gx_no,
|
||||
(ivt_id, point_code, parent_point_code, point_name, material_code, qzz_no, gx_no,
|
||||
sub_container, point_type, point_status, lock_status, is_used,
|
||||
product_area, plan, sort_seq, remark, creator, create_name, updater, update_optname, create_time, update_time)
|
||||
SELECT 9909040104, 'TEST_GZ_CACHE_04', '上轴测试管轴缓存位04',
|
||||
product_area, plan, sort_seq, remark, creator, updater, create_time, update_time)
|
||||
SELECT 9909040104, 'TEST_GZ_CACHE_04', 'TEST_PARENT_04', '上轴测试管轴缓存位04',
|
||||
'TEST_CORE_MAT_B', 'TEST_QZZ_004', 'TEST_GX_004',
|
||||
'TEST_SUB_004', '5', '1', '0', '1', '1', '1', 4,
|
||||
'分切上轴接口测试数据', '1', '超级管理员', '1', '超级管理员', NOW(), NOW()
|
||||
'分切上轴接口测试数据', '1', '1', NOW(), NOW()
|
||||
WHERE NOT EXISTS (SELECT 1 FROM lms_cache_cutpoint
|
||||
WHERE point_code = 'TEST_GZ_CACHE_04');
|
||||
|
||||
-- 检查插入结果及接口可选起点(代码按 ivt_id 倒序选择)。
|
||||
SELECT ivt_id, point_code, material_code, qzz_no, gx_no, sub_container,
|
||||
point_type, point_status, lock_status, is_used, creator, create_name, updater, update_optname
|
||||
SELECT ivt_id, point_code, parent_point_code, material_code, qzz_no, gx_no, sub_container,
|
||||
point_type, point_status, lock_status, is_used, creator, updater
|
||||
FROM lms_cache_cutpoint
|
||||
WHERE point_code IN ('TEST_GZ_CACHE_01', 'TEST_GZ_CACHE_02',
|
||||
'TEST_GZ_CACHE_03', 'TEST_GZ_CACHE_04')
|
||||
|
||||
Reference in New Issue
Block a user