Delete from LeftMenuInfo where id=100146
;
Delete from LeftMenuConfig where infoid=100146
;
Delete from LeftMenuInfo where id=100174
;
Delete from LeftMenuConfig where infoid=100174
;
Delete from LeftMenuInfo where id=100175
;
Delete from LeftMenuConfig where infoid=100175
;
Delete from LeftMenuInfo where id=100168
;
Delete from LeftMenuConfig where infoid=100168
;
call LMConfig_U_ByInfoInsert (2,100167,-1)
;
call LMInfo_Insert (100168,538765,'','',2,100167,-1,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrm/static4engine/engine.html#/hrmengine/fieldDef/subCompany' where id = 100168
;

Delete from LeftMenuInfo where id=100169
;
Delete from LeftMenuConfig where infoid=100169
;
call LMConfig_U_ByInfoInsert (2,100167,0)
;
call LMInfo_Insert (100169,538766,'','',2,100167,0,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrm/static4engine/engine.html#/hrmengine/fieldDef/department' where id = 100169
;

Delete from LeftMenuInfo where id=100171
;
Delete from LeftMenuConfig where infoid=100171
;
call LMConfig_U_ByInfoInsert (2,100167,2)
;
call LMInfo_Insert (100171,538767,'','',2,100167,2,2)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrm/static4engine/engine.html#/hrmengine/fieldDef/resource' where id = 100171
;

alter table jcl_org_job add column ec_jobTitle int
;

ALTER table jcl_org_map modify column fleader varchar(1000)
;


INSERT into jcl_org_job(ec_company,ec_department,ec_jobTitle,delete_type,forbidden_tag)  select DISTINCT  subcompanyid1 ,departmentid ,jobtitle ,0,0 from HrmResource
;

update jcl_field_extendinfo set delete_type = 1 where  extend_type =3 and field_name in('sequence_id','scheme_id','level_id','grade_id');
update jcl_field_extendgroup set delete_type = 1 where extend_type =3 and group_name ='职务';
INSERT INTO jcl_field_extendinfo (extend_type, table_name, field_name, field_name_desc, field_type, control_type, extend_group_id, isenable, isrequired, list_show, search_show, edit_show, add_show, browser_show, show_order, creator, delete_type, create_time, update_time, browser_type, custom_value, is_system_default, ismodify, check_props, modify_props) VALUES(3, 'JCL_ORG_JOB', 'ec_jobTitle', '名称', 'int', 3, 3, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, now(), NULL, '24', '["browser",{"valueSpan":"岗位","replaceDatas":[{"itemorderid":"24","name":"岗位","id":"24","parenttitle":"人事","title":"人事-岗位"}],"value":"24"}]', 0, 0, NULL, NULL);
update jcl_field_extendinfo set delete_type = 1 where table_name ='JCL_ORG_JOB' and field_name ='job_name';