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 ec_jobTitle int;
/

ALTER table jcl_org_map modify(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 ='职务';
/

UPDATE JCL_FIELD_EXTENDINFO SET FIELD_NAME='ec_jobTitle', FIELD_NAME_DESC='名称', FIELD_TYPE='int', CONTROL_TYPE=3, CUSTOM_VALUE='["browser",{"valueSpan":"岗位","replaceDatas":[{"itemorderid":"24","name":"岗位","id":"24","parenttitle":"人事","title":"人事-岗位"}],"value":"24"}]', BROWSER_TYPE='24', ISENABLE=1, ISREQUIRED=0, LIST_SHOW=1, SEARCH_SHOW=1, EDIT_SHOW=1, ADD_SHOW=1, BROWSER_SHOW=1, SHOW_ORDER=1, IS_SYSTEM_DEFAULT=0, CREATOR=1, DELETE_TYPE=0, CREATE_TIME=SYSDATE, UPDATE_TIME=NULL, ISMODIFY=0, MODIFY_PROPS=NULL, CHECK_PROPS=NULL WHERE TABLE_NAME ='JCL_ORG_JOB' AND FIELD_NAME ='job_name';
/