-- 供应商数据同步测试脚本
-- 从Oracle业务数据库同步10条供应商数据到Doris数据仓库
-- 表名：dw_supplier
-- 数据源：A_PARTNER_SUPPLIER (SUPPLIER_STATE = 1)
-- 同步时间：2026-01-20

-- 清除现有测试数据（可选）
-- DELETE FROM dw_supplier WHERE supplier_id IN (
--     '000            ', '0000200055', '0000200103', '0000200259', '0000200464',
--     '0000200487', '0000200891', '0000200904', '0000200924', '0000201267'
-- );

-- 插入10条供应商测试数据
-- 注意：只插入关键字段，其他字段默认为NULL

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('000            ', '本厂', '本厂', '本厂', 1, NULL, NULL);

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200055', '金巴伦', '金巴伦', '东莞金巴伦服装有限公司', 1, '廖文信', '包琴敏');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200103', '鸿瑞皮具', '鸿瑞皮具', '广州市鸿瑞皮具有限公司', 1, '黄素华', '郑建英');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200259', '华慧', '华慧', '广州市华慧智造科技有限公司', 1, '诗云', '练华亮');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200464', '东润', '东润', '南通东润时装有限公司', 1, '张小花', '龙继东');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200487', '泰达', '泰达', '鹤山市泰达服饰有限公司', 1, '张小花', '任显良');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200891', '轩派', '轩派', '海宁市轩派服饰股份有限公司', 1, '朱春燕', '蔡铭旭');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200904', '金泰', '金泰', '惠州市金泰制衣有限公司', 1, '张金连', '连耀平');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000200924', '三海', '三海', '南通三海服饰有限公司', 1, '周辉', '高萍');

INSERT INTO dw_supplier (supplier_id, supplier_name, supplier_cname, supplier_full_name, supplier_state, supplier_contact, represent_name) 
VALUES ('0000201267', '金创', '金创', '南通金创针织有限公司', 1, '徐娟', '季峰');

-- 验证同步结果
-- SELECT COUNT(*) as sync_count FROM dw_supplier;
-- SELECT supplier_id, supplier_name, supplier_state FROM dw_supplier ORDER BY supplier_id;