-- =============================================
-- 种子质检记录独立菜单
-- 将质检记录从「种子质检」页(提交+记录合一)拆出，独立成菜单页面
-- 说明：
-- 1. 种子质检提交页：seed-quality -> mes/qc/seedQuality/index（仅提交）
-- 2. 质检记录页：seed-quality-record -> mes/qc/seedQuality/record（仅记录查询）
-- 挂在「质量管理」(5500) 目录下；幂等，可重复执行；无租户字段。
-- =============================================

INSERT INTO system_menu
(id, name, parent_id, type, sort, status, path, icon, component, component_name, permission, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted)
SELECT 1065224, '质检记录', 5500, 2, 95, 0, 'seed-quality-record', 'ep:list', 'mes/qc/seedQuality/record', 'MesQcSeedQualityRecord', '', b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0'
FROM DUAL
WHERE NOT EXISTS (SELECT 1 FROM system_menu WHERE id = 1065224 AND deleted = b'0');
