-- 行政组织、业务单元、人员 编码规则的默认应用规则改为：新增显示且允许修改（原来是：新增显示）：
UPDATE t_cr_coderule SET FAPPMODE = '3' WHERE FBIZOBJECTID = 'bos_adminorg' and ((SELECT count(FID) from t_org_org) <= 1);
UPDATE t_cr_coderule SET FAPPMODE = '3' WHERE FBIZOBJECTID = 'bos_org' and ((SELECT count(FID) from t_org_org) <= 1);
UPDATE t_cr_coderule SET FAPPMODE = '3' WHERE FBIZOBJECTID = 'bos_user' and ((SELECT max(FID) from t_sec_user) <= 99999999);
