UPDATE pl_amt_arrive_notice a,
pay_plan_voucher b
SET
a.`use` = b.use_fund,
a.bgt_id = b.bgt_id,
a.mof_dep_code = b.mof_dep_code,
a.mof_dep_name = b.mof_dep_name
WHERE
a.bid = b.pay_quota_bid
and a.`use` is null
and a.bgt_id is null
and a.mof_dep_code is null
and a.mof_dep_name is null
and a.tenant_id = '填写当前区划'
and b.tenant_id = '填写当前区划'