This commit is contained in:
wkc
2026-01-16 16:16:13 +08:00
commit 8295b39278
662 changed files with 71808 additions and 0 deletions

29
sql/update_cust_info.sql Normal file
View File

@@ -0,0 +1,29 @@
update cust_info_merchant a
join
(select *
from ibs_anchor_address
where address_name = '注册地址'
and delete_status = '0'
and address_status = '1') b
set a.region_code = b.region_code
where b.anchor_id = a.social_credit_code;
update cust_info_business a
join
(select *
from ibs_anchor_address
where address_name = '注册地址'
and delete_status = '0'
and address_status = '1') b
set a.region_code = b.region_code
where b.anchor_id = a.social_credit_code;
update cust_info_retail a
join
(select *
from ibs_anchor_address
where address_name = '户籍地址'
and delete_status = '0'
and address_status = '1') b
set a.region_code = b.region_code
where b.anchor_id = a.cust_idc;