commit
311d7b6fd8
@ -0,0 +1,3 @@
|
||||
ALTER TABLE JCL_ORG_SCHEME ADD SUBCOMPANYID NUMBER;
|
||||
/
|
||||
|
@ -0,0 +1,85 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label' ;
|
||||
/
|
||||
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789) ;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100190;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100190;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190;
|
||||
/
|
||||
|
||||
CREATE TABLE JCL_ORG_QTXCONFIG (
|
||||
ID NUMBER NOT NULL,
|
||||
APP_SECRET NVARCHAR2(255) NULL,
|
||||
URL NVARCHAR2(255) NULL,
|
||||
PC_ADDRESS NVARCHAR2(255) NULL,
|
||||
MOBILE_ADDRESS NVARCHAR2(255) NULL,
|
||||
SECOND_URL NVARCHAR2(255) NULL,
|
||||
CREATOR NUMBER NULL,
|
||||
CREATEDATE NVARCHAR2(10) NULL,
|
||||
CONSTRAINT JCL_ORG_QTXCONFIG_PK PRIMARY KEY (ID)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE JCL_ORG_QTXCONFIG_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER JCL_ORG_QTXCONFIG_ID_TIGGER BEFORE INSERT ON JCL_ORG_QTXCONFIG FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
JCL_ORG_QTXCONFIG_ID.nextval INTO:new.ID
|
||||
FROM
|
||||
dual;
|
||||
END;
|
||||
/
|
@ -0,0 +1,3 @@
|
||||
ALTER TABLE JCL_ORG_SCHEME ADD SUBCOMPANYID NUMBER;
|
||||
/
|
||||
|
@ -0,0 +1,44 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label' ;
|
||||
/
|
||||
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789) ;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100190;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190;
|
||||
/
|
@ -0,0 +1,3 @@
|
||||
ALTER TABLE JCL_ORG_SCHEME ADD SUBCOMPANYID NUMBER;
|
||||
/
|
||||
|
@ -0,0 +1,70 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label' ;
|
||||
/
|
||||
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789) ;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100190;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190;
|
||||
/
|
||||
|
||||
CREATE TABLE JCL_ORG_QTXCONFIG (
|
||||
ID NUMBER NOT NULL,
|
||||
APP_SECRET NVARCHAR2(255) NULL,
|
||||
URL NVARCHAR2(255) NULL,
|
||||
PC_ADDRESS NVARCHAR2(255) NULL,
|
||||
MOBILE_ADDRESS NVARCHAR2(255) NULL,
|
||||
SECOND_URL NVARCHAR2(255) NULL,
|
||||
CREATOR NUMBER NULL,
|
||||
CREATEDATE NVARCHAR2(10) NULL,
|
||||
CONSTRAINT JCL_ORG_QTXCONFIG_PK PRIMARY KEY (ID)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE JCL_ORG_QTXCONFIG_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER JCL_ORG_QTXCONFIG_ID_TIGGER BEFORE INSERT ON JCL_ORG_QTXCONFIG FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
JCL_ORG_QTXCONFIG_ID.nextval INTO:new.ID
|
||||
FROM
|
||||
dual;
|
||||
END;
|
||||
/
|
@ -0,0 +1 @@
|
||||
alter table jcl_org_scheme add subcompanyid int;
|
@ -0,0 +1,43 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( indexdesc is null or indexdesc = '' )
|
||||
;
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( indexdesc is not null and indexdesc <> '' )) limit 1
|
||||
;
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
|
||||
;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
|
||||
;
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label'
|
||||
;
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789)
|
||||
;
|
||||
|
||||
Delete from LeftMenuInfo where id=100190
|
||||
;
|
||||
Delete from LeftMenuConfig where infoid=100190
|
||||
;
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3)
|
||||
;
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2)
|
||||
;
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190
|
||||
;
|
||||
|
||||
CREATE TABLE JCL_ORG_QTXCONFIG (
|
||||
ID int(11) NOT NULL AUTO_INCREMENT,
|
||||
APP_SECRET varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
URL varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
PC_ADDRESS varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
MOBILE_ADDRESS varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
SECOND_URL varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
CREATOR int(11) NULL DEFAULT NULL,
|
||||
CREATEDATE varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
|
@ -0,0 +1,2 @@
|
||||
ALTER TABLE JCL_ORG_SCHEME ADD SUBCOMPANYID NUMBER
|
||||
/
|
@ -0,0 +1,57 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is null )
|
||||
/
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is not null )) and rownum = 1
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is null )
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is null )
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
|
||||
/
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label'
|
||||
/
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789)
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190
|
||||
/
|
||||
Delete from LeftMenuConfig where infoid=100190
|
||||
/
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3)
|
||||
/
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2)
|
||||
/
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190
|
||||
/
|
||||
|
||||
CREATE TABLE JCL_ORG_QTXCONFIG (
|
||||
ID NUMBER NOT NULL,
|
||||
APP_SECRET NVARCHAR2(255) NULL,
|
||||
URL NVARCHAR2(255) NULL,
|
||||
PC_ADDRESS NVARCHAR2(255) NULL,
|
||||
MOBILE_ADDRESS NVARCHAR2(255) NULL,
|
||||
SECOND_URL NVARCHAR2(255) NULL,
|
||||
CREATOR NUMBER NULL,
|
||||
CREATEDATE NVARCHAR2(10) NULL,
|
||||
CONSTRAINT JCL_ORG_QTXCONFIG_PK PRIMARY KEY (ID)
|
||||
)
|
||||
/
|
||||
|
||||
CREATE SEQUENCE JCL_ORG_QTXCONFIG_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER JCL_ORG_QTXCONFIG_ID_TIGGER BEFORE INSERT ON JCL_ORG_QTXCONFIG FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
JCL_ORG_QTXCONFIG_ID.nextval INTO:new.ID
|
||||
FROM
|
||||
dual;
|
||||
END;
|
||||
/
|
@ -1,148 +1,145 @@
|
||||
delete from HtmlLabelIndex where id = 539805 and ( trim(indexdesc) is null );
|
||||
delete from HtmlLabelIndex where id = 539805 and ( indexdesc is null or indexdesc = '' )
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 539805,'模块管理分权' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539805 and ( trim(indexdesc) is not null )) and rownum = 1;
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 539805,'模块管理分权' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539805 and ( indexdesc is not null and indexdesc <> '' )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 539805 and languageid=7 and ( trim(labelname) is null );
|
||||
delete from HtmlLabelInfo where indexid = 539805 and languageid=7 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539805 as indexid ,'模块管理分权' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539805 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539805 as indexid ,'模块管理分权' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539805 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 539805 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) );
|
||||
delete from HtmlLabelInfo where indexid = 539805 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539805 as indexid ,'Decentralization of module management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539805 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539805 as indexid ,'Decentralization of module management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539805 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 539805 and languageid=9 and ( trim(labelname) is null );
|
||||
delete from HtmlLabelInfo where indexid = 539805 and languageid=9 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539805 as indexid ,'模塊管理分權' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539805 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539805 as indexid ,'模塊管理分權' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539805 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelIndex where id = 539804 and ( trim(indexdesc) is null );
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 539804,'分权管理中心' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539804 and ( trim(indexdesc) is not null )) and rownum = 1;
|
||||
delete from HtmlLabelIndex where id = 539804 and ( indexdesc is null or indexdesc = '' )
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 539804 and languageid=7 and ( trim(labelname) is null );
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 539804,'分权管理中心' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539804 and ( indexdesc is not null and indexdesc <> '' )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539804 as indexid ,'分权管理中心' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539804 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1;
|
||||
delete from HtmlLabelInfo where indexid = 539804 and languageid=7 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 539804 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) );
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539804 as indexid ,'分权管理中心' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539804 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539804 as indexid ,'Decentralized management center' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539804 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1;
|
||||
delete from HtmlLabelInfo where indexid = 539804 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
|
||||
;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 539804 and languageid=9 and ( trim(labelname) is null );
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539804 as indexid ,'Decentralized management center' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539804 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539804 as indexid ,'分權管理中心' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539804 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1;
|
||||
delete from HtmlLabelInfo where indexid = 539804 and languageid=9 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100178;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539804 as indexid ,'分權管理中心' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539804 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100178;
|
||||
Delete from LeftMenuInfo where id=100178
|
||||
;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100139,5);
|
||||
Delete from LeftMenuConfig where infoid=100178
|
||||
;
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100178,539804,'','',2,100139,5,2);
|
||||
select LMConfig_U_ByInfoInsert (2,100139,5)
|
||||
;
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100178;
|
||||
select LMInfo_Insert (100178,539804,'','',2,100139,5,2)
|
||||
;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100179;
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100178
|
||||
;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100179;
|
||||
Delete from LeftMenuInfo where id=100179
|
||||
;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100178,-1);
|
||||
Delete from LeftMenuConfig where infoid=100179
|
||||
;
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100179,539805,'','',2,100178,-1,2);
|
||||
select LMConfig_U_ByInfoInsert (2,100178,-1)
|
||||
;
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/managerDetach' where id = 100179;
|
||||
select LMInfo_Insert (100179,539805,'','',2,100178,-1,2)
|
||||
;
|
||||
/
|
||||
|
||||
delete from SystemRightDetail where rightid =2727;
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/managerDetach' where id = 100179
|
||||
;
|
||||
/
|
||||
|
||||
delete from SystemRightsLanguage where id =2727;
|
||||
/
|
||||
|
||||
delete from SystemRights where id =2727;
|
||||
/
|
||||
|
||||
delete from SystemRightToGroup where rightid =2727;
|
||||
delete from SystemRightDetail where rightid =2727
|
||||
;
|
||||
/
|
||||
|
||||
delete from SystemRightType where id =37;
|
||||
delete from SystemRightsLanguage where id =2727
|
||||
;
|
||||
/
|
||||
|
||||
delete from SystemRightGroups where id =-23;
|
||||
delete from SystemRights where id =2727
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRights (id,rightdesc,righttype,detachable) values (2727,'模块管理分权','37',0);
|
||||
delete from SystemRightToGroup where rightid =2727
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2727,8,'Decentralization of module management','Decentralization of module management');
|
||||
delete from SystemRightType where id =37
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2727,9,'模塊管理分權','模塊管理分權');
|
||||
delete from SystemRightGroups where id =-23
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2727,7,'模块管理分权','模块管理分权');
|
||||
insert into SystemRights (id,rightdesc,righttype,detachable) values (2727,'模块管理分权','37',0)
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (44005,'模块管理分权权限','MangerDeatch:All',2727);
|
||||
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2727,8,'Decentralization of module management','Decentralization of module management')
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightToGroup(rightid,groupid) values (2727,-23);
|
||||
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2727,9,'模塊管理分權','模塊管理分權')
|
||||
;
|
||||
/
|
||||
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2727,7,'模块管理分权','模块管理分权')
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightGroups (id,rightgroupmark, rightgroupname, rightgroupremark) values(-23,'ORGANIZATION','组织管理权限组','组织管理');
|
||||
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (44005,'模块管理分权权限','MangerDeatch:All',2727)
|
||||
;
|
||||
/
|
||||
|
||||
insert into SystemRightType(id,rightTypeName,rightTypeDesc) VALUES (37,'组织管理','组织管理');
|
||||
insert into SystemRightToGroup(rightid,groupid) values (2727,-23)
|
||||
;
|
||||
/
|
||||
insert into SystemRightGroups (id,rightgroupmark, rightgroupname, rightgroupremark) values(-23,'ORGANIZATION','组织管理权限组','组织管理')
|
||||
;
|
||||
/
|
||||
insert into SystemRightType(id,rightTypeName,rightTypeDesc) VALUES (37,'组织管理','组织管理')
|
||||
;
|
||||
/
|
||||
|
||||
CREATE TABLE JCL_ORG_DETACH (
|
||||
ID NUMBER NOT NULL,
|
||||
MANAGER_TYPE NUMBER NULL,
|
||||
EC_MANAGER NUMBER NOT NULL,
|
||||
JCL_MANAGER NUMBER NOT NULL,
|
||||
ID SERIAL NOT NULL,
|
||||
MANAGER_TYPE INT NULL,
|
||||
EC_MANAGER INT NOT NULL,
|
||||
JCL_MANAGER INT NOT NULL,
|
||||
EC_ROLELEVEL VARCHAR(4000) NOT NULL,
|
||||
JCL_ROLELEVEL VARCHAR(4000) NOT NULL,
|
||||
MANAGE_MODULE VARCHAR(4000) NOT NULL,
|
||||
CREATOR NUMBER NULL,
|
||||
DELETE_TYPE NUMBER NULL,
|
||||
CREATE_TIME DATE NULL,
|
||||
UPDATE_TIME DATE NULL,
|
||||
CONSTRAINT JCL_ORG_DETACH_PK PRIMARY KEY (ID)
|
||||
CREATOR INT NULL,
|
||||
DELETE_TYPE INT NULL,
|
||||
CREATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
|
||||
UPDATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
|
||||
PRIMARY KEY (ID)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE JCL_ORG_DETACH_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER JCL_ORG_DETACH_ID_TIGGER BEFORE INSERT ON JCL_ORG_DETACH FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
JCL_ORG_DETACH_ID.nextval INTO:new.ID
|
||||
FROM
|
||||
dual;
|
||||
END;
|
||||
/
|
@ -1,116 +1,95 @@
|
||||
delete from HtmlLabelIndex where id = 539986 and ( trim(indexdesc) is null );
|
||||
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 ( trim(indexdesc) is not null )) and rownum = 1;
|
||||
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 ( trim(labelname) is null );
|
||||
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 ( trim(labelname) is not null )) and rownum = 1;
|
||||
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 ( trim(labelname) is null or length(labelname)!=lengthb(labelname) );
|
||||
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 ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1;
|
||||
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 ( trim(labelname) is null );
|
||||
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 ( trim(labelname) is not null )) and rownum = 1;
|
||||
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 LeftMenuInfo where id=100173
|
||||
;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100173;
|
||||
Delete from LeftMenuConfig where infoid=100173
|
||||
;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
select LMConfig_U_ByInfoInsert (2,100167,3)
|
||||
;
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100173,539986,'','',2,100167,3,2);
|
||||
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;
|
||||
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)
|
||||
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 SEQUENCE JCL_ORG_CARDACCESS_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 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)
|
||||
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)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE JCL_ORG_CARDBUTTON_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 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);
|
||||
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 NUMBER;
|
||||
ALTER TABLE JCL_FIELD_EXTENDINFO ADD ISMODIFY INT;
|
||||
/
|
||||
|
||||
ALTER TABLE JCL_FIELD_EXTENDINFO ADD MODIFY_PROPS NUMBER;
|
||||
ALTER TABLE JCL_FIELD_EXTENDINFO ADD MODIFY_PROPS INT;
|
||||
/
|
||||
|
||||
ALTER TABLE JCL_FIELD_EXTENDINFO ADD CHECK_PROPS NUMBER;
|
||||
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 NUMBER;
|
||||
ALTER TABLE JCL_ORG_JOBEXT_DT1 ADD GROUP_ID INT;
|
||||
/
|
@ -1,157 +1,118 @@
|
||||
CREATE TABLE HRMSUBCOMPANY_VERSION (
|
||||
ID NUMBER NOT NULL,
|
||||
SUBCOMID NUMBER NULL,
|
||||
SUBCOMPANYDESC NVARCHAR2 ( 255 ) NULL,
|
||||
SUBCOMPANYCODE NVARCHAR2 ( 255 ) NULL,
|
||||
SUBCOMPANYNAME NVARCHAR2 ( 255 ) NULL,
|
||||
SUPSUBCOMID NUMBER NULL,
|
||||
SHOWORDER NUMBER NULL,
|
||||
CANCELED NUMBER NULL,
|
||||
DESCRIPTION NVARCHAR2 ( 2000 ) NULL,
|
||||
OPERATOR NVARCHAR2 ( 255 ) NULL,
|
||||
VERSION NUMBER ( 9,1 ) NULL,
|
||||
OPERATE_TIME DATE NULL,
|
||||
CONSTRAINT HRMSUBCOMPANY_VERSION_PK PRIMARY KEY ( ID )
|
||||
ID SERIAL NOT NULL,
|
||||
SUBCOMID INT NULL,
|
||||
SUBCOMPANYDESC VARCHAR ( 255 ) NULL,
|
||||
SUBCOMPANYCODE VARCHAR ( 255 ) NULL,
|
||||
SUBCOMPANYNAME VARCHAR ( 255 ) NULL,
|
||||
SUPSUBCOMID INT NULL,
|
||||
SHOWORDER INT NULL,
|
||||
CANCELED INT NULL,
|
||||
DESCRIPTION VARCHAR ( 2000 ) NULL,
|
||||
OPERATOR VARCHAR ( 255 ) NULL,
|
||||
VERSION DECIMAL ( 9,1 ) NULL,
|
||||
OPERATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
|
||||
PRIMARY KEY ( ID )
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE HRMSUBCOMPANY_VERSION_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER HRMCOMP_VERSION_ID_TIGGER BEFORE INSERT ON HRMSUBCOMPANY_VERSION FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
HRMSUBCOMPANY_VERSION_ID.nextval INTO :new.ID
|
||||
FROM
|
||||
dual;
|
||||
|
||||
END;
|
||||
/
|
||||
|
||||
CREATE TABLE HRMDEPARTMENT_VERSION (
|
||||
ID NUMBER NOT NULL,
|
||||
DEPARTMENTID NUMBER NULL,
|
||||
DEPARTMENTMARK NVARCHAR2 ( 255 ) NULL,
|
||||
DEPARTMENTCODE NVARCHAR2 ( 255 ) NULL,
|
||||
DEPARTMENTNAME NVARCHAR2 ( 255 ) NULL,
|
||||
SUBCOMPANYID1 NUMBER NULL,
|
||||
SUPDEPID NUMBER NULL,
|
||||
BMFZR NVARCHAR2 ( 2000 ) NULL,
|
||||
SHOWORDER NUMBER NULL,
|
||||
CANCELED NUMBER NULL,
|
||||
DESCRIPTION NVARCHAR2 ( 2000 ) NULL,
|
||||
OPERATOR NVARCHAR2 ( 255 ) NULL,
|
||||
VERSION NUMBER ( 9,1 ) NULL,
|
||||
OPERATE_TIME DATE NULL,
|
||||
CONSTRAINT HRMDEPARTMENT_VERSION_PK PRIMARY KEY ( ID )
|
||||
ID SERIAL NOT NULL,
|
||||
DEPARTMENTID INT NULL,
|
||||
DEPARTMENTMARK VARCHAR ( 255 ) NULL,
|
||||
DEPARTMENTCODE VARCHAR ( 255 ) NULL,
|
||||
DEPARTMENTNAME VARCHAR ( 255 ) NULL,
|
||||
SUBCOMPANYID1 INT NULL,
|
||||
SUPDEPID INT NULL,
|
||||
BMFZR VARCHAR ( 2000 ) NULL,
|
||||
SHOWORDER INT NULL,
|
||||
CANCELED INT NULL,
|
||||
DESCRIPTION VARCHAR ( 2000 ) NULL,
|
||||
OPERATOR VARCHAR ( 255 ) NULL,
|
||||
VERSION DECIMAL ( 9,1 ) NULL,
|
||||
OPERATE_TIME TIMESTAMP WITHOUT TIME ZONE NULL,
|
||||
PRIMARY KEY ( ID )
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE HRMDEPARTMENT_VERSION_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER HRMDEPT_VERSION_ID_TIGGER BEFORE INSERT ON HRMDEPARTMENT_VERSION FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
HRMDEPARTMENT_VERSION_ID.nextval INTO :new.ID
|
||||
FROM
|
||||
dual;
|
||||
END;
|
||||
/
|
||||
|
||||
CREATE TABLE "HRMRESOURCE_VERSION" (
|
||||
"ID" NUMBER NOT NULL,
|
||||
"RESOURCEID" NUMBER,
|
||||
"COMPANYSTARTDATE" DATE NULL,
|
||||
"COMPANYWORKYEAR" NUMBER,
|
||||
"WORKSTARTDATE" DATE NULL,
|
||||
"WORKYEAR" NUMBER,
|
||||
"USEKIND" NUMBER,
|
||||
"JOBCALL" NUMBER,
|
||||
"ACCUMFUNDACCOUNT" NVARCHAR2 (100) NULL,
|
||||
"BIRTHPLACE" NVARCHAR2 (255) NULL,
|
||||
"FOLK" NVARCHAR2 (255) NULL,
|
||||
"RESIDENTPHONE" NVARCHAR2 (255) NULL,
|
||||
"RESIDENTPOSTCODE" NVARCHAR2 (1000) NULL,
|
||||
"EXTPHONE" NVARCHAR2 (255) NULL,
|
||||
"MANAGERSTR" NVARCHAR2 (255) NULL,
|
||||
"STATUS" NUMBER,
|
||||
"FAX" NVARCHAR2 (255) NULL,
|
||||
"ISLABOUUNION" CHAR(10),
|
||||
"WEIGHT" NUMBER,
|
||||
"TEMPRESIDENTNUMBER" VARCHAR2(1000),
|
||||
"PROBATIONENDDATE" DATE NULL,
|
||||
"COUNTRYID" NUMBER DEFAULT 1,
|
||||
"PASSWDCHGDATE" DATE NULL,
|
||||
"LLOGINID" VARCHAR2(1000),
|
||||
"DSPORDER" FLOAT(53),
|
||||
"PASSWORDSTATE" NUMBER,
|
||||
"ACCOUNTTYPE" NUMBER,
|
||||
"BELONGTO" NUMBER,
|
||||
"MESSAGERURL" VARCHAR2(1000),
|
||||
"ACCOUNTNAME" VARCHAR2(1000),
|
||||
"LOGINID" VARCHAR2(1000),
|
||||
"PASSWORD" VARCHAR2(1000),
|
||||
"LASTNAME" VARCHAR2(1000),
|
||||
"SEX" CHAR(1),
|
||||
"BIRTHDAY" CHAR(10),
|
||||
"NATIONALITY" NUMBER,
|
||||
"MARITALSTATUS" CHAR(1),
|
||||
"TELEPHONE" VARCHAR2(1000),
|
||||
"MOBILE" VARCHAR2(1000),
|
||||
"MOBILECALL" VARCHAR2(1000),
|
||||
"EMAIL" VARCHAR2(1000),
|
||||
"LOCATIONID" NUMBER,
|
||||
"WORKROOM" VARCHAR2(1000),
|
||||
"HOMEADDRESS" VARCHAR2(1000),
|
||||
"RESOURCETYPE" CHAR(1),
|
||||
"STARTDATE" DATE NULL,
|
||||
"ENDDATE" DATE NULL,
|
||||
"JOBTITLE" NUMBER,
|
||||
"JOBACTIVITYDESC" VARCHAR2(1000),
|
||||
"JOBLEVEL" NUMBER,
|
||||
"SECLEVEL" NUMBER,
|
||||
"DEPARTMENTID" NUMBER,
|
||||
"SUBCOMPANYID1" NUMBER,
|
||||
"COSTCENTERID" NUMBER,
|
||||
"MANAGERID" NUMBER,
|
||||
"ASSISTANTID" NUMBER,
|
||||
"BANKID1" NUMBER,
|
||||
"ACCOUNTID1" VARCHAR2(1000),
|
||||
"RESOURCEIMAGEID" NUMBER,
|
||||
"CERTIFICATENUM" VARCHAR2(1000),
|
||||
"NATIVEPLACE" VARCHAR2(1000),
|
||||
"EDUCATIONLEVEL" NUMBER,
|
||||
"BEMEMBERDATE" DATE NULL,
|
||||
"BEPARTYDATE" DATE NULL,
|
||||
"WORKCODE" VARCHAR2(1000),
|
||||
"REGRESIDENTPLACE" VARCHAR2(1000),
|
||||
"HEALTHINFO" CHAR(1),
|
||||
"RESIDENTPLACE" VARCHAR2(1000),
|
||||
"POLICY" VARCHAR2(1000),
|
||||
"DEGREE" VARCHAR2(1000),
|
||||
"HEIGHT" VARCHAR2(640),
|
||||
"CLASSIFICATION" CHAR(1) DEFAULT 3,
|
||||
"DESCRIPTION" VARCHAR2 ( 2000 ) NULL,
|
||||
"OPERATOR" VARCHAR2 ( 255 ) NULL,
|
||||
"VERSION" NUMBER ( 9, 1 ) NULL,
|
||||
"OPERATE_TIME" DATE NULL,
|
||||
CONSTRAINT HRMRESOURCE_VERSION_PK PRIMARY KEY ( ID )
|
||||
create table HRMRESOURCE_VERSION (
|
||||
ID SERIAL NOT NULL,
|
||||
RESOURCEID INT,
|
||||
COMPANYSTARTDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
COMPANYWORKYEAR INT,
|
||||
WORKSTARTDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
WORKYEAR INT,
|
||||
USEKIND INT,
|
||||
JOBCALL INT,
|
||||
ACCUMFUNDACCOUNT VARCHAR (100) null,
|
||||
BIRTHPLACE VARCHAR (255) null,
|
||||
FOLK VARCHAR (255) null,
|
||||
RESIDENTPHONE VARCHAR (255) null,
|
||||
RESIDENTPOSTCODE VARCHAR (1000) null,
|
||||
EXTPHONE VARCHAR (255) null,
|
||||
MANAGERSTR VARCHAR (255) null,
|
||||
STATUS INT,
|
||||
FAX VARCHAR (255) null,
|
||||
ISLABOUUNION CHAR(10),
|
||||
WEIGHT INT,
|
||||
TEMPRESIDENTNUMBER VARCHAR(1000),
|
||||
PROBATIONENDDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
COUNTRYID INT default 1,
|
||||
PASSWDCHGDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
LLOGINID VARCHAR(1000),
|
||||
DSPORDER FLOAT(53),
|
||||
PASSWORDSTATE INT,
|
||||
ACCOUNTTYPE INT,
|
||||
BELONGTO INT,
|
||||
MESSAGERURL VARCHAR(1000),
|
||||
ACCOUNTNAME VARCHAR(1000),
|
||||
LOGINID VARCHAR(1000),
|
||||
PASSWORD VARCHAR(1000),
|
||||
LASTNAME VARCHAR(1000),
|
||||
SEX CHAR(1),
|
||||
BIRTHDAY CHAR(10),
|
||||
NATIONALITY INT,
|
||||
MARITALSTATUS CHAR(1),
|
||||
TELEPHONE VARCHAR(1000),
|
||||
MOBILE VARCHAR(1000),
|
||||
MOBILECALL VARCHAR(1000),
|
||||
EMAIL VARCHAR(1000),
|
||||
LOCATIONID INT,
|
||||
WORKROOM VARCHAR(1000),
|
||||
HOMEADDRESS VARCHAR(1000),
|
||||
RESOURCETYPE CHAR(1),
|
||||
STARTDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
ENDDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
JOBTITLE INT,
|
||||
JOBACTIVITYDESC VARCHAR(1000),
|
||||
JOBLEVEL INT,
|
||||
SECLEVEL INT,
|
||||
DEPARTMENTID INT,
|
||||
SUBCOMPANYID1 INT,
|
||||
COSTCENTERID INT,
|
||||
MANAGERID INT,
|
||||
ASSISTANTID INT,
|
||||
BANKID1 INT,
|
||||
ACCOUNTID1 VARCHAR(1000),
|
||||
RESOURCEIMAGEID INT,
|
||||
CERTIFICATENUM VARCHAR(1000),
|
||||
NATIVEPLACE VARCHAR(1000),
|
||||
EDUCATIONLEVEL INT,
|
||||
BEMEMBERDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
BEPARTYDATE TIMESTAMP WITHOUT TIME ZONE null,
|
||||
WORKCODE VARCHAR(1000),
|
||||
REGRESIDENTPLACE VARCHAR(1000),
|
||||
HEALTHINFO CHAR(1),
|
||||
RESIDENTPLACE VARCHAR(1000),
|
||||
POLICY VARCHAR(1000),
|
||||
DEGREE VARCHAR(1000),
|
||||
HEIGHT VARCHAR(640),
|
||||
CLASSIFICATION CHAR(1) default 3,
|
||||
DESCRIPTION VARCHAR (2000) null,
|
||||
OPERATOR VARCHAR (255) null,
|
||||
VERSION DECIMAL ( 9,1 ) null,
|
||||
OPERATE_TIME TIMESTAMP WITHOUT TIME ZONE null,
|
||||
primary key (ID)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE HRMRESOURCE_VERSION_ID INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER HRMRES_VERSION_ID_TIGGER BEFORE INSERT ON HRMRESOURCE_VERSION FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
HRMRESOURCE_VERSION_ID.nextval INTO :new.ID
|
||||
FROM
|
||||
dual;
|
||||
|
||||
END;
|
||||
/
|
@ -0,0 +1,2 @@
|
||||
ALTER TABLE JCL_ORG_SCHEME ADD SUBCOMPANYID NUMBER;
|
||||
/
|
@ -0,0 +1,44 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( indexdesc is null or indexdesc = '' ) ;
|
||||
/
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( indexdesc is not null and indexdesc <> '' )) limit 1 ;
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is null or labelname = '' ) ;
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1 ;
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=octet_length(labelname) ) ;
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=octet_length(labelname) )) limit 1 ;
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is null or labelname = '' ) ;
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1 ;
|
||||
/
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label' ;
|
||||
/
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789) ;
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190;
|
||||
/
|
||||
Delete from LeftMenuConfig where infoid=100190;
|
||||
/
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
/
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2);
|
||||
/
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190;
|
||||
/
|
||||
|
||||
CREATE TABLE JCL_ORG_QTXCONFIG (
|
||||
ID SERIAL NOT NULL,
|
||||
APP_SECRET VARCHAR(255) NULL,
|
||||
URL VARCHAR(255) NULL,
|
||||
PC_ADDRESS VARCHAR(255) NULL,
|
||||
MOBILE_ADDRESS VARCHAR(255) NULL,
|
||||
SECOND_URL VARCHAR(255) NULL,
|
||||
CREATOR INT NULL,
|
||||
CREATEDATE VARCHAR(10) NULL,
|
||||
PRIMARY KEY (ID)
|
||||
);
|
||||
/
|
@ -0,0 +1,2 @@
|
||||
alter table jcl_org_scheme add subcompanyid int
|
||||
GO
|
@ -0,0 +1,43 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( indexdesc is null or indexdesc = '' )
|
||||
GO
|
||||
insert into HtmlLabelIndex(id,indexdesc) select top 1 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( indexdesc is not null and indexdesc <> '' ))
|
||||
GO
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is null or labelname = '' )
|
||||
GO
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
||||
GO
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[吖-座]%' )
|
||||
GO
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[吖-座]%' ))
|
||||
GO
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is null or labelname = '' )
|
||||
GO
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
||||
GO
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label'
|
||||
GO
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789)
|
||||
GO
|
||||
|
||||
Delete from LeftMenuInfo where id=100190
|
||||
GO
|
||||
Delete from LeftMenuConfig where infoid=100190
|
||||
GO
|
||||
EXECUTE LMConfig_U_ByInfoInsert 2,100167,3
|
||||
GO
|
||||
EXECUTE LMInfo_Insert 100190,544789,'','',2,100167,3,2
|
||||
GO
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190
|
||||
GO
|
||||
|
||||
CREATE TABLE [JCL_ORG_QTXCONFIG] (
|
||||
[ID] int IDENTITY(1,1) NOT NULL,
|
||||
[APP_SECRET] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
|
||||
[URL] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
|
||||
[PC_ADDRESS] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
|
||||
[MOBILE_ADDRESS] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
|
||||
[SECOND_URL] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
|
||||
[CREATOR] int NULL,
|
||||
[CREATEDATE] varchar(255) COLLATE Chinese_PRC_CI_AS NULL,
|
||||
)
|
||||
GO
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
||||
ALTER TABLE JCL_ORG_SCHEME ADD SUBCOMPANYID NUMBER;
|
||||
/
|
||||
|
@ -0,0 +1,71 @@
|
||||
delete from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is null );
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 544789,'企通学配置自定义' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544789 and ( trim(indexdesc) is not null )) and rownum = 1;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is null );
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通学配置自定义' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) );
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'Enterprise Communication Configuration Customization' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is null );
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544789 as indexid ,'企通學配置自定義' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544789 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1;
|
||||
/
|
||||
|
||||
delete from HtmlModuleLabel where indexId = 544789 and moduleCode = 'HRM' and type = 'label';
|
||||
/
|
||||
|
||||
insert into HtmlModuleLabel(type,moduleCode,indexId) values ('label','HRM',544789);
|
||||
/
|
||||
|
||||
Delete from LeftMenuInfo where id=100190;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100190;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100167,3);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100190,544789,'','',2,100167,3,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/qtxConfig' where id = 100190;
|
||||
/
|
||||
|
||||
CREATE TABLE JCL_ORG_QTXCONFIG (
|
||||
ID NUMBER NOT NULL,
|
||||
APP_SECRET NVARCHAR2(255) NULL,
|
||||
URL NVARCHAR2(255) NULL,
|
||||
PC_ADDRESS NVARCHAR2(255) NULL,
|
||||
MOBILE_ADDRESS NVARCHAR2(255) NULL,
|
||||
SECOND_URL NVARCHAR2(255) NULL,
|
||||
CREATOR NUMBER NULL,
|
||||
CREATEDATE NVARCHAR2(10) NULL,
|
||||
CONSTRAINT JCL_ORG_QTXCONFIG_PK PRIMARY KEY (ID)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE SEQUENCE JCL_ORG_QTXCONFIG_ID INCREMENT BY 1 START WITH 1 nomaxvalue minvalue 1 NOCYCLE;
|
||||
/
|
||||
|
||||
CREATE
|
||||
OR REPLACE TRIGGER JCL_ORG_QTXCONFIG_ID_TIGGER BEFORE INSERT ON JCL_ORG_QTXCONFIG FOR EACH ROW
|
||||
BEGIN
|
||||
SELECT
|
||||
JCL_ORG_QTXCONFIG_ID.nextval INTO:new.ID
|
||||
FROM
|
||||
dual;
|
||||
END;
|
||||
/
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.api.organization.web;
|
||||
|
||||
import javax.ws.rs.Path;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/9/1 10:21 AM
|
||||
* @Description: TODO
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Path("/bs/hrmorganization/staff/out")
|
||||
public class StaffOutController extends com.engine.organization.web.StaffOutController {
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
package com.engine.organization.entity.staff.param;
|
||||
|
||||
import com.engine.organization.enums.StaffChangeEnum;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/9/1 11:02 AM
|
||||
* @Description:
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class StaffOutParam {
|
||||
|
||||
private StaffChangeEnum type;
|
||||
|
||||
private Integer planId;
|
||||
|
||||
private Integer company;
|
||||
|
||||
private Integer department;
|
||||
|
||||
private Integer job;
|
||||
|
||||
/**
|
||||
* 调整方式 1.流程 2.其它
|
||||
*/
|
||||
private Integer changeMode;
|
||||
|
||||
/**
|
||||
* 变动数
|
||||
*/
|
||||
private Integer num;
|
||||
|
||||
}
|
@ -0,0 +1,85 @@
|
||||
package com.engine.organization.entity.staff.param;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @author:dxfeng
|
||||
* @createTime: 2022/05/25
|
||||
* @version: 1.0
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class StaffSerachParam {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private Long id;
|
||||
/**
|
||||
* 方案id
|
||||
*/
|
||||
private String planId;
|
||||
/**
|
||||
* 分部
|
||||
*/
|
||||
private Integer compId;
|
||||
private Integer ecCompany;
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
private Integer deptId;
|
||||
private Integer ecDepartment;
|
||||
/**
|
||||
* 岗位
|
||||
*/
|
||||
private Integer jobId;
|
||||
/**
|
||||
* 编制数
|
||||
*/
|
||||
private Integer staffNum;
|
||||
/**
|
||||
* 控制策略
|
||||
*/
|
||||
private Integer controlPolicy;
|
||||
/**
|
||||
* 在编
|
||||
*/
|
||||
private Integer permanentNum;
|
||||
/**
|
||||
* 冻结数
|
||||
*/
|
||||
private Integer freezeNum;
|
||||
/**
|
||||
* 缺编状态
|
||||
*/
|
||||
private Integer lackStatus;
|
||||
/**
|
||||
* 编制描述
|
||||
*/
|
||||
private String staffDesc;
|
||||
|
||||
/**
|
||||
* 说明
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 方案名称
|
||||
*/
|
||||
private String staffName;
|
||||
|
||||
/**
|
||||
* 调整数量
|
||||
*/
|
||||
private Integer changeNum;
|
||||
|
||||
/**
|
||||
* 调整说明
|
||||
*/
|
||||
private String changeDescription;
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.engine.organization.enums;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/9/1 1:50 PM
|
||||
* @Description: 编制及在编变更枚举
|
||||
* @Version 1.0
|
||||
*/
|
||||
public enum StaffChangeEnum {
|
||||
|
||||
ADD(0, "增加"),
|
||||
REDUCE(1, "减少"),
|
||||
FROZEN(2, "冻结"),
|
||||
ENTRY(3, "入职"),
|
||||
DIMISSION(4, "离职"),
|
||||
TRANSFER(5, "转移");
|
||||
|
||||
private Integer value;
|
||||
|
||||
private String desc;
|
||||
|
||||
StaffChangeEnum(Integer value, String desc) {
|
||||
this.value = value;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
}
|
@ -0,0 +1,216 @@
|
||||
package com.engine.organization.service.impl;
|
||||
|
||||
import com.engine.organization.entity.staff.param.StaffOutParam;
|
||||
import com.engine.organization.entity.staff.po.StaffPO;
|
||||
import com.engine.organization.enums.StaffChangeEnum;
|
||||
import com.engine.organization.mapper.staff.StaffMapper;
|
||||
import com.engine.organization.util.OrganizationAssert;
|
||||
import com.engine.organization.util.db.MapperProxyFactory;
|
||||
import lombok.SneakyThrows;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import weaver.hrm.company.DepartmentComInfo;
|
||||
import weaver.hrm.company.SubCompanyComInfo;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/9/4 10:44 AM
|
||||
* @Description: 函数式接口 function interface 实现
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class FunctionOutStaffServiceImpl {
|
||||
|
||||
private static final Integer HARDCONTROLLER = 2;
|
||||
|
||||
private static Map<StaffChangeEnum, Function<StaffOutParam, Integer>> affairFunctionS = new HashMap<>();
|
||||
|
||||
private StaffMapper staffMapper() {
|
||||
return MapperProxyFactory.getProxy(StaffMapper.class);
|
||||
}
|
||||
|
||||
FunctionOutStaffServiceImpl(){
|
||||
affairFunctionS.put(StaffChangeEnum.ADD, this::addStaffNums);
|
||||
affairFunctionS.put(StaffChangeEnum.REDUCE, this::reduceStaffNums);
|
||||
affairFunctionS.put(StaffChangeEnum.FROZEN, this::frozenStaffNums);
|
||||
affairFunctionS.put(StaffChangeEnum.ENTRY, this::entryAdd);
|
||||
affairFunctionS.put(StaffChangeEnum.DIMISSION, this::dimissionReduce);
|
||||
affairFunctionS.put(StaffChangeEnum.TRANSFER, this::transfer);
|
||||
}
|
||||
|
||||
|
||||
private Integer addStaffNums(StaffOutParam param) {
|
||||
StaffPO staffPO = select(param);
|
||||
List<Integer> numbers = Arrays.asList(staffPO.getStaffNum(),param.getNum());
|
||||
int sum = numbers.stream()
|
||||
.mapToInt(Integer::intValue)
|
||||
.sum();
|
||||
staffPO.setStaffNum(sum);
|
||||
buildStaffPO(staffPO);
|
||||
return staffMapper().updateStaff(staffPO);
|
||||
}
|
||||
|
||||
private Integer reduceStaffNums(StaffOutParam param) {
|
||||
StaffPO staffPO = select(param);
|
||||
List<Integer> numbers = Arrays.asList(staffPO.getStaffNum(),param.getNum());
|
||||
Integer difference = numbers.stream()
|
||||
.reduce((a, b) -> a - b)
|
||||
.orElse(0);
|
||||
Integer sums = staffPO.getPermanentNum() + staffPO.getFreezeNum();
|
||||
if (staffPO.getControlPolicy().equals(HARDCONTROLLER)) {
|
||||
OrganizationAssert.isFalse(difference.compareTo(sums) < 0,"存在编制超编风险,请先修改控制策略");
|
||||
}
|
||||
staffPO.setStaffNum(difference);
|
||||
buildStaffPO(staffPO);
|
||||
return staffMapper().updateStaff(staffPO);
|
||||
}
|
||||
|
||||
private Integer frozenStaffNums(StaffOutParam param) {
|
||||
StaffPO staffPO = select(param);
|
||||
List<Integer> numberF = Arrays.asList(staffPO.getFreezeNum(),param.getNum());
|
||||
//1.增加冻结数
|
||||
Integer sum = numberF.stream()
|
||||
.mapToInt(Integer::intValue)
|
||||
.sum();
|
||||
if (staffPO.getControlPolicy().equals(HARDCONTROLLER)) {
|
||||
OrganizationAssert.isFalse(sum.compareTo(staffPO.getStaffNum()) > 0, "冻结数不能大于剩余编制数!");
|
||||
}
|
||||
staffPO.setFreezeNum(sum);
|
||||
buildStaffPO(staffPO);
|
||||
return staffMapper().updateStaff(staffPO);
|
||||
}
|
||||
|
||||
|
||||
private Integer entryAdd(StaffOutParam param) {
|
||||
StaffPO staffPO = select(param);
|
||||
Integer sums = staffPO.getPermanentNum() + staffPO.getFreezeNum();
|
||||
//强控策略下不容许超编
|
||||
if (staffPO.getControlPolicy().equals(HARDCONTROLLER)) {
|
||||
OrganizationAssert.isFalse(sums.compareTo(staffPO.getStaffNum()) > 0,"强控策略下不容许超编");
|
||||
}
|
||||
List<Integer> numbers = Arrays.asList(staffPO.getPermanentNum(),param.getNum());
|
||||
//1.增加在编数
|
||||
int sum = numbers.stream()
|
||||
.mapToInt(Integer::intValue)
|
||||
.sum();
|
||||
staffPO.setPermanentNum(sum);
|
||||
//向上部门 分部在编数调整
|
||||
upwardReviewSums(param);
|
||||
//2.调整方式为流程时释放冻结数
|
||||
if (param.getChangeMode() == 1) {
|
||||
List<Integer> numbersF = Arrays.asList(staffPO.getFreezeNum(),param.getNum());
|
||||
int difference = numbersF.stream()
|
||||
.reduce((a, b) -> a - b)
|
||||
.orElse(0);
|
||||
staffPO.setFreezeNum(difference);
|
||||
}
|
||||
buildStaffPO(staffPO);
|
||||
return staffMapper().updateStaff(staffPO);
|
||||
}
|
||||
|
||||
private Integer dimissionReduce(StaffOutParam param) {
|
||||
StaffPO staffPO = select(param);
|
||||
OrganizationAssert.isFalse(param.getNum().compareTo(staffPO.getPermanentNum()) > 0,"调整数量不可大于在编数");
|
||||
List<Integer> numbers = Arrays.asList(staffPO.getPermanentNum(),param.getNum());
|
||||
Integer difference = numbers.stream()
|
||||
.reduce((a, b) -> a - b)
|
||||
.orElse(0);
|
||||
staffPO.setPermanentNum(difference);
|
||||
//向上部门 分部在编数调整
|
||||
upwardReviewSums(param);
|
||||
//2.调整方式为流程时释放冻结数
|
||||
if (param.getChangeMode() == 1) {
|
||||
List<Integer> numbersF = Arrays.asList(staffPO.getFreezeNum(),param.getNum());
|
||||
int differenceF = numbersF.stream()
|
||||
.reduce((a, b) -> a - b)
|
||||
.orElse(0);
|
||||
staffPO.setFreezeNum(differenceF);
|
||||
}
|
||||
buildStaffPO(staffPO);
|
||||
return staffMapper().updateStaff(staffPO);
|
||||
}
|
||||
|
||||
private Integer transfer(StaffOutParam param) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 向上刷新所有在编数
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2023/9/6 3:38 PM
|
||||
* @param: [param]
|
||||
* @return: void
|
||||
*/
|
||||
@SneakyThrows
|
||||
private void upwardReviewSums(StaffOutParam param){
|
||||
DepartmentComInfo departmentComInfo = new DepartmentComInfo();
|
||||
SubCompanyComInfo subCompanyComInfo = new SubCompanyComInfo();
|
||||
//1.分部
|
||||
if (param.getCompany() != null) {
|
||||
String allSupCompany = subCompanyComInfo.getAllSupCompany(String.valueOf(param.getCompany()));
|
||||
if (!"".equals(allSupCompany)) {
|
||||
Collection<Integer> subCompanys = Arrays.stream(allSupCompany.split(","))
|
||||
.map(Integer::parseInt)
|
||||
.collect(Collectors.toList());
|
||||
List<StaffPO> staffPOS = staffMapper().selectByEcCompany(subCompanys);
|
||||
if (!CollectionUtils.isEmpty(staffPOS)) {
|
||||
staffPOS.forEach(item -> {
|
||||
if (param.getType().getValue() == 3){
|
||||
item.setPermanentNum(item.getPermanentNum() + param.getNum());
|
||||
}else {
|
||||
item.setPermanentNum(item.getPermanentNum() - param.getNum());
|
||||
}
|
||||
staffMapper().updateStaff(item);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//2.部门
|
||||
if (param.getDepartment() != null) {
|
||||
String allSupDepartment = departmentComInfo.getAllSupDepartment(String.valueOf(param.getDepartment()));
|
||||
if ("".equals(allSupDepartment)) {
|
||||
Collection<Integer> subDepartments = Arrays.stream(allSupDepartment.split(","))
|
||||
.map(Integer::parseInt)
|
||||
.collect(Collectors.toList());
|
||||
List<StaffPO> staffPOS = staffMapper().selectByEcDepartment(subDepartments);
|
||||
if (!CollectionUtils.isEmpty(staffPOS)) {
|
||||
staffPOS.forEach(item -> {
|
||||
if (param.getType().getValue() == 3){
|
||||
item.setPermanentNum(item.getPermanentNum() + param.getNum());
|
||||
}else {
|
||||
item.setPermanentNum(item.getPermanentNum() - param.getNum());
|
||||
}
|
||||
staffMapper().updateStaff(item);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private StaffPO select(StaffOutParam param) {
|
||||
List<StaffPO> staffPO = staffMapper().customSelect(param.getPlanId(), param.getCompany(), param.getDepartment(), param.getJob());
|
||||
OrganizationAssert.notNull(staffPO,"未查询到对应编制方案下的组织编制信息!");
|
||||
return staffPO.get(0);
|
||||
}
|
||||
|
||||
private static void buildStaffPO(StaffPO staffPO) {
|
||||
List<Integer> number = Arrays.asList(staffPO.getPermanentNum(),staffPO.getFreezeNum());
|
||||
Integer sums = number.stream()
|
||||
.mapToInt(Integer::intValue)
|
||||
.sum();
|
||||
Integer a = staffPO.getStaffNum();
|
||||
staffPO.setLackStatus((a.compareTo(sums) < 0) ? 3 : ((a.compareTo(sums) == 0) ? 2 : 1));
|
||||
}
|
||||
|
||||
|
||||
public Integer actuator(StaffChangeEnum functionEnum,StaffOutParam staffOutParam) {
|
||||
Function<StaffOutParam, Integer> function = affairFunctionS.get(functionEnum);
|
||||
return function.apply(staffOutParam);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.engine.organization.service.impl;
|
||||
|
||||
import com.engine.core.impl.Service;
|
||||
import com.engine.organization.entity.staff.param.StaffOutParam;
|
||||
import com.engine.organization.service.StaffOutService;
|
||||
import com.engine.organization.util.OrganizationAssert;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/9/1 10:27 AM
|
||||
* @Description: 编制外部调用
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class StaffOutServiceImpl extends Service implements StaffOutService {
|
||||
|
||||
|
||||
@Override
|
||||
public Integer changeStaff(StaffOutParam staffOutParam) {
|
||||
OrganizationAssert.notNull(staffOutParam.getNum(),"调整数量不能为空!");
|
||||
OrganizationAssert.notNull(staffOutParam.getPlanId(),"未指定所属编制方案!");
|
||||
FunctionOutStaffServiceImpl functionFactory = new FunctionOutStaffServiceImpl();
|
||||
return functionFactory.actuator(staffOutParam.getType(), staffOutParam);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer transactionOnJob(StaffOutParam staffOutParam) {
|
||||
FunctionOutStaffServiceImpl functionFactory = new FunctionOutStaffServiceImpl();
|
||||
return functionFactory.actuator(staffOutParam.getType(), staffOutParam);
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.engine.organization.web;
|
||||
|
||||
import com.engine.common.util.ServiceUtil;
|
||||
import com.engine.organization.entity.staff.param.StaffOutParam;
|
||||
import com.engine.organization.service.StaffOutService;
|
||||
import com.engine.organization.service.impl.StaffOutServiceImpl;
|
||||
import com.engine.organization.util.response.ReturnResult;
|
||||
import io.swagger.v3.oas.annotations.parameters.RequestBody;
|
||||
import weaver.hrm.HrmUserVarify;
|
||||
import weaver.hrm.User;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2023/9/1 10:19 AM
|
||||
* @Description: 编制外部调用
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class StaffOutController {
|
||||
|
||||
public StaffOutService staffOutService(User user) {
|
||||
return ServiceUtil.getService(StaffOutServiceImpl.class, user);
|
||||
}
|
||||
|
||||
|
||||
@POST
|
||||
@Path("/change")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult changeStaff(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody StaffOutParam staffOutParam) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(staffOutService(user).changeStaff(staffOutParam));
|
||||
} catch (Exception e) {
|
||||
return ReturnResult.exceptionHandle(e);
|
||||
}
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/transaction")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
public ReturnResult transactionOnJob(@Context HttpServletRequest request, @Context HttpServletResponse response, @RequestBody StaffOutParam staffOutParam) {
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
return ReturnResult.successed(staffOutService(user).transactionOnJob(staffOutParam));
|
||||
} catch (Exception e) {
|
||||
return ReturnResult.exceptionHandle(e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue