delete from HtmlLabelIndex where id = 539986 and ( trim(indexdesc) is null )
/
insert into HtmlLabelIndex(id,indexdesc) select 539986,'人员卡片栏目设置' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539986 and ( trim(indexdesc) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539986 and languageid=7 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539986 as indexid ,'人员卡片栏目设置' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539986 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539986 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539986 as indexid ,'Personnel Card Column Settings' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539986 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539986 and languageid=9 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539986 as indexid ,'人員卡片欄目設置' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539986 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
/

Delete from LeftMenuInfo where id=100173
/
Delete from LeftMenuConfig where infoid=100173
/
call LMConfig_U_ByInfoInsert (2,100167,3)
/
call LMInfo_Insert (100173,539986,'','',2,100167,3,2)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/columnSetting' where id = 100173
/

CREATE TABLE JCL_ORG_CARDACCESS (
  ID NUMBER  NOT NULL,
  TYPE_ID NUMBER NOT NULL,
  TYPE_NAME NVARCHAR2(50) NOT NULL,
  STATUS NUMBER NULL,
  ALL_PEOPLE NUMBER NULL,
  SUPERIOR NUMBER NULL,
  ALL_SUPERIOR NUMBER NULL,
  CUSTOM NVARCHAR2(2000) NULL ,
  DELETE_TYPE NUMBER NULL,
  CREATOR NUMBER NULL,
  CREATE_TIME DATE NULL,
  UPDATE_TIME DATE NULL,
  CONSTRAINT JCL_ORG_CARDACCESS_PK PRIMARY KEY (ID)
)
/

CREATE SEQUENCE JCL_ORG_CARDACCESS_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE
/
CREATE
OR REPLACE TRIGGER JCL_ORG_CARDACCESS_ID_TIGGER BEFORE INSERT ON JCL_ORG_CARDACCESS FOR EACH ROW
BEGIN
SELECT
    JCL_ORG_CARDACCESS_ID.nextval INTO:new.ID
FROM
    dual;
END;
/


CREATE TABLE JCL_ORG_CARDBUTTON (
  ID NUMBER  NOT NULL,
  NAME NVARCHAR2(255) NOT NULL,
  STATUS NUMBER NULL,
  URL NVARCHAR2(255) NULL,
  ROLES NVARCHAR2(2000) NULL,
  SYS_DEFAULT NUMBER NOT NULL,
  SHOW_ORDER NUMBER NULL,
  OPEN_TYPE NUMBER NULL,
  CREATOR NUMBER NULL,
  DELETE_TYPE NUMBER NULL,
  CREATE_TIME DATE NULL,
  UPDATE_TIME DATE NULL,
  CONSTRAINT JCL_ORG_CARDBUTTON_PK PRIMARY KEY (ID)
)
/

CREATE SEQUENCE JCL_ORG_CARDBUTTON_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE
/
CREATE
OR REPLACE TRIGGER JCL_ORG_CARDBUTTON_ID_TIGGER BEFORE INSERT ON JCL_ORG_CARDBUTTON FOR EACH ROW
BEGIN
SELECT
    JCL_ORG_CARDBUTTON_ID.nextval INTO:new.ID
FROM
    dual;
END;
/

insert into jcl_org_cardbutton (name, status, url, sys_default, creator, delete_type, create_time, update_time) values ('编辑人员', 1, '/spa/organization/static/index.html#/main/organization/resourceExtend/${id}', 0, 1, 0, SYSDATE, SYSDATE)
/
ALTER TABLE JCL_FIELD_EXTENDINFO ADD ISMODIFY NUMBER 
/
ALTER TABLE JCL_FIELD_EXTENDINFO ADD MODIFY_PROPS NUMBER 
/
ALTER TABLE JCL_FIELD_EXTENDINFO ADD CHECK_PROPS NUMBER 
/
update jcl_field_extendinfo set check_props = 2, modify_props = 2 where is_system_default = 1 and delete_type = 0
/
ALTER TABLE JCL_ORG_JOBEXT_DT1 ADD GROUP_ID NUMBER
/