-- 统一 loan_pricing_workflow 表 org_code 默认值与存量数据

ALTER TABLE `loan_pricing_workflow`
    MODIFY COLUMN `org_code` varchar(20) NOT NULL DEFAULT '892000' COMMENT '机构编码(统一值892000)';

UPDATE `loan_pricing_workflow`
SET `org_code` = '892000'
WHERE `org_code` IS NULL
   OR `org_code` = ''
   OR `org_code` <> '892000';
