You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/docs/sqlupgrade/PG/sql202211100103.sql

95 lines
3.4 KiB
SQL

delete from HtmlLabelIndex where id = 539986 and ( indexdesc is null or indexdesc = '' )
;
/
insert into HtmlLabelIndex(id,indexdesc) select 539986,'人员卡片栏目设置' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539986 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
/
delete from HtmlLabelInfo where indexid = 539986 and languageid=7 and ( labelname is null or labelname = '' )
;
/
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 ( labelname is not null and labelname <> '' )) limit 1
;
/
delete from HtmlLabelInfo where indexid = 539986 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(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 ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
/
delete from HtmlLabelInfo where indexid = 539986 and languageid=9 and ( labelname is null or labelname = '' )
;
/
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 ( labelname is not null and labelname <> '' )) limit 1
;
/
Delete from LeftMenuInfo where id=100173
;
/
Delete from LeftMenuConfig where infoid=100173
;
/
select LMConfig_U_ByInfoInsert (2,100167,3)
;
/
select 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 SERIAL NOT NULL,
TYPE_ID INT NOT NULL,
TYPE_NAME VARCHAR(50) NOT NULL,
STATUS INT NULL,
ALL_PEOPLE INT NULL,
SUPERIOR INT NULL,
ALL_SUPERIOR INT NULL,
CUSTOM VARCHAR(2000) NULL ,
DELETE_TYPE INT NULL,
CREATOR INT NULL,
CREATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
UPDATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
PRIMARY KEY (ID)
);
/
CREATE TABLE JCL_ORG_CARDBUTTON (
ID SERIAL NOT NULL,
NAME VARCHAR(255) NOT NULL,
STATUS INT NULL,
URL VARCHAR(255) NULL,
ROLES VARCHAR(2000) NULL,
SYS_DEFAULT INT NOT NULL,
SHOW_ORDER INT NULL,
OPEN_TYPE INT NULL,
CREATOR INT NULL,
DELETE_TYPE INT NULL,
CREATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
UPDATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
PRIMARY KEY (ID)
);
/
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, NOW(), NOW());
/
ALTER TABLE JCL_FIELD_EXTENDINFO ADD ISMODIFY INT;
/
ALTER TABLE JCL_FIELD_EXTENDINFO ADD MODIFY_PROPS INT;
/
ALTER TABLE JCL_FIELD_EXTENDINFO ADD CHECK_PROPS INT;
/
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 INT;
/