fix: 避免可用库存关联重复

This commit is contained in:
zhouz
2026-07-22 14:47:46 +08:00
parent 2e87bf70aa
commit 7105731d9d
3 changed files with 17 additions and 5 deletions

View File

@@ -39,6 +39,7 @@ VALUES (1001, '材料一', FALSE), (1002, '已删除材料', TRUE);
INSERT INTO wms_structattr(struct_id, storagevehicle_code, stor_id, stor_code, stor_name, deleted)
VALUES ('S-001', 'BOX-001', 'STOR-001', 'STOR-CODE-001', '一号仓', FALSE),
('S-001-B', 'BOX-001', 'STOR-001', 'STOR-CODE-001', '一号仓', FALSE),
('S-002', 'BOX-001', 'STOR-002', 'STOR-CODE-002', '二号仓', FALSE),
('S-003', 'BOX-002', 'STOR-001', 'STOR-CODE-001', '一号仓', FALSE),
('S-004', 'BOX-003', 'STOR-001', 'STOR-CODE-001', '一号仓', FALSE),