From a40814fa0b880e32dba0237e0d54d840362cc53d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E6=B6=9B?= <15850646081@163.com> Date: Tue, 24 Sep 2024 14:37:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E7=BA=BFsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resource/sqlupgrade/DM/sql202409240201.sql | 24 ++++ resource/sqlupgrade/DM/sql202409240302.sql | 15 +++ resource/sqlupgrade/DM/sql202409240403.sql | 114 +++++++++++++++++ resource/sqlupgrade/GS/sql202409240201.sql | 24 ++++ resource/sqlupgrade/GS/sql202409240302.sql | 15 +++ resource/sqlupgrade/GS/sql202409240403.sql | 114 +++++++++++++++++ resource/sqlupgrade/JC/sql202409240201.sql | 24 ++++ resource/sqlupgrade/JC/sql202409240302.sql | 15 +++ resource/sqlupgrade/JC/sql202409240403.sql | 114 +++++++++++++++++ resource/sqlupgrade/Mysql/sql202409240201.sql | 16 +++ resource/sqlupgrade/Mysql/sql202409240302.sql | 10 ++ resource/sqlupgrade/Mysql/sql202409240403.sql | 121 ++++++++++++++++++ .../sqlupgrade/Oracle/sql202409240201.sql | 16 +++ .../sqlupgrade/Oracle/sql202409240302.sql | 10 ++ .../sqlupgrade/Oracle/sql202409240403.sql | 121 ++++++++++++++++++ resource/sqlupgrade/PG/sql202409240201.sql | 16 +++ resource/sqlupgrade/PG/sql202409240302.sql | 10 ++ resource/sqlupgrade/PG/sql202409240403.sql | 121 ++++++++++++++++++ .../sqlupgrade/SQLServer/sql202409240201.sql | 16 +++ .../sqlupgrade/SQLServer/sql202409240302.sql | 10 ++ .../sqlupgrade/SQLServer/sql202409240403.sql | 118 +++++++++++++++++ resource/sqlupgrade/ST/sql202409240201.sql | 24 ++++ resource/sqlupgrade/ST/sql202409240302.sql | 15 +++ resource/sqlupgrade/ST/sql202409240403.sql | 114 +++++++++++++++++ 24 files changed, 1197 insertions(+) create mode 100644 resource/sqlupgrade/DM/sql202409240201.sql create mode 100644 resource/sqlupgrade/DM/sql202409240302.sql create mode 100644 resource/sqlupgrade/DM/sql202409240403.sql create mode 100644 resource/sqlupgrade/GS/sql202409240201.sql create mode 100644 resource/sqlupgrade/GS/sql202409240302.sql create mode 100644 resource/sqlupgrade/GS/sql202409240403.sql create mode 100644 resource/sqlupgrade/JC/sql202409240201.sql create mode 100644 resource/sqlupgrade/JC/sql202409240302.sql create mode 100644 resource/sqlupgrade/JC/sql202409240403.sql create mode 100644 resource/sqlupgrade/Mysql/sql202409240201.sql create mode 100644 resource/sqlupgrade/Mysql/sql202409240302.sql create mode 100644 resource/sqlupgrade/Mysql/sql202409240403.sql create mode 100644 resource/sqlupgrade/Oracle/sql202409240201.sql create mode 100644 resource/sqlupgrade/Oracle/sql202409240302.sql create mode 100644 resource/sqlupgrade/Oracle/sql202409240403.sql create mode 100644 resource/sqlupgrade/PG/sql202409240201.sql create mode 100644 resource/sqlupgrade/PG/sql202409240302.sql create mode 100644 resource/sqlupgrade/PG/sql202409240403.sql create mode 100644 resource/sqlupgrade/SQLServer/sql202409240201.sql create mode 100644 resource/sqlupgrade/SQLServer/sql202409240302.sql create mode 100644 resource/sqlupgrade/SQLServer/sql202409240403.sql create mode 100644 resource/sqlupgrade/ST/sql202409240201.sql create mode 100644 resource/sqlupgrade/ST/sql202409240302.sql create mode 100644 resource/sqlupgrade/ST/sql202409240403.sql diff --git a/resource/sqlupgrade/DM/sql202409240201.sql b/resource/sqlupgrade/DM/sql202409240201.sql new file mode 100644 index 000000000..36b6745cc --- /dev/null +++ b/resource/sqlupgrade/DM/sql202409240201.sql @@ -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 ; +/ + diff --git a/resource/sqlupgrade/DM/sql202409240302.sql b/resource/sqlupgrade/DM/sql202409240302.sql new file mode 100644 index 000000000..9573a689b --- /dev/null +++ b/resource/sqlupgrade/DM/sql202409240302.sql @@ -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; +/ + diff --git a/resource/sqlupgrade/DM/sql202409240403.sql b/resource/sqlupgrade/DM/sql202409240403.sql new file mode 100644 index 000000000..a6281d399 --- /dev/null +++ b/resource/sqlupgrade/DM/sql202409240403.sql @@ -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) +); +/ + diff --git a/resource/sqlupgrade/GS/sql202409240201.sql b/resource/sqlupgrade/GS/sql202409240201.sql new file mode 100644 index 000000000..36b6745cc --- /dev/null +++ b/resource/sqlupgrade/GS/sql202409240201.sql @@ -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 ; +/ + diff --git a/resource/sqlupgrade/GS/sql202409240302.sql b/resource/sqlupgrade/GS/sql202409240302.sql new file mode 100644 index 000000000..9573a689b --- /dev/null +++ b/resource/sqlupgrade/GS/sql202409240302.sql @@ -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; +/ + diff --git a/resource/sqlupgrade/GS/sql202409240403.sql b/resource/sqlupgrade/GS/sql202409240403.sql new file mode 100644 index 000000000..a6281d399 --- /dev/null +++ b/resource/sqlupgrade/GS/sql202409240403.sql @@ -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) +); +/ + diff --git a/resource/sqlupgrade/JC/sql202409240201.sql b/resource/sqlupgrade/JC/sql202409240201.sql new file mode 100644 index 000000000..36b6745cc --- /dev/null +++ b/resource/sqlupgrade/JC/sql202409240201.sql @@ -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 ; +/ + diff --git a/resource/sqlupgrade/JC/sql202409240302.sql b/resource/sqlupgrade/JC/sql202409240302.sql new file mode 100644 index 000000000..9573a689b --- /dev/null +++ b/resource/sqlupgrade/JC/sql202409240302.sql @@ -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; +/ + diff --git a/resource/sqlupgrade/JC/sql202409240403.sql b/resource/sqlupgrade/JC/sql202409240403.sql new file mode 100644 index 000000000..a6281d399 --- /dev/null +++ b/resource/sqlupgrade/JC/sql202409240403.sql @@ -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) +); +/ + diff --git a/resource/sqlupgrade/Mysql/sql202409240201.sql b/resource/sqlupgrade/Mysql/sql202409240201.sql new file mode 100644 index 000000000..b81eb2e8d --- /dev/null +++ b/resource/sqlupgrade/Mysql/sql202409240201.sql @@ -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 +; diff --git a/resource/sqlupgrade/Mysql/sql202409240302.sql b/resource/sqlupgrade/Mysql/sql202409240302.sql new file mode 100644 index 000000000..8b215461e --- /dev/null +++ b/resource/sqlupgrade/Mysql/sql202409240302.sql @@ -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 +; \ No newline at end of file diff --git a/resource/sqlupgrade/Mysql/sql202409240403.sql b/resource/sqlupgrade/Mysql/sql202409240403.sql new file mode 100644 index 000000000..4422851af --- /dev/null +++ b/resource/sqlupgrade/Mysql/sql202409240403.sql @@ -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 +) ; diff --git a/resource/sqlupgrade/Oracle/sql202409240201.sql b/resource/sqlupgrade/Oracle/sql202409240201.sql new file mode 100644 index 000000000..83a4826ec --- /dev/null +++ b/resource/sqlupgrade/Oracle/sql202409240201.sql @@ -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 +/ \ No newline at end of file diff --git a/resource/sqlupgrade/Oracle/sql202409240302.sql b/resource/sqlupgrade/Oracle/sql202409240302.sql new file mode 100644 index 000000000..8435e8635 --- /dev/null +++ b/resource/sqlupgrade/Oracle/sql202409240302.sql @@ -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 +/ \ No newline at end of file diff --git a/resource/sqlupgrade/Oracle/sql202409240403.sql b/resource/sqlupgrade/Oracle/sql202409240403.sql new file mode 100644 index 000000000..0159366c2 --- /dev/null +++ b/resource/sqlupgrade/Oracle/sql202409240403.sql @@ -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) +) +/ \ No newline at end of file diff --git a/resource/sqlupgrade/PG/sql202409240201.sql b/resource/sqlupgrade/PG/sql202409240201.sql new file mode 100644 index 000000000..42589c50b --- /dev/null +++ b/resource/sqlupgrade/PG/sql202409240201.sql @@ -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 ; +/ \ No newline at end of file diff --git a/resource/sqlupgrade/PG/sql202409240302.sql b/resource/sqlupgrade/PG/sql202409240302.sql new file mode 100644 index 000000000..755116704 --- /dev/null +++ b/resource/sqlupgrade/PG/sql202409240302.sql @@ -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 +; \ No newline at end of file diff --git a/resource/sqlupgrade/PG/sql202409240403.sql b/resource/sqlupgrade/PG/sql202409240403.sql new file mode 100644 index 000000000..e8e130ccd --- /dev/null +++ b/resource/sqlupgrade/PG/sql202409240403.sql @@ -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) +) ; \ No newline at end of file diff --git a/resource/sqlupgrade/SQLServer/sql202409240201.sql b/resource/sqlupgrade/SQLServer/sql202409240201.sql new file mode 100644 index 000000000..1aa307c31 --- /dev/null +++ b/resource/sqlupgrade/SQLServer/sql202409240201.sql @@ -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 \ No newline at end of file diff --git a/resource/sqlupgrade/SQLServer/sql202409240302.sql b/resource/sqlupgrade/SQLServer/sql202409240302.sql new file mode 100644 index 000000000..718a8538f --- /dev/null +++ b/resource/sqlupgrade/SQLServer/sql202409240302.sql @@ -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 \ No newline at end of file diff --git a/resource/sqlupgrade/SQLServer/sql202409240403.sql b/resource/sqlupgrade/SQLServer/sql202409240403.sql new file mode 100644 index 000000000..d4b207649 --- /dev/null +++ b/resource/sqlupgrade/SQLServer/sql202409240403.sql @@ -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 \ No newline at end of file diff --git a/resource/sqlupgrade/ST/sql202409240201.sql b/resource/sqlupgrade/ST/sql202409240201.sql new file mode 100644 index 000000000..36b6745cc --- /dev/null +++ b/resource/sqlupgrade/ST/sql202409240201.sql @@ -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 ; +/ + diff --git a/resource/sqlupgrade/ST/sql202409240302.sql b/resource/sqlupgrade/ST/sql202409240302.sql new file mode 100644 index 000000000..9573a689b --- /dev/null +++ b/resource/sqlupgrade/ST/sql202409240302.sql @@ -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; +/ + diff --git a/resource/sqlupgrade/ST/sql202409240403.sql b/resource/sqlupgrade/ST/sql202409240403.sql new file mode 100644 index 000000000..a6281d399 --- /dev/null +++ b/resource/sqlupgrade/ST/sql202409240403.sql @@ -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) +); +/ +