-- 更新为空的组织排序码
update t_org_structure set fsortcode = flevel * 1000000 + 999999 where fsortcode = '' or fsortcode = ' ' or fsortcode is null;
-- 根组织的排序码
update t_org_structure set fsortcode = 1000000 where fparentid = 0;
