18 lines
670 B
Transact-SQL
18 lines
670 B
Transact-SQL
/* 冒烟测试数据:主单 2 条,明细 3 条(O1 有 2 条明细,O2 有 1 条) */
|
|
delete from dbo.smoke_order_item;
|
|
GO
|
|
delete from dbo.smoke_order;
|
|
GO
|
|
|
|
insert into dbo.smoke_order (b_id, b_no, b_status) values ('SO-1', N'单号一', 'draft');
|
|
GO
|
|
insert into dbo.smoke_order (b_id, b_no, b_status) values ('SO-2', N'单号二', 'audited');
|
|
GO
|
|
|
|
insert into dbo.smoke_order_item (b_item_id, b_order_id, b_name) values ('SI-1', 'SO-1', N'明细1');
|
|
GO
|
|
insert into dbo.smoke_order_item (b_item_id, b_order_id, b_name) values ('SI-2', 'SO-1', N'明细2');
|
|
GO
|
|
insert into dbo.smoke_order_item (b_item_id, b_order_id, b_name) values ('SI-3', 'SO-2', N'明细3');
|
|
GO
|