This commit is contained in:
钱涛 2022-06-20 14:09:18 +08:00
parent 5cea57d477
commit 3ab0440078
1 changed files with 26 additions and 26 deletions

View File

@ -9,8 +9,8 @@ CREATE TABLE hrsa_tax_agent_emp
tax_agent_id NUMBER(38,0) NOT NULL,
employee_id NUMBER(38,0) NOT NULL,
employee_name varchar2(255)
) ;
/
)
/
CREATE TABLE hrsa_tax_agent_emp_change
(
@ -19,15 +19,14 @@ CREATE TABLE hrsa_tax_agent_emp_change
update_time date DEFAULT sysdate,
creator NUMBER(38,0) DEFAULT 0,
delete_type number DEFAULT 0 ,
tenant_key varchar2(10) DEFAULT ''
tenant_key varchar2(10) DEFAULT '',
tax_agent_id NUMBER(38,0) NOT NULL,
employee_id NUMBER(38,0) NOT NULL,
change_type number NOT NULL DEFAULT 0 ,
employee_name varchar2(255) NULL DEFAULT NULL,
module_type int(4) NOT NULL DEFAULT 0
) ;
/
change_type number DEFAULT 0 ,
employee_name varchar2(255) DEFAULT NULL,
module_type NUMBER(4,0) DEFAULT 0
)
/
CREATE TABLE hrsa_tax_agent_admin
(
@ -39,39 +38,39 @@ CREATE TABLE hrsa_tax_agent_admin
creator NUMBER(38,0) DEFAULT 0,
delete_type number DEFAULT 0 ,
tenant_key varchar2(10) DEFAULT ''
) ;
/
)
/
CREATE TABLE hrsa_tax_agent_manage_range
(
id NUMBER(38,0) primary key NOT NULL,
tax_agent_id NUMBER(38,0) NOT NULL,
employee_id NUMBER(38,0) NOT NULL,
employee_id NUMBER(38,0),
tax_agent_sub_admin_id NUMBER(38,0) NOT NULL,
target_type number NOT NULL DEFAULT 1,
target_type number DEFAULT 1,
target_id NUMBER(38,0) NOT NULL,
employee_status varchar2(100) NOT NULL,
include_type number NOT NULL DEFAULT 1,
include_type number DEFAULT 1,
creator NUMBER(38,0) DEFAULT '0',
create_time date DEFAULT sysdate,
update_time date DEFAULT sysdate,
delete_type number DEFAULT 0 ,
tenant_key varchar2(10) DEFAULT '',
range_type number NOT NULL DEFAULT 0
) ;
/
range_type number DEFAULT 0
)
/
CREATE TABLE hrsa_tax_agent_base
(
id NUMBER(38,0) primary key NOT NULL,
devolution_status int(11) NOT NULL DEFAULT 0 COMMENT '分权开启状态。0关、1',
devolution_status NUMBER(11,0) DEFAULT 0 ,
create_time date DEFAULT sysdate,
update_time date DEFAULT sysdate,
creator NUMBER(38,0) DEFAULT '0',
delete_type number DEFAULT 0 ,
tenant_key varchar2(10) DEFAULT ''
) ;
/
)
/
CREATE TABLE hrsa_tax_agent_sub_admin
(
@ -84,9 +83,10 @@ CREATE TABLE hrsa_tax_agent_sub_admin
creator NUMBER(38,0) DEFAULT '0',
delete_type number DEFAULT 0 ,
tenant_key varchar2(10) DEFAULT '',
remark text
) ;
/
remark clob
)
/
CREATE TABLE hrsa_tax_agent_sub_admin_emp
(
@ -100,8 +100,8 @@ CREATE TABLE hrsa_tax_agent_sub_admin_emp
tax_agent_sub_admin_id NUMBER(38,0) NOT NULL,
employee_id NUMBER(38,0) NOT NULL,
employee_name varchar2(255)
) ;
/
)
/
ALTER TABLE hrsa_tax_agent add (
payment_agency varchar2(255)
@ -115,7 +115,7 @@ ALTER TABLE hrsa_salary_sob add (
INSERT INTO hrsa_tax_agent_base(id, devolution_status, create_time, update_time, creator, delete_type, tenant_key) VALUES (1653303537239, 1, to_date('2022-05-10 16:03:02','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-10 16:03:02','yyyy-MM-dd HH24:mi:ss'), 1, 0, 'all_teams');
INSERT INTO hrsa_tax_agent_base(id, devolution_status, create_time, update_time, creator, delete_type, tenant_key) VALUES (1653303537239, 1, to_date('2022-05-10 16:03:02','yyyy-MM-dd HH24:mi:ss'), to_date('2022-05-10 16:03:02','yyyy-MM-dd HH24:mi:ss'), 1, 0, 'all_teams')
/
ALTER TABLE hrsa_bill_detail_temp add (