业务线sql
This commit is contained in:
parent
ae708a1d3b
commit
a40814fa0b
|
|
@ -0,0 +1,24 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Delete from LeftMenuInfo where id=100220;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100220;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100181,0);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100220,548105,'','',2,100181,5,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
link number NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000),
|
||||
target_name varchar2(4000),
|
||||
sorted_index number NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000) NOT NULL,
|
||||
target_name varchar2(4000) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
page varchar2(200) NOT NULL,
|
||||
opt varchar2(200) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(255) NOT NULL,
|
||||
description varchar2(400),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target NUMBER(38,0) NOT NULL,
|
||||
target_name varchar2(255),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
sob_id NUMBER(38,0) NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Delete from LeftMenuInfo where id=100220;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100220;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100181,0);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100220,548105,'','',2,100181,5,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
link number NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000),
|
||||
target_name varchar2(4000),
|
||||
sorted_index number NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000) NOT NULL,
|
||||
target_name varchar2(4000) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
page varchar2(200) NOT NULL,
|
||||
opt varchar2(200) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(255) NOT NULL,
|
||||
description varchar2(400),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target NUMBER(38,0) NOT NULL,
|
||||
target_name varchar2(255),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
sob_id NUMBER(38,0) NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Delete from LeftMenuInfo where id=100220;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100220;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100181,0);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100220,548105,'','',2,100181,5,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
link number NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000),
|
||||
target_name varchar2(4000),
|
||||
sorted_index number NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000) NOT NULL,
|
||||
target_name varchar2(4000) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
page varchar2(200) NOT NULL,
|
||||
opt varchar2(200) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(255) NOT NULL,
|
||||
description varchar2(400),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target NUMBER(38,0) NOT NULL,
|
||||
target_name varchar2(255),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
sob_id NUMBER(38,0) NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( indexdesc is null or indexdesc = '' )
|
||||
;
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( indexdesc is not null and indexdesc <> '' )) limit 1
|
||||
;
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
|
||||
;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
|
||||
;
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( labelname is null or labelname = '' )
|
||||
;
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
|
||||
;
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Delete from LeftMenuInfo where id=100220
|
||||
;
|
||||
Delete from LeftMenuConfig where infoid=100220
|
||||
;
|
||||
call LMConfig_U_ByInfoInsert (2,100181,0)
|
||||
;
|
||||
call LMInfo_Insert (100220,548105,'','',2,100181,5,2)
|
||||
;
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220
|
||||
;
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
role_id bigint(0) NOT NULL,
|
||||
link int(0) NOT NULL,
|
||||
target_type int(0) NOT NULL,
|
||||
target varchar(4000),
|
||||
target_name varchar(4000),
|
||||
sorted_index int(0) NOT NULL,
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
role_id bigint(0) NOT NULL,
|
||||
target_type int(0) NOT NULL,
|
||||
target varchar(4000) NOT NULL,
|
||||
target_name varchar(4000) NOT NULL,
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
role_id bigint(0) NOT NULL,
|
||||
page varchar(200) NOT NULL,
|
||||
opt varchar(200) NOT NULL,
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
tax_agent_id bigint(0) NOT NULL,
|
||||
name varchar(255) NOT NULL,
|
||||
description varchar(400),
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
role_id bigint(0) NOT NULL,
|
||||
employee_id bigint(0) NOT NULL,
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
role_id bigint(0) NOT NULL,
|
||||
employee_id bigint(0) NOT NULL,
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
role_id bigint(0) NOT NULL,
|
||||
target_type int(0) NOT NULL,
|
||||
target bigint(0) NOT NULL,
|
||||
target_name varchar(255),
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id bigint(0) NOT NULL,
|
||||
sob_id bigint(0) NOT NULL,
|
||||
tax_agent_id bigint(0) NOT NULL,
|
||||
creator bigint(0) NOT NULL,
|
||||
create_time datetime(0) NOT NULL,
|
||||
update_time datetime(0) NOT NULL,
|
||||
delete_type int(0) NOT NULL,
|
||||
tenant_key varchar(10) ,
|
||||
PRIMARY KEY (id) USING BTREE
|
||||
) ;
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is null )
|
||||
/
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is not null )) and rownum = 1
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is null )
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is null )
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
|
||||
/
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Delete from LeftMenuInfo where id=100220
|
||||
/
|
||||
Delete from LeftMenuConfig where infoid=100220
|
||||
/
|
||||
call LMConfig_U_ByInfoInsert (2,100181,0)
|
||||
/
|
||||
call LMInfo_Insert (100220,548105,'','',2,100181,5,2)
|
||||
/
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220
|
||||
/
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
link number NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000),
|
||||
target_name varchar2(4000),
|
||||
sorted_index number NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000) NOT NULL,
|
||||
target_name varchar2(4000) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
page varchar2(200) NOT NULL,
|
||||
opt varchar2(200) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(255) NOT NULL,
|
||||
description varchar2(400),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target NUMBER(38,0) NOT NULL,
|
||||
target_name varchar2(255),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
sob_id NUMBER(38,0) NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
)
|
||||
/
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( indexdesc is null or indexdesc = '' ) ;
|
||||
/
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( indexdesc is not null and indexdesc <> '' )) limit 1 ;
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( labelname is null or labelname = '' ) ;
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1 ;
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=octet_length(labelname) ) ;
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=octet_length(labelname) )) limit 1 ;
|
||||
/
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( labelname is null or labelname = '' ) ;
|
||||
/
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1 ;
|
||||
/
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Delete from LeftMenuInfo where id=100220
|
||||
;
|
||||
Delete from LeftMenuConfig where infoid=100220
|
||||
;
|
||||
select LMConfig_U_ByInfoInsert (2,100181,0)
|
||||
;
|
||||
select LMInfo_Insert (100220,548105,'','',2,100181,5,2)
|
||||
;
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220
|
||||
;
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
link int NOT NULL,
|
||||
target_type int NOT NULL,
|
||||
target varchar(4000),
|
||||
target_name varchar(4000),
|
||||
sorted_index int NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
target_type int NOT NULL,
|
||||
target varchar(4000) NOT NULL,
|
||||
target_name varchar(4000) NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
page varchar(200) NOT NULL,
|
||||
opt varchar(200) NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
tax_agent_id bigint NOT NULL,
|
||||
name varchar(255) NOT NULL,
|
||||
description varchar(400),
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
employee_id bigint NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
employee_id bigint NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
target_type int NOT NULL,
|
||||
target bigint NOT NULL,
|
||||
target_name varchar(255),
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10),
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
sob_id bigint NOT NULL,
|
||||
tax_agent_id bigint NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time timestamp NOT NULL,
|
||||
update_time timestamp NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) ,
|
||||
PRIMARY KEY (id)
|
||||
) ;
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( indexdesc is null or indexdesc = '' )
|
||||
GO
|
||||
insert into HtmlLabelIndex(id,indexdesc) select top 1 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( indexdesc is not null and indexdesc <> '' ))
|
||||
GO
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( labelname is null or labelname = '' )
|
||||
GO
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( labelname is not null and labelname <> '' ))
|
||||
GO
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( labelname is null or labelname = '' or labelname like '%[吖-座]%' )
|
||||
GO
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( labelname is not null and labelname <> '' and labelname not like '%[吖-座]%' ))
|
||||
GO
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( labelname is null or labelname = '' )
|
||||
GO
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select top 1 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( labelname is not null and labelname <> '' ))
|
||||
GO
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
Delete from LeftMenuInfo where id=100220
|
||||
GO
|
||||
Delete from LeftMenuConfig where infoid=100220
|
||||
GO
|
||||
EXECUTE LMConfig_U_ByInfoInsert 2,100181,0
|
||||
GO
|
||||
EXECUTE LMInfo_Insert 100220,548105,'','',2,100181,5,2
|
||||
GO
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220
|
||||
GO
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id bigint primary key,
|
||||
role_id bigint NOT NULL,
|
||||
link int NOT NULL,
|
||||
target_type int NOT NULL,
|
||||
target varchar(4000),
|
||||
target_name varchar(4000),
|
||||
sorted_index int NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10)
|
||||
)
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id bigint primary key,
|
||||
role_id bigint NOT NULL,
|
||||
target_type int NOT NULL,
|
||||
target varchar(4000) NOT NULL,
|
||||
target_name varchar(4000) NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10)
|
||||
)
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id bigint primary key,
|
||||
role_id bigint NOT NULL,
|
||||
page varchar(200) NOT NULL,
|
||||
opt varchar(200) NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10)
|
||||
)
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id bigint primary key,
|
||||
tax_agent_id bigint NOT NULL,
|
||||
name varchar(255) NOT NULL,
|
||||
description varchar(400),
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL
|
||||
)
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id bigint primary key,
|
||||
role_id bigint NOT NULL,
|
||||
employee_id bigint NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL
|
||||
)
|
||||
GO
|
||||
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id bigint primary key,
|
||||
role_id bigint NOT NULL,
|
||||
employee_id bigint NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10) NOT NULL
|
||||
)
|
||||
GO
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
role_id bigint NOT NULL,
|
||||
target_type int NOT NULL,
|
||||
target bigint NOT NULL,
|
||||
target_name varchar(255),
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10)
|
||||
)
|
||||
GO
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id bigint NOT NULL,
|
||||
sob_id bigint NOT NULL,
|
||||
tax_agent_id bigint NOT NULL,
|
||||
creator bigint NOT NULL,
|
||||
create_time datetime NOT NULL,
|
||||
update_time datetime NOT NULL,
|
||||
delete_type int NOT NULL,
|
||||
tenant_key varchar(10)
|
||||
)
|
||||
GO
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
delete from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelIndex(id,indexdesc) select 548105,'业务线管理' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 548105 and ( trim(indexdesc) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'业务线管理' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'Business Line Management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
delete from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is null ) ;
|
||||
/
|
||||
|
||||
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 548105 as indexid ,'業務線管理' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 548105 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Delete from LeftMenuInfo where id=100220;
|
||||
/
|
||||
|
||||
Delete from LeftMenuConfig where infoid=100220;
|
||||
/
|
||||
|
||||
call LMConfig_U_ByInfoInsert (2,100181,0);
|
||||
/
|
||||
|
||||
call LMInfo_Insert (100220,548105,'','',2,100181,5,2);
|
||||
/
|
||||
|
||||
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/roleManagement' where id = 100220;
|
||||
/
|
||||
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
CREATE TABLE hrsa_auth_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
link number NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000),
|
||||
target_name varchar2(4000),
|
||||
sorted_index number NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_member
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target varchar2(4000) NOT NULL,
|
||||
target_name varchar2(4000) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_opt
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
page varchar2(200) NOT NULL,
|
||||
opt varchar2(200) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
name varchar2(255) NOT NULL,
|
||||
description varchar2(400),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_data
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_role_emp
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
employee_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10) NOT NULL
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_auth_resource
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
role_id NUMBER(38,0) NOT NULL,
|
||||
target_type number NOT NULL,
|
||||
target NUMBER(38,0) NOT NULL,
|
||||
target_name varchar2(255),
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
CREATE TABLE hrsa_sob_tax_link
|
||||
(
|
||||
id NUMBER(38,0) primary key NOT NULL,
|
||||
sob_id NUMBER(38,0) NOT NULL,
|
||||
tax_agent_id NUMBER(38,0) NOT NULL,
|
||||
creator NUMBER(38,0) NOT NULL,
|
||||
create_time DATE NOT NULL,
|
||||
update_time DATE NOT NULL,
|
||||
delete_type number NOT NULL,
|
||||
tenant_key varchar2(10)
|
||||
);
|
||||
/
|
||||
|
||||
Loading…
Reference in New Issue