25 lines
674 B
MySQL
25 lines
674 B
MySQL
|
|
-- 已在客户备份核对列结构;业务语义仍待确认。
|
||
|
|
-- SQL Server 2008 R2 语法;主键游标分页,时间水位尚未启用。
|
||
|
|
SELECT TOP (:batch_size)
|
||
|
|
b.id AS id,
|
||
|
|
b.code AS code,
|
||
|
|
b.id AS line_no,
|
||
|
|
b.idArapReceivePaymentDTO AS source_parent_id,
|
||
|
|
b.voucherID,
|
||
|
|
b.voucherDetailID,
|
||
|
|
b.saleorderid,
|
||
|
|
b.saleordercode,
|
||
|
|
b.sourceorderid,
|
||
|
|
b.idsourceordertype,
|
||
|
|
b.idvouchertype,
|
||
|
|
b.voucherDate,
|
||
|
|
b.arrivalDate,
|
||
|
|
b.currentAmount,
|
||
|
|
b.Amount,
|
||
|
|
b.VoucherAmount,
|
||
|
|
CAST(NULL AS datetime) AS source_updated_at,
|
||
|
|
b.ts AS source_rowversion
|
||
|
|
FROM dbo.ARAP_ReceivePayment_b AS b
|
||
|
|
WHERE b.id > :after_id
|
||
|
|
ORDER BY b.id;
|