feat(tplus): 新增同步暂存与任务管理迁移和环境配置

This commit is contained in:
liuwenxin committed 2026-10-28 11:41:38 +08:00
1 parent 823d9f02ec
commit 78bef43c06
29 files changed
+1326 -5

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
-- 已在客户备份核对列结构;业务语义仍待确认。
-- SQL Server 2008 R2 语法;主键游标分页,时间水位尚未启用。
SELECT TOP (:batch_size)
b.id AS id,
b.code AS code,
b.id AS line_no,
b.idSaleOrderDTO AS source_parent_id,
b.idinventory,
b.quantity,
b.baseQuantity,
b.price,
b.taxPrice,
b.taxAmount,
b.discountAmount,
b.LatestCost,
b.IsClose,
b.updated AS source_updated_at,
b.ts AS source_rowversion
FROM dbo.SA_SaleOrder_b AS b
WHERE b.id > :after_id
ORDER BY b.id;