-- 修复清理单上游单据的tableId，Bug号：BT-00287363、BT-00287362，清理单的上游单全都是调出单了，需要修复botp关系表里的上游单tableId
-- 清理申请单tableId = 310747073785913345
UPDATE T_FA_CLRBILL_LK SET FSTABLEID = 310747073785913345 WHERE FID IN (SELECT FID FROM T_FA_CLRBILL WHERE FCLEARSOURCE = 'APPLY');

UPDATE T_FA_CLRBILL_TC SET FSTABLEID = 310747073785913345 WHERE FTID IN (SELECT FID FROM T_FA_CLRBILL WHERE FCLEARSOURCE = 'APPLY');