-- 新增核算组织字段后对付款单、代发单和收款单的历史数据进行升级处理
update t_cas_paymentbill SET FOPENORGID=FORGID WHERE FOPENORGID IS NULL or FOPENORGID = 0;
update t_cas_agentpaybill SET FOPENORGID=FORGID WHERE FOPENORGID IS NULL or FOPENORGID = 0;
update t_cas_receivingbill SET FOPENORGID=FORGID WHERE FOPENORGID IS NULL or FOPENORGID = 0;