Merge branch 'release/个税一期' into release/个税版本

This commit is contained in:
钱涛 2023-09-06 11:40:34 +08:00
commit d49b33c66f
499 changed files with 34549 additions and 1120 deletions

View File

@ -1 +1,2 @@
formulaRunOvertimeThreshold=10
formulaRunOvertimeThreshold=10
flowNoticeMessageType=2022060951

View File

@ -1,138 +0,0 @@
delete from hrsa_acct_result_temp where 1=1
;
delete from hrsa_add_up_deduction where 1=1
;
delete from hrsa_add_up_situation where 1=1
;
delete from hrsa_attend_quote where 1=1
;
delete from hrsa_attend_quote_data where 1=1
;
delete from hrsa_attend_quote_data_value where 1=1
;
delete from hrsa_attend_quote_field where 1=1
;
delete from hrsa_attend_quote_sync_set where 1=1
;
delete from hrsa_scheme_detail where 1=1
;
delete from hrsa_social_archives where 1=1
;
delete from hrsa_fund_archives where 1=1
;
delete from hrsa_other_archives where 1=1
;
delete from hrsa_bill_batch where 1=1
;
delete from hrsa_bill_detail where 1=1
;
delete from hrsa_bill_detail_temp where 1=1
;
delete from hrsa_bill_inspect where 1=1
;
delete from hrsa_check_result where 1=1
;
delete from hrsa_check_result_record where 1=1
;
delete from hrsa_ck_result_detail_temp where 1=1
;
delete from hrsa_excel_acct_result where 1=1
;
delete from hrsa_other_deduction where 1=1
;
delete from hrsa_salary_acct_emp where 1=1
;
delete from hrsa_salary_acct_record where 1=1
;
delete from hrsa_salary_acct_result where 1=1
;
delete from hrsa_salary_archive where 1=1
;
delete from hrsa_salary_archive_dimission where 1=1
;
delete from hrsa_salary_archive_item where 1=1
;
delete from hrsa_salary_archive_tax_agent where 1=1
;
delete from hrsa_salary_item where 1=1
;
delete from hrsa_salary_send where 1=1
;
delete from hrsa_salary_send_info where 1=1
;
delete from hrsa_salary_sob where 1=1
;
delete from hrsa_salary_sob_adjust_rule where 1=1
;
delete from hrsa_salary_sob_emp_field where 1=1
;
delete from hrsa_salary_sob_item where 1=1
;
delete from hrsa_salary_sob_item_group where 1=1
;
delete from hrsa_salary_sob_range where 1=1
;
delete from hrsa_salary_template where 1=1
;
delete from hrsa_social_security_scheme where 1=1
;
delete from hrsa_sys_tax_rate_base where 1=1
;
delete from hrsa_sys_tax_rate_detail where 1=1
;
delete from hrsa_tax_agent where 1=1
;
delete from hrsa_tax_agent_emp where 1=1
;
delete from hrsa_tax_agent_emp_change where 1=1
;
delete from hrsa_tax_agent_admin where 1=1
;
delete from hrsa_tax_agent_manage_range where 1=1
;
delete from hrsa_tax_agent_sub_admin where 1=1
;
delete from hrsa_tax_agent_sub_admin_emp where 1=1
;
delete from hrsa_tax_declaration where 1=1
;
delete from hrsa_tax_declaration_detail where 1=1
;
delete from hrsa_tax_rate_base where 1=1
;
delete from hrsa_tax_rate_detail where 1=1
;
delete from hrsa_salary_acct_result_report where 1=1
;
delete from hrsa_insurance_base_info where 1=1
;
delete from hrsa_salary_sob_back_item where 1=1
;
delete from hrsa_salary_send_range where 1=1
;
delete from hrsa_salary_send_range_obj where 1=1
;
delete from hrsa_compensation_log where 1=1
;
delete from hrsa_compensation_config where 1=1
;
delete from hrsa_special_add_deduction where 1=1
;

View File

@ -0,0 +1,34 @@
create table hrsa_tax_declare_api_profile
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar(10),
api_profile int
);
/
create index id_tenant_key_22b215db on hrsa_tax_declare_api_profile(tenant_key);
/
create table hrsa_tax_payment_request
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar(10),
tax_agent_id number not null,
tax_declare_record_id number,
tax_year_month date not null,
request_id varchar(50) not null,
request_type int not null
);
/
create index id_tenant_key_bcb610c7 on hrsa_tax_payment_request(tenant_key);
/

View File

@ -0,0 +1,38 @@
create table hrsa_tax_declare_api_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
host varchar2(255),
app_key varchar2(255),
app_secret varchar2(255)
);
/
create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key);
/
alter table hrsa_tax_declare_api_config modify host not null;
/
alter table hrsa_tax_declare_api_config modify app_key not null;
/
alter table hrsa_tax_declare_api_config modify app_secret not null;
/
alter table hrsa_tax_declare_api_config add enable_use int;
/
alter table hrsa_tax_declare_api_config add totality number;
/
alter table hrsa_tax_declare_api_config add remain number;
/
alter table hrsa_tax_declare_api_config add last_update_time date;
/

View File

@ -0,0 +1,31 @@
create table hrsa_tax_agent_tax_return
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_code varchar2(50) not null,
tax_registration_number varchar2(50) ,
department_code varchar2(50),
department_name varchar2(50),
nation varchar2(50),
province varchar2(50),
city varchar2(50),
area_code varchar2(50) not null,
password_type int not null,
real_account varchar2(50) ,
pwd varchar2(50) not null,
check_status int not null,
fail_reason varchar2(255)
);
/
create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key);
/
create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id);
/

View File

@ -0,0 +1,51 @@
create table hrsa_employee_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
request_id varchar2(100)
);
/
create table hrsa_employee_declare
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
employee_id number,
employee_type number,
employee_name varchar2(100),
job_num varchar2(100),
card_type number,
card_num varchar2(100),
gender varchar2(100),
birthday date,
employment_status number,
mobile varchar2(100),
employment_type number,
employment_first_year varchar2(100),
employment_date date,
dismiss_date date,
disability number,
disability_card_no varchar2(100),
lonely_old number,
martyr_dependents number,
martyr_dependents_card_no varchar2(100),
deduct_expenses number,
successfully_declared number,
new_employee_info number,
declare_status number,
declare_error_msg varchar2(1000)
);
/

View File

@ -0,0 +1,36 @@
create table hrsa_tax_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
salary_month date,
tax_cycle date,
remark varchar2(1000),
request_id varchar2(100),
tax_declare_type number,
tax_declare_status number
);
/
alter table hrsa_tax_declare_record add display_update_icon number;
/
alter table hrsa_tax_declare_record add tax_pay_amount varchar2(255);
/
alter table hrsa_tax_declare_record add person_num int;
/
alter table hrsa_tax_declare_record add tax_declare_error_msg varchar2(1000);
/
alter table hrsa_tax_declare_record add tax_paid_amount varchar2(255);
/
alter table hrsa_tax_declare_record add tax_pure_paid_amount varchar2(255);
/

View File

@ -0,0 +1,15 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
);
/

View File

@ -0,0 +1,39 @@
create table hrsa_tax_report_column
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_report_type varchar2(100),
income_category varchar2(100),
report_column_name varchar2(100),
report_column_data_index varchar2(100)
);
/
create table hrsa_sob_tax_report_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
report_column_data_index varchar2(100),
salary_item_id number
);
/
alter table hrsa_tax_report_column add data_type varchar2(100);
/
alter table hrsa_tax_report_column add request_param_key varchar2(100);
/
alter table hrsa_tax_report_column add report_column_label varchar2(100);
/

View File

@ -0,0 +1,18 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
);
/
alter table hrsa_tax_declare_fail add income_category varchar2(100);
/

View File

@ -0,0 +1,18 @@
alter table hrsa_tax_declaration add tax_declare_record_id number;
/
alter table hrsa_tax_declaration add control_view int;
/
alter table hrsa_salary_acct_emp add income_category varchar2(100);
/
alter table hrsa_salary_acct_record add control_view int;
/
update hrsa_salary_acct_record set control_view = 0 where control_view is null;
/
update hrsa_tax_declaration set control_view = 0 where control_view is null;
/

View File

@ -0,0 +1,16 @@
create table hrsa_tax_declaration_value
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
tax_declaration_id number,
employee_type number,
employee_id number,
result_value_json clob
);
/

View File

@ -0,0 +1,29 @@
alter table hrsa_salary_sob_item add income_category varchar2(100);
/
alter table hrsa_salary_sob_item modify income_category default '1';
/
update hrsa_salary_sob_item set income_category = '1' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '1');
/
update hrsa_salary_sob_item set income_category = '2' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '2');
/
update hrsa_salary_sob_item set income_category = '4' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '4');
/
alter table hrsa_salary_sob_item add salary_item_code varchar2(100);
/
update hrsa_salary_sob_item a
set ( salary_item_code) = (
select code as salary_item_code
from hrsa_salary_item b
where a.salary_item_id = b.id
);
/

View File

@ -0,0 +1,60 @@
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157061, null, null, null, 0, 'all_teams', '1', '2', '当期收入额', 'annualIncome');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157062, null, null, null, 0, 'all_teams', '1', '2', '免税收入', 'annualTaxFreeIncome');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157063, null, null, null, 0, 'all_teams', '1', '2', '其他', 'annualOther');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157064, null, null, null, 0, 'all_teams', '1', '2', '准予扣除的捐赠额', 'annualDonateTax');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157065, null, null, null, 0, 'all_teams', '1', '2', '减免税额', 'annualTaxSavings');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157066, null, null, null, 0, 'all_teams', '1', '2', '备注', 'annualRemark');
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualIncome'
where report_column_data_index = 'annual_income';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxFreeIncome'
where report_column_data_index = 'annual_tax_free_income';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualOther'
where report_column_data_index = 'annual_other';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualDonateTax'
where report_column_data_index = 'annual_donate_tax';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxSavings'
where report_column_data_index = 'annual_tax_savings';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualRemark'
where report_column_data_index = 'annual_remark';
/

View File

@ -0,0 +1,62 @@
create table hrsa_sob_add_up_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
salary_item_id number,
add_up_column_data_index varchar2(100)
);
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpIncome', 'addUpSubtraction', 'addUpSocialSecurityTotal', 'addUpAccumulationFundTotal',
'addUpEnterpriseAndOther', 'addUpOtherDeduction', 'addUpTaxExemptIncome',
'addUpAllowedDonation', 'addUpTaxSavings');
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpTaxPayable' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpAdvanceTax';
/
delete from hrsa_sob_add_up_rule
where income_category = 1
and add_up_column_data_index in ('addUpTaxPayable', 'addUpAdvanceTax');
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpAdvanceTax' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpTaxPayable';
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpTaxableIncome');
/

View File

@ -0,0 +1,3 @@
alter table hrsa_tax_payment_request add feedback int;
/

View File

@ -0,0 +1,6 @@
alter table hrsa_tax_agent_tax_return add city_name varchar2(400);
/
update hrsa_salary_sob_default_item set delete_type=1 where sys_salary_item_id = 700769462612156416;
/

View File

@ -0,0 +1,47 @@
delete from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 544827,'智能算薪' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'Intelligent salary calculation' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 544826,'人员信息报送' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人员信息报送' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'Personnel information submission' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人員信息報送' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/

View File

@ -0,0 +1,29 @@
Delete from LeftMenuInfo where id=100191;
/
Delete from LeftMenuConfig where infoid=100191;
/
call LMConfig_U_ByInfoInsert (2,100181,1);
/
call LMInfo_Insert (100191,544827,'','',2,100181,1,18);
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/intelligentCalculateSalarySettings' where id = 100191;
/
Delete from LeftMenuInfo where id=100192;
/
Delete from LeftMenuConfig where infoid=100192;
/
call LMConfig_U_ByInfoInsert (2,100118,7);
/
call LMInfo_Insert (100192,544826,'','',2,100118,7,18);
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/employeedeclare' where id = 100192;
/

View File

@ -0,0 +1,47 @@
create table hrsa_tax_api_flow_receiver
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
warn_config_id number not null,
employee_id number not null,
email varchar2(100),
mobile varchar2(50)
);
/
create table hrsa_tax_api_flow_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_month date not null,
use_time date not null,
deduct int,
employee_id number not null,
business_type int not null,
result_status int not null
);
/
create table hrsa_tax_api_flow_warn_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
enable_warn int default 0 not null,
threshold int default 0 not null,
business_id number default '0' not null
);
/

View File

@ -0,0 +1,51 @@
create table hrsa_employee_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
request_id varchar2(100)
);
/
create table hrsa_employee_declare
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
employee_id number,
employee_type number,
employee_name varchar2(100),
job_num varchar2(100),
card_type number,
card_num varchar2(100),
gender varchar2(100),
birthday date,
employment_status number,
mobile varchar2(100),
employment_type number,
employment_first_year varchar2(100),
employment_date date,
dismiss_date date,
disability number,
disability_card_no varchar2(100),
lonely_old number,
martyr_dependents number,
martyr_dependents_card_no varchar2(100),
deduct_expenses number,
successfully_declared number,
new_employee_info number,
declare_status number,
declare_error_msg varchar2(1000)
);
/

View File

@ -0,0 +1,36 @@
create table hrsa_tax_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
salary_month date,
tax_cycle date,
remark varchar2(1000),
request_id varchar2(100),
tax_declare_type number,
tax_declare_status number
);
/
alter table hrsa_tax_declare_record add display_update_icon number;
/
alter table hrsa_tax_declare_record add tax_pay_amount varchar2(255);
/
alter table hrsa_tax_declare_record add person_num int;
/
alter table hrsa_tax_declare_record add tax_declare_error_msg varchar2(1000);
/
alter table hrsa_tax_declare_record add tax_paid_amount varchar2(255);
/
alter table hrsa_tax_declare_record add tax_pure_paid_amount varchar2(255);
/

View File

@ -0,0 +1,15 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
);
/

View File

@ -0,0 +1,39 @@
create table hrsa_tax_report_column
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_report_type varchar2(100),
income_category varchar2(100),
report_column_name varchar2(100),
report_column_data_index varchar2(100)
);
/
create table hrsa_sob_tax_report_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
report_column_data_index varchar2(100),
salary_item_id number
);
/
alter table hrsa_tax_report_column add data_type varchar2(100);
/
alter table hrsa_tax_report_column add request_param_key varchar2(100);
/
alter table hrsa_tax_report_column add report_column_label varchar2(100);
/

View File

@ -0,0 +1,18 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
);
/
alter table hrsa_tax_declare_fail add income_category varchar2(100);
/

View File

@ -0,0 +1,18 @@
alter table hrsa_tax_declaration add tax_declare_record_id number;
/
alter table hrsa_tax_declaration add control_view int;
/
alter table hrsa_salary_acct_emp add income_category varchar2(100);
/
alter table hrsa_salary_acct_record add control_view int;
/
update hrsa_salary_acct_record set control_view = 0 where control_view is null;
/
update hrsa_tax_declaration set control_view = 0 where control_view is null;
/

View File

@ -0,0 +1,16 @@
create table hrsa_tax_declaration_value
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
tax_declaration_id number,
employee_type number,
employee_id number,
result_value_json clob
);
/

View File

@ -0,0 +1,29 @@
alter table hrsa_salary_sob_item add income_category varchar2(100);
/
alter table hrsa_salary_sob_item modify income_category default '1';
/
update hrsa_salary_sob_item set income_category = '1' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '1');
/
update hrsa_salary_sob_item set income_category = '2' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '2');
/
update hrsa_salary_sob_item set income_category = '4' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '4');
/
alter table hrsa_salary_sob_item add salary_item_code varchar2(100);
/
update hrsa_salary_sob_item a
set ( salary_item_code) = (
select code as salary_item_code
from hrsa_salary_item b
where a.salary_item_id = b.id
);
/

View File

@ -0,0 +1,60 @@
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157061, null, null, null, 0, 'all_teams', '1', '2', '当期收入额', 'annualIncome');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157062, null, null, null, 0, 'all_teams', '1', '2', '免税收入', 'annualTaxFreeIncome');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157063, null, null, null, 0, 'all_teams', '1', '2', '其他', 'annualOther');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157064, null, null, null, 0, 'all_teams', '1', '2', '准予扣除的捐赠额', 'annualDonateTax');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157065, null, null, null, 0, 'all_teams', '1', '2', '减免税额', 'annualTaxSavings');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157066, null, null, null, 0, 'all_teams', '1', '2', '备注', 'annualRemark');
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualIncome'
where report_column_data_index = 'annual_income';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxFreeIncome'
where report_column_data_index = 'annual_tax_free_income';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualOther'
where report_column_data_index = 'annual_other';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualDonateTax'
where report_column_data_index = 'annual_donate_tax';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxSavings'
where report_column_data_index = 'annual_tax_savings';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualRemark'
where report_column_data_index = 'annual_remark';
/

View File

@ -0,0 +1,62 @@
create table hrsa_sob_add_up_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
salary_item_id number,
add_up_column_data_index varchar2(100)
);
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpIncome', 'addUpSubtraction', 'addUpSocialSecurityTotal', 'addUpAccumulationFundTotal',
'addUpEnterpriseAndOther', 'addUpOtherDeduction', 'addUpTaxExemptIncome',
'addUpAllowedDonation', 'addUpTaxSavings');
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpTaxPayable' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpAdvanceTax';
/
delete from hrsa_sob_add_up_rule
where income_category = 1
and add_up_column_data_index in ('addUpTaxPayable', 'addUpAdvanceTax');
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpAdvanceTax' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpTaxPayable';
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpTaxableIncome');
/

View File

@ -0,0 +1,3 @@
alter table hrsa_tax_payment_request add feedback int;
/

View File

@ -0,0 +1,6 @@
alter table hrsa_tax_agent_tax_return add city_name varchar2(400);
/
update hrsa_salary_sob_default_item set delete_type=1 where sys_salary_item_id = 700769462612156416;
/

View File

@ -0,0 +1,47 @@
delete from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 544827,'智能算薪' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'Intelligent salary calculation' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 544826,'人员信息报送' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人员信息报送' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'Personnel information submission' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人員信息報送' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/

View File

@ -0,0 +1,29 @@
Delete from LeftMenuInfo where id=100191;
/
Delete from LeftMenuConfig where infoid=100191;
/
call LMConfig_U_ByInfoInsert (2,100181,1);
/
call LMInfo_Insert (100191,544827,'','',2,100181,1,18);
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/intelligentCalculateSalarySettings' where id = 100191;
/
Delete from LeftMenuInfo where id=100192;
/
Delete from LeftMenuConfig where infoid=100192;
/
call LMConfig_U_ByInfoInsert (2,100118,7);
/
call LMInfo_Insert (100192,544826,'','',2,100118,7,18);
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/employeedeclare' where id = 100192;
/

View File

@ -0,0 +1,47 @@
create table hrsa_tax_api_flow_receiver
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
warn_config_id number not null,
employee_id number not null,
email varchar2(100),
mobile varchar2(50)
);
/
create table hrsa_tax_api_flow_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_month date not null,
use_time date not null,
deduct int,
employee_id number not null,
business_type int not null,
result_status int not null
);
/
create table hrsa_tax_api_flow_warn_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
enable_warn int default 0 not null,
threshold int default 0 not null,
business_id number default '0' not null
);
/

View File

@ -0,0 +1,34 @@
create table hrsa_tax_declare_api_profile
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
api_profile int
);
/
create index id_tenant_key_22b215db on hrsa_tax_declare_api_profile(tenant_key);
/
create table hrsa_tax_payment_request
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_declare_record_id number,
tax_year_month date not null,
request_id varchar2(50) not null,
request_type int not null
);
/
create index id_tenant_key_bcb610c7 on hrsa_tax_payment_request(tenant_key);
/

View File

@ -0,0 +1,38 @@
create table hrsa_tax_declare_api_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
host varchar2(255),
app_key varchar2(255),
app_secret varchar2(255)
);
/
create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key);
/
alter table hrsa_tax_declare_api_config modify host not null;
/
alter table hrsa_tax_declare_api_config modify app_key not null;
/
alter table hrsa_tax_declare_api_config modify app_secret not null;
/
alter table hrsa_tax_declare_api_config add enable_use int;
/
alter table hrsa_tax_declare_api_config add totality number;
/
alter table hrsa_tax_declare_api_config add remain number;
/
alter table hrsa_tax_declare_api_config add last_update_time date;
/

View File

@ -0,0 +1,31 @@
create table hrsa_tax_agent_tax_return
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_code varchar2(50) not null,
tax_registration_number varchar2(50) ,
department_code varchar2(50),
department_name varchar2(50),
nation varchar2(50),
province varchar2(50),
city varchar2(50),
area_code varchar2(50) not null,
password_type int not null,
real_account varchar2(50) ,
pwd varchar2(50) not null,
check_status int not null,
fail_reason varchar2(255)
);
/
create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key);
/
create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id);
/

View File

@ -0,0 +1,51 @@
create table hrsa_employee_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
request_id varchar2(100)
);
/
create table hrsa_employee_declare
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
employee_id number,
employee_type number,
employee_name varchar2(100),
job_num varchar2(100),
card_type number,
card_num varchar2(100),
gender varchar2(100),
birthday date,
employment_status number,
mobile varchar2(100),
employment_type number,
employment_first_year varchar2(100),
employment_date date,
dismiss_date date,
disability number,
disability_card_no varchar2(100),
lonely_old number,
martyr_dependents number,
martyr_dependents_card_no varchar2(100),
deduct_expenses number,
successfully_declared number,
new_employee_info number,
declare_status number,
declare_error_msg varchar2(1000)
);
/

View File

@ -0,0 +1,36 @@
create table hrsa_tax_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
salary_month date,
tax_cycle date,
remark varchar2(1000),
request_id varchar2(100),
tax_declare_type number,
tax_declare_status number
);
/
alter table hrsa_tax_declare_record add display_update_icon number;
/
alter table hrsa_tax_declare_record add tax_pay_amount varchar2(255);
/
alter table hrsa_tax_declare_record add person_num int;
/
alter table hrsa_tax_declare_record add tax_declare_error_msg varchar2(1000);
/
alter table hrsa_tax_declare_record add tax_paid_amount varchar2(255);
/
alter table hrsa_tax_declare_record add tax_pure_paid_amount varchar2(255);
/

View File

@ -0,0 +1,15 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
);
/

View File

@ -0,0 +1,39 @@
create table hrsa_tax_report_column
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_report_type varchar2(100),
income_category varchar2(100),
report_column_name varchar2(100),
report_column_data_index varchar2(100)
);
/
create table hrsa_sob_tax_report_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
report_column_data_index varchar2(100),
salary_item_id number
);
/
alter table hrsa_tax_report_column add data_type varchar2(100);
/
alter table hrsa_tax_report_column add request_param_key varchar2(100);
/
alter table hrsa_tax_report_column add report_column_label varchar2(100);
/

View File

@ -0,0 +1,18 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
);
/
alter table hrsa_tax_declare_fail add income_category varchar2(100);
/

View File

@ -0,0 +1,18 @@
alter table hrsa_tax_declaration add tax_declare_record_id number;
/
alter table hrsa_tax_declaration add control_view int;
/
alter table hrsa_salary_acct_emp add income_category varchar2(100);
/
alter table hrsa_salary_acct_record add control_view int;
/
update hrsa_salary_acct_record set control_view = 0 where control_view is null;
/
update hrsa_tax_declaration set control_view = 0 where control_view is null;
/

View File

@ -0,0 +1,16 @@
create table hrsa_tax_declaration_value
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
tax_declaration_id number,
employee_type number,
employee_id number,
result_value_json clob
);
/

View File

@ -0,0 +1,29 @@
alter table hrsa_salary_sob_item add income_category varchar2(100);
/
alter table hrsa_salary_sob_item modify income_category default '1';
/
update hrsa_salary_sob_item set income_category = '1' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '1');
/
update hrsa_salary_sob_item set income_category = '2' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '2');
/
update hrsa_salary_sob_item set income_category = '4' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '4');
/
alter table hrsa_salary_sob_item add salary_item_code varchar2(100);
/
update hrsa_salary_sob_item a
set ( salary_item_code) = (
select code as salary_item_code
from hrsa_salary_item b
where a.salary_item_id = b.id
);
/

View File

@ -0,0 +1,60 @@
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157061, null, null, null, 0, 'all_teams', '1', '2', '当期收入额', 'annualIncome');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157062, null, null, null, 0, 'all_teams', '1', '2', '免税收入', 'annualTaxFreeIncome');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157063, null, null, null, 0, 'all_teams', '1', '2', '其他', 'annualOther');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157064, null, null, null, 0, 'all_teams', '1', '2', '准予扣除的捐赠额', 'annualDonateTax');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157065, null, null, null, 0, 'all_teams', '1', '2', '减免税额', 'annualTaxSavings');
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157066, null, null, null, 0, 'all_teams', '1', '2', '备注', 'annualRemark');
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualIncome'
where report_column_data_index = 'annual_income';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxFreeIncome'
where report_column_data_index = 'annual_tax_free_income';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualOther'
where report_column_data_index = 'annual_other';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualDonateTax'
where report_column_data_index = 'annual_donate_tax';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxSavings'
where report_column_data_index = 'annual_tax_savings';
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualRemark'
where report_column_data_index = 'annual_remark';
/

View File

@ -0,0 +1,62 @@
create table hrsa_sob_add_up_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
salary_item_id number,
add_up_column_data_index varchar2(100)
);
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpIncome', 'addUpSubtraction', 'addUpSocialSecurityTotal', 'addUpAccumulationFundTotal',
'addUpEnterpriseAndOther', 'addUpOtherDeduction', 'addUpTaxExemptIncome',
'addUpAllowedDonation', 'addUpTaxSavings');
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpTaxPayable' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpAdvanceTax';
/
delete from hrsa_sob_add_up_rule
where income_category = 1
and add_up_column_data_index in ('addUpTaxPayable', 'addUpAdvanceTax');
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpAdvanceTax' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpTaxPayable';
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpTaxableIncome');
/

View File

@ -0,0 +1,3 @@
alter table hrsa_tax_payment_request add feedback int;
/

View File

@ -0,0 +1,6 @@
alter table hrsa_tax_agent_tax_return add city_name varchar2(400);
/
update hrsa_salary_sob_default_item set delete_type=1 where sys_salary_item_id = 700769462612156416;
/

View File

@ -0,0 +1,47 @@
delete from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 544827,'智能算薪' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'Intelligent salary calculation' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is null ) ;
/
insert into HtmlLabelIndex(id,indexdesc) select 544826,'人员信息报送' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人员信息报送' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'Personnel information submission' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1 ;
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is null ) ;
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人員信息報送' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1 ;
/

View File

@ -0,0 +1,29 @@
Delete from LeftMenuInfo where id=100191;
/
Delete from LeftMenuConfig where infoid=100191;
/
call LMConfig_U_ByInfoInsert (2,100181,1);
/
call LMInfo_Insert (100191,544827,'','',2,100181,1,18);
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/intelligentCalculateSalarySettings' where id = 100191;
/
Delete from LeftMenuInfo where id=100192;
/
Delete from LeftMenuConfig where infoid=100192;
/
call LMConfig_U_ByInfoInsert (2,100118,7);
/
call LMInfo_Insert (100192,544826,'','',2,100118,7,18);
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/employeedeclare' where id = 100192;
/

View File

@ -0,0 +1,47 @@
create table hrsa_tax_api_flow_receiver
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
warn_config_id number not null,
employee_id number not null,
email varchar2(100),
mobile varchar2(50)
);
/
create table hrsa_tax_api_flow_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_month date not null,
use_time date not null,
deduct int,
employee_id number not null,
business_type int not null,
result_status int not null
);
/
create table hrsa_tax_api_flow_warn_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
enable_warn int default 0 not null,
threshold int default 0 not null,
business_id number default '0' not null
);
/

View File

@ -0,0 +1,8 @@
alter table hrsa_tax_agent add tax_cycle_type int
;
alter table hrsa_tax_agent modify column tax_cycle_type int default 3
;
update hrsa_tax_agent set tax_cycle_type = 3 where tax_cycle_type is null
;

View File

@ -0,0 +1,33 @@
create table hrsa_tax_declare_api_profile
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
api_profile int comment '接口环境'
)
;
create index id_tenant_key_22b215db on hrsa_tax_declare_api_profile(tenant_key)
;
create table hrsa_tax_payment_request
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_agent_id bigint not null comment '个税扣缴义务人ID' ,
tax_declare_record_id bigint comment '个税申报记录' ,
tax_year_month date not null comment '税款所属期' ,
request_id varchar(50) not null comment '请求id' ,
request_type int not null comment '请求类型'
)
;
create index id_tenant_key_bcb610c7 on hrsa_tax_payment_request(tenant_key)
;

View File

@ -0,0 +1,37 @@
create table hrsa_tax_declare_api_config
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
host varchar(255) comment '接口host' ,
app_key varchar(255) comment 'appKey' ,
app_secret varchar(255) comment 'appSecret'
)
;
create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key)
;
alter table hrsa_tax_declare_api_config modify host varchar(255) not null
;
alter table hrsa_tax_declare_api_config modify app_key varchar(255) not null
;
alter table hrsa_tax_declare_api_config modify app_secret varchar(255) not null
;
alter table hrsa_tax_declare_api_config add enable_use int
;
alter table hrsa_tax_declare_api_config add totality bigint
;
alter table hrsa_tax_declare_api_config add remain bigint
;
alter table hrsa_tax_declare_api_config add last_update_time datetime
;

View File

@ -0,0 +1,30 @@
create table hrsa_tax_agent_tax_return
(
id bigint primary key comment 'ID' ,
create_time datetime comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>' ,
update_time datetime comment '<EFBFBD>޸<EFBFBD>ʱ<EFBFBD><EFBFBD>' ,
creator bigint comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>id' ,
delete_type int default 0 comment '<EFBFBD>Ƿ<EFBFBD>ɾ<EFBFBD><EFBFBD>' ,
tenant_key varchar(10) comment '<EFBFBD>⻧KEY' ,
tax_agent_id bigint not null comment '<EFBFBD><EFBFBD>˰<EFBFBD>۽<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID' ,
tax_code varchar(50) not null comment '˰<EFBFBD><EFBFBD>' ,
tax_registration_number varchar(50) comment '<EFBFBD>Ǽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ,
department_code varchar(50) comment '<EFBFBD><EFBFBD><EFBFBD>ű<EFBFBD><EFBFBD>' ,
department_name varchar(50) comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ,
nation varchar(50) comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ,
province varchar(50) comment 'ʡ<EFBFBD><EFBFBD>' ,
city varchar(50) comment '<EFBFBD>м<EFBFBD>' ,
area_code varchar(50) not null comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ,
password_type int(2) not null comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ,
real_account varchar(50) comment 'ʵ<EFBFBD><EFBFBD><EFBFBD>˺<EFBFBD>' ,
pwd varchar(50) not null comment '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' ,
check_status int(2) not null comment '<EFBFBD><EFBFBD>˰<EFBFBD><EFBFBD>֤״̬' ,
fail_reason varchar(255) comment '<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤ʧ<EFBFBD><EFBFBD>ԭ<EFBFBD><EFBFBD>'
)
;
create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key)
;
create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id)
;

View File

@ -0,0 +1,50 @@
create table hrsa_employee_declare_record
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_agent_id bigint comment '个税扣缴义务人' ,
tax_cycle datetime comment '税款所属期' ,
request_id varchar(100) comment '供应商第三方系统翻译的requestid'
)
;
create table hrsa_employee_declare
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_agent_id bigint comment '个税扣缴义务人ID' ,
tax_cycle datetime comment '税款所属期' ,
employee_id bigint comment '人员id' ,
employee_type tinyint comment '人员类型' ,
employee_name varchar(100) comment '姓名' ,
job_num varchar(100) comment '工号' ,
card_type tinyint comment '证件类型' ,
card_num varchar(100) comment '证件号码' ,
gender varchar(100) comment '性别' ,
birthday date comment '生日' ,
employment_status tinyint comment '人员状态' ,
mobile varchar(100) comment '手机号码' ,
employment_type tinyint comment '任职受雇从业类型' ,
employment_first_year varchar(100) comment '入职年度就业情形' ,
employment_date date comment '任职受雇从业日期' ,
dismiss_date date comment '离职日期' ,
disability tinyint comment '是否残疾' ,
disability_card_no varchar(100) comment '残疾证号码' ,
lonely_old tinyint comment '是否孤老' ,
martyr_dependents tinyint comment '是否烈属' ,
martyr_dependents_card_no varchar(100) comment '烈属证号码' ,
deduct_expenses tinyint comment '是否扣除减除费用' ,
successfully_declared tinyint comment '是否成功报送过' ,
new_employee_info tinyint comment '本月是否编辑过' ,
declare_status tinyint comment '报送状态' ,
declare_error_msg varchar(1000) comment '报送失败时的错误信息'
)
;

View File

@ -0,0 +1,32 @@
create table hrsa_tax_declare_record
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_agent_id bigint comment '个税扣缴义务人id' ,
salary_month datetime comment '薪资所属月' ,
tax_cycle datetime comment '税款所属期' ,
remark varchar(1000) comment '备注' ,
request_id varchar(100) comment '供应商第三方系统返回的requestid' ,
tax_declare_type tinyint comment '申报类型' ,
tax_declare_status tinyint comment '申报状态'
)
;
alter table hrsa_tax_declare_record add display_update_icon tinyint
;
alter table hrsa_tax_declare_record add tax_pay_amount varchar(255)
;
alter table hrsa_tax_declare_record add person_num int
;
alter table hrsa_tax_declare_record add tax_declare_error_msg varchar(1000)
;
alter table hrsa_tax_declare_record add tax_paid_amount varchar(255)
;
alter table hrsa_tax_declare_record add tax_pure_paid_amount varchar(255)
;

View File

@ -0,0 +1,14 @@
create table hrsa_tax_declare_fail
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_declare_record_id bigint comment '个税申报记录id' ,
employee_name varchar(100) comment '姓名' ,
card_num varchar(100) comment '证件号码' ,
error_msg varchar(1000) comment '失败原因'
)
;

View File

@ -0,0 +1,38 @@
create table hrsa_tax_report_column
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_report_type varchar(100) comment '报表类型' ,
income_category varchar(100) comment '所得项目' ,
report_column_name varchar(100) comment '列名' ,
report_column_data_index varchar(100) comment '列索引'
)
;
create table hrsa_sob_tax_report_rule
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
salary_sob_id bigint comment '薪资账套的id' ,
income_category varchar(100) comment '所得项目' ,
report_column_data_index varchar(100) comment '个税申报表列索引' ,
salary_item_id bigint comment '薪资项目id'
)
;
alter table hrsa_tax_report_column add data_type varchar(100)
;
alter table hrsa_tax_report_column add request_param_key varchar(100)
;
alter table hrsa_tax_report_column add report_column_label varchar(100)
;

View File

@ -0,0 +1,16 @@
create table hrsa_tax_declare_fail
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_declare_record_id bigint comment '个税申报记录id' ,
employee_name varchar(100) comment '姓名' ,
card_num varchar(100) comment '证件号码' ,
error_msg varchar(1000) comment '失败原因'
)
;
alter table hrsa_tax_declare_fail add income_category varchar(100)
;

View File

@ -0,0 +1,16 @@
alter table hrsa_tax_declaration add control_view int
;
alter table hrsa_tax_declaration add tax_declare_record_id bigint
;
alter table hrsa_salary_acct_emp add income_category varchar(100)
;
alter table hrsa_salary_acct_record add control_view int
;
update hrsa_salary_acct_record set control_view = 0 where control_view is null
;
update hrsa_tax_declaration set control_view = 0 where control_view is null
;

View File

@ -0,0 +1,15 @@
create table hrsa_tax_declaration_value
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_declare_record_id bigint comment '个税申报记录id' ,
tax_declaration_id bigint comment '个税申报表id' ,
employee_type tinyint comment '人员类型' ,
employee_id bigint comment '人员id' ,
result_value_json text comment '个税申报表明细值'
)
;

View File

@ -0,0 +1,25 @@
alter table hrsa_salary_sob_item add income_category varchar(100)
;
alter table hrsa_salary_sob_item modify column income_category varchar(100) default '1'
;
update hrsa_salary_sob_item set income_category = '1' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '1')
;
update hrsa_salary_sob_item set income_category = '2' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '2')
;
update hrsa_salary_sob_item set income_category = '4' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '4')
;
alter table hrsa_salary_sob_item add salary_item_code varchar(100)
;
update hrsa_salary_sob_item a, hrsa_salary_item b
set a.salary_item_code = b.code
where a.salary_item_id = b.id
;

View File

@ -0,0 +1,619 @@
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157061, null, null, null, 0, 'all_teams', '1', '2', '当期收入额', 'annualIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157062, null, null, null, 0, 'all_teams', '1', '2', '免税收入', 'annualTaxFreeIncome', 'number', 'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157063, null, null, null, 0, 'all_teams', '1', '2', '其他', 'annualOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157064, null, null, null, 0, 'all_teams', '1', '2', '准予扣除的捐赠额', 'annualDonateTax', 'number',
'zykcjze')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157065, null, null, null, 0, 'all_teams', '1', '2', '减免税额', 'annualTaxSavings', 'number', 'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157066, null, null, null, 0, 'all_teams', '1', '2', '备注', 'annualRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157068, null, null, null, 0, 'all_teams', '1', '4', '当期收入额', 'laborIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157069, null, null, null, 0, 'all_teams', '1', '4', '免税收入', 'laborTaxFreeIncome', 'number', 'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157070, null, null, null, 0, 'all_teams', '1', '4', '商业健康保险', 'commercialHealthInsurance4',
'number', 'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157071, null, null, null, 0, 'all_teams', '1', '4', '税延养老保险', 'taxDeferredEndowmentInsurance4',
'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157072, null, null, null, 0, 'all_teams', '1', '4', '允许扣除税费', 'allowedDeductTax4', 'number',
'yxkcsf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157073, null, null, null, 0, 'all_teams', '1', '4', '其他', 'other4', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157074, null, null, null, 0, 'all_teams', '1', '4', '减免税额', 'labor_tax_saving', 'number', 'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157075, null, null, null, 0, 'all_teams', '1', '4', '备注', 'description4', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157077, null, null, null, 0, 'all_teams', '1', '1', '本期收入', 'income', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157078, null, null, null, 0, 'all_teams', '1', '1', '本期免税收入', 'taxFreeIncome', 'number', 'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157079, null, null, null, 0, 'all_teams', '1', '1', '基本养老保险费', 'endowmentInsurance', 'number',
'jbylaobxf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157080, null, null, null, 0, 'all_teams', '1', '1', '基本医疗保险费', 'medicalInsurance', 'number',
'jbylbxf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157081, null, null, null, 0, 'all_teams', '1', '1', '失业保险费', 'unemploymentInsurance', 'number',
'sybxf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157082, null, null, null, 0, 'all_teams', '1', '1', '住房公积金', 'housingProvidentFund', 'number',
'zfgjj')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157083, null, null, null, 0, 'all_teams', '1', '1', '累计子女教育', 'addUpChildEducation', 'number',
'ljznjyzc')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157084, null, null, null, 0, 'all_teams', '1', '1', '累计住房贷款利息', 'addUpHousingLoanInterest',
'number', 'ljzfdklxzc')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157085, null, null, null, 0, 'all_teams', '1', '1', '累计住房租金', 'addUpHousingRent', 'number',
'ljzfzjzc')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157086, null, null, null, 0, 'all_teams', '1', '1', '累计赡养老人', 'addUpSupportElderly', 'number',
'ljsylrzc')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157087, null, null, null, 0, 'all_teams', '1', '1', '累计继续教育', 'addUpContinuingEducation', 'number',
'ljjxjyzc')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157088, null, null, null, 0, 'all_teams', '1', '1', '累计3岁以下婴幼儿照护支出', 'addUpInfantCare', 'number',
'ljyyezhzc')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157089, null, null, null, 0, 'all_teams', '1', '1', '企业(职业)年金', 'annuity', 'number', 'nj')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157090, null, null, null, 0, 'all_teams', '1', '1', '商业健康保险', 'commercialHealthInsurance', 'number',
'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157091, null, null, null, 0, 'all_teams', '1', '1', '税延养老保险', 'taxDeferredEndowmentInsurance',
'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157092, null, null, null, 0, 'all_teams', '1', '1', '其他', 'other', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157093, null, null, null, 0, 'all_teams', '1', '1', '准予扣除的捐赠额', 'allowedDonation', 'number',
'zykcjze')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157094, null, null, null, 0, 'all_teams', '1', '1', '减免税额', 'taxDeduction', 'number', 'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157095, null, null, null, 0, 'all_teams', '1', '1', '备注', 'description', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157096, null, null, null, 0, 'all_teams', '1', '107', '一次性补偿收入', 'retireCompensationIncome',
'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157097, null, null, null, 0, 'all_teams', '1', '107', '本期工资收入', 'retireWageIncome', 'number',
'bqgzs')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157098, null, null, null, 0, 'all_teams', '1', '107', '免税收入', 'retireTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157099, null, null, null, 0, 'all_teams', '1', '107', '其他', 'retireOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157100, null, null, null, 0, 'all_teams', '1', '107', '准予扣除的捐赠额', 'retireAllowedDonation', 'number',
'zykcjze')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157101, null, null, null, 0, 'all_teams', '1', '107', '减免税额', 'retireTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157102, null, null, null, 0, 'all_teams', '1', '107', '备注', 'retireRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157103, null, null, null, 0, 'all_teams', '1', '107', '分摊月份数', 'retireSplitMonth', 'number',
'ftyfs')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157104, null, null, null, 0, 'all_teams', '1', '108', '当期收入额', 'dismissIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157105, null, null, null, 0, 'all_teams', '1', '108', '免税收入', 'dismissTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157106, null, null, null, 0, 'all_teams', '1', '108', '其他', 'dismissOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157107, null, null, null, 0, 'all_teams', '1', '108', '备注', 'dismissRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157108, null, null, null, 0, 'all_teams', '1', '108', '准予扣除的捐赠额', 'dismissAllowedDonation',
'number', 'zykcjze')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157109, null, null, null, 0, 'all_teams', '1', '108', '减免税额', 'dismissTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157110, null, null, null, 0, 'all_teams', '1', '110', '当期收入额', 'annuityIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157111, null, null, null, 0, 'all_teams', '1', '110', '已完税缴费额', 'annuityTaxPaidAmount', 'number',
'ywsjfe')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157112, null, null, null, 0, 'all_teams', '1', '110', '全部缴费额', 'annuityTotalPayment', 'number',
'qbjfe')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157113, null, null, null, 0, 'all_teams', '1', '110', '是否一次性领取', 'annuityOneTimeReceive', 'string',
'sfycxlq')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157114, null, null, null, 0, 'all_teams', '1', '110', '年金领取方式', 'annuityReceiveMethod', 'string',
'njlqfs')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157115, null, null, null, 0, 'all_teams', '1', '110', '年金领取原因', 'annuityReceiveReason', 'string',
'njlqyy')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157116, null, null, null, 0, 'all_teams', '1', '110', '免税收入', 'annuityTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157117, null, null, null, 0, 'all_teams', '1', '110', '减免税额', 'annuityTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157118, null, null, null, 0, 'all_teams', '1', '110', '商业健康保险', 'annuityHealthInsurance', 'number',
'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157119, null, null, null, 0, 'all_teams', '1', '110', '税延养老保险', 'annuityEndowmentInsurance',
'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157120, null, null, null, 0, 'all_teams', '1', '110', '其他', 'annuityOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157121, null, null, null, 0, 'all_teams', '1', '110', '准予扣除的捐赠额', 'annuityAllowedDonation',
'number', 'zykcjze')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157122, null, null, null, 0, 'all_teams', '1', '110', '备注', 'annuityRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157123, null, null, null, 0, 'all_teams', '1', '402', '当期收入额', 'insuranceIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157124, null, null, null, 0, 'all_teams', '1', '402', '免税收入', 'insuranceTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157125, null, null, null, 0, 'all_teams', '1', '402', '商业健康保险', 'insuranceHealthInsurance',
'number', 'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157126, null, null, null, 0, 'all_teams', '1', '402', '税延养老保险', 'insuranceEndowmentInsurance',
'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157127, null, null, null, 0, 'all_teams', '1', '402', '其他', 'insuranceOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157128, null, null, null, 0, 'all_teams', '1', '402', '备注', 'insuranceRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157129, null, null, null, 0, 'all_teams', '1', '402', '减免税额', 'insuranceTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157130, null, null, null, 0, 'all_teams', '1', '402', '允许扣除税费', 'insuranceAllowedDeductTax',
'number', 'yxkcsf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157131, null, null, null, 0, 'all_teams', '1', '403', '当期收入额', 'securitiesIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157132, null, null, null, 0, 'all_teams', '1', '403', '免税收入', 'securitiesTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157133, null, null, null, 0, 'all_teams', '1', '403', '商业健康保险', 'securitiesHealthInsurance',
'number', 'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157134, null, null, null, 0, 'all_teams', '1', '403', '税延养老保险', 'securitiesEndowmentInsurance',
'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157135, null, null, null, 0, 'all_teams', '1', '403', '其他', 'securitiesOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157136, null, null, null, 0, 'all_teams', '1', '403', '备注', 'securitiesRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157137, null, null, null, 0, 'all_teams', '1', '403', '减免税额', 'securitiesTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157138, null, null, null, 0, 'all_teams', '1', '403', '允许扣除税费', 'securitiesAllowedDeductTax',
'number', 'yxkcsf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157139, null, null, null, 0, 'all_teams', '1', '489', '当期收入额', 'otherContinuousLaborIncome',
'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157140, null, null, null, 0, 'all_teams', '1', '489', '免税收入', 'otherContinuousLaborTaxFreeIncome',
'number', 'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157141, null, null, null, 0, 'all_teams', '1', '489', '商业健康保险',
'otherContinuousLaborHealthInsurance', 'number', 'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157142, null, null, null, 0, 'all_teams', '1', '489', '税延养老保险',
'otherContinuousLaborEndowmentInsurance', 'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157143, null, null, null, 0, 'all_teams', '1', '489', '其他', 'otherContinuousLaborOther', 'number',
'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157144, null, null, null, 0, 'all_teams', '1', '489', '备注', 'otherContinuousLaborRemark', 'string',
'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157145, null, null, null, 0, 'all_teams', '1', '489', '减免税额', 'otherContinuousLaborTaxDeduction',
'number', 'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157146, null, null, null, 0, 'all_teams', '1', '489', '允许扣除税费',
'otherContinuousLaborAllowedDeductTax', 'number', 'yxkcsf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157147, null, null, null, 0, 'all_teams', '1', '499', '当期收入额', 'otherLaborIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157149, null, null, null, 0, 'all_teams', '1', '499', '免税收入', 'otherLaborTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157150, null, null, null, 0, 'all_teams', '1', '499', '商业健康保险', 'otherLaborHealthInsurance',
'number', 'syjkbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157151, null, null, null, 0, 'all_teams', '1', '499', '税延养老保险', 'otherLaborEndowmentInsurance',
'number', 'syylbx')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157152, null, null, null, 0, 'all_teams', '1', '499', '允许扣除税费', 'otherLaborAllowedDeductTax',
'number', 'yxkcsf')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157153, null, null, null, 0, 'all_teams', '1', '499', '其他', 'otherLaborOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157154, null, null, null, 0, 'all_teams', '1', '499', '备注', 'otherLaborRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157155, null, null, null, 0, 'all_teams', '1', '499', '减免税额', 'otherLaborTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157156, null, null, null, 0, 'all_teams', '1', '500', '当期收入额', 'authorIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157157, null, null, null, 0, 'all_teams', '1', '500', '免税收入', 'authorTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157158, null, null, null, 0, 'all_teams', '1', '500', '其他', 'authorOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157159, null, null, null, 0, 'all_teams', '1', '500', '减免税额', 'authorTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157160, null, null, null, 0, 'all_teams', '1', '500', '备注', 'authorRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157161, null, null, null, 0, 'all_teams', '1', '600', '当期收入额', 'royaltiesIncome', 'number', 'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157162, null, null, null, 0, 'all_teams', '1', '600', '免税收入', 'royaltiesTaxFreeIncome', 'number',
'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157163, null, null, null, 0, 'all_teams', '1', '600', '其他', 'royaltiesOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157164, null, null, null, 0, 'all_teams', '1', '600', '备注', 'royaltiesRemark', 'string', 'bz')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157165, null, null, null, 0, 'all_teams', '1', '600', '减免税额', 'royaltiesTaxDeduction', 'number',
'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157166, null, null, null, 0, 'all_teams', '1', '109', '本月股权激励收入', 'stockRightIncome', 'number',
'sre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157167, null, null, null, 0, 'all_teams', '1', '109', '本年累计股权激励收入(不含本月)', 'stockRightAddUpIncome',
'number', 'ljsre')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157168, null, null, null, 0, 'all_teams', '1', '109', '本年累计其他', 'stockRightOther', 'number', 'qt')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157169, null, null, null, 0, 'all_teams', '1', '109', '本年累计准予扣除的捐赠额', 'stockRightAllowedDonation',
'number', 'zykcjze')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157170, null, null, null, 0, 'all_teams', '1', '109', '本年累计减免税额', 'stockRightTaxDeduction',
'number', 'jmse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157171, null, null, null, 0, 'all_teams', '1', '109', '本年累计已扣缴税额', 'stockRightAddUpAdvanceTax',
'number', 'ykjse')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157172, null, null, null, 0, 'all_teams', '1', '109', '本年累计免税收入', 'stockRightTaxFreeIncome',
'number', 'mssd')
;
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key, tax_report_type,
income_category, report_column_name, report_column_data_index, data_type,
request_param_key)
VALUES (805915446042157173, null, null, null, 0, 'all_teams', '1', '109', '备注', 'stockRightRemark', 'string', 'bz')
;

View File

@ -0,0 +1,58 @@
create table hrsa_sob_add_up_rule
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
salary_sob_id bigint comment '薪资账套的id' ,
income_category varchar(100) comment '收入所得项目' ,
salary_item_id bigint comment '薪资项目的id' ,
add_up_column_data_index varchar(100) comment '往期累计情况的字段索引'
)
;
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpIncome', 'addUpSubtraction', 'addUpSocialSecurityTotal', 'addUpAccumulationFundTotal',
'addUpEnterpriseAndOther', 'addUpOtherDeduction', 'addUpTaxExemptIncome',
'addUpAllowedDonation', 'addUpTaxSavings')
;
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpTaxPayable' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpAdvanceTax'
;
delete from hrsa_sob_add_up_rule
where income_category = 1
and add_up_column_data_index in ('addUpTaxPayable', 'addUpAdvanceTax')
;
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpAdvanceTax' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpTaxPayable'
;
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpTaxableIncome')
;

View File

@ -0,0 +1,2 @@
alter table hrsa_tax_payment_request add feedback int
;

View File

@ -0,0 +1,4 @@
alter table hrsa_tax_agent_tax_return add city_name varchar(400)
;
update hrsa_salary_sob_default_item set delete_type=1 where sys_salary_item_id = 700769462612156416;

View File

@ -0,0 +1,34 @@
delete from HtmlLabelIndex where id = 544827 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 544827,'智能算薪' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544827 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'Intelligent salary calculation' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelIndex where id = 544826 and ( indexdesc is null or indexdesc = '' )
;
insert into HtmlLabelIndex(id,indexdesc) select 544826,'人员信息报送' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544826 and ( indexdesc is not null and indexdesc <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人员信息报送' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( labelname is not null and labelname <> '' )) limit 1
;
delete from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( labelname is null or labelname = '' or length(labelname)!=char_length(labelname) )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'Personnel information submission' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( labelname is not null and labelname <> '' and length(labelname)=char_length(labelname) )) limit 1
;
delete from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( labelname is null or labelname = '' )
;
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人員信息報送' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( labelname is not null and labelname <> '' )) limit 1
;

View File

@ -0,0 +1,21 @@
Delete from LeftMenuInfo where id=100191
;
Delete from LeftMenuConfig where infoid=100191
;
call LMConfig_U_ByInfoInsert (2,100181,1)
;
call LMInfo_Insert (100191,544827,'','',2,100181,1,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/intelligentCalculateSalarySettings' where id = 100191
;
Delete from LeftMenuInfo where id=100192
;
Delete from LeftMenuConfig where infoid=100192
;
call LMConfig_U_ByInfoInsert (2,100118,7)
;
call LMInfo_Insert (100192,544826,'','',2,100118,7,18)
;
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/employeedeclare' where id = 100192
;

View File

@ -0,0 +1,46 @@
create table hrsa_tax_api_flow_receiver
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
warn_config_id bigint not null comment '提醒配置的id' ,
employee_id bigint not null comment '接收人id' ,
email varchar(100) comment '邮箱' ,
mobile varchar(50) comment '手机号'
)
;
create table hrsa_tax_api_flow_record
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
tax_agent_id bigint not null comment '个税扣缴义务人的主键id' ,
tax_month datetime not null comment '税款所属期' ,
use_time datetime not null comment '使用时间' ,
deduct int comment '是否扣流量(暂时没用)' ,
employee_id bigint not null comment '人员ID' ,
business_type int not null comment '接口业务类型' ,
result_status int not null comment '结果'
)
;
create table hrsa_tax_api_flow_warn_config
(
id bigint primary key comment 'ID' ,
create_time datetime comment '创建时间' ,
update_time datetime comment '修改时间' ,
creator bigint comment '创建人id' ,
delete_type int default 0 comment '是否删除' ,
tenant_key varchar(10) comment '租户KEY' ,
enable_warn int default 0 not null comment '是否提醒' ,
threshold int default 0 not null comment '提醒阈值' ,
business_id bigint default '0' not null comment '消息业务ID'
)
;

View File

@ -0,0 +1,33 @@
create table hrsa_tax_declare_api_profile
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
api_profile int
)
/
create index id_tenant_key_22b215db on hrsa_tax_declare_api_profile(tenant_key)
/
create table hrsa_tax_payment_request
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_declare_record_id number,
tax_year_month date not null,
request_id varchar2(50) not null,
request_type int not null
)
/
create index id_tenant_key_bcb610c7 on hrsa_tax_payment_request(tenant_key)
/

View File

@ -0,0 +1,37 @@
create table hrsa_tax_declare_api_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
host varchar2(255),
app_key varchar2(255),
app_secret varchar2(255)
)
/
create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key)
/
alter table hrsa_tax_declare_api_config modify host not null
/
alter table hrsa_tax_declare_api_config modify app_key not null
/
alter table hrsa_tax_declare_api_config modify app_secret not null
/
alter table hrsa_tax_declare_api_config add enable_use int
/
alter table hrsa_tax_declare_api_config add totality number
/
alter table hrsa_tax_declare_api_config add remain number
/
alter table hrsa_tax_declare_api_config add last_update_time date
/

View File

@ -0,0 +1,30 @@
create table hrsa_tax_agent_tax_return
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_code varchar2(50) not null,
tax_registration_number varchar2(50) ,
department_code varchar2(50),
department_name varchar2(50),
nation varchar2(50),
province varchar2(50),
city varchar2(50),
area_code varchar2(50) not null,
password_type int not null,
real_account varchar2(50) ,
pwd varchar2(50) not null,
check_status int not null,
fail_reason varchar2(255)
)
/
create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key)
/
create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id)
/

View File

@ -0,0 +1,50 @@
create table hrsa_employee_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
request_id varchar2(100)
)
/
create table hrsa_employee_declare
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
tax_cycle date,
employee_id number,
employee_type number,
employee_name varchar2(100),
job_num varchar2(100),
card_type number,
card_num varchar2(100),
gender varchar2(100),
birthday date,
employment_status number,
mobile varchar2(100),
employment_type number,
employment_first_year varchar2(100),
employment_date date,
dismiss_date date,
disability number,
disability_card_no varchar2(100),
lonely_old number,
martyr_dependents number,
martyr_dependents_card_no varchar2(100),
deduct_expenses number,
successfully_declared number,
new_employee_info number,
declare_status number,
declare_error_msg varchar2(1000)
)
/

View File

@ -0,0 +1,31 @@
create table hrsa_tax_declare_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number,
salary_month date,
tax_cycle date,
remark varchar2(1000),
request_id varchar2(100),
tax_declare_type number,
tax_declare_status number
)
/
alter table hrsa_tax_declare_record add display_update_icon number
/
alter table hrsa_tax_declare_record add tax_pay_amount varchar2(255)
/
alter table hrsa_tax_declare_record add person_num int
/
alter table hrsa_tax_declare_record add tax_declare_error_msg varchar2(1000)
/
alter table hrsa_tax_declare_record add tax_paid_amount varchar2(255)
/
alter table hrsa_tax_declare_record add tax_pure_paid_amount varchar2(255)
/

View File

@ -0,0 +1,14 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
)
/

View File

@ -0,0 +1,38 @@
create table hrsa_tax_report_column
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_report_type varchar2(100),
income_category varchar2(100),
report_column_name varchar2(100),
report_column_data_index varchar2(100)
)
/
create table hrsa_sob_tax_report_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
report_column_data_index varchar2(100),
salary_item_id number
)
/
alter table hrsa_tax_report_column add data_type varchar2(100)
/
alter table hrsa_tax_report_column add request_param_key varchar2(100)
/
alter table hrsa_tax_report_column add report_column_label varchar2(100)
/

View File

@ -0,0 +1,17 @@
create table hrsa_tax_declare_fail
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
employee_name varchar2(100),
card_num varchar2(100),
error_msg varchar2(1000)
)
/
alter table hrsa_tax_declare_fail add income_category varchar2(100)
/

View File

@ -0,0 +1,13 @@
alter table hrsa_tax_declaration add tax_declare_record_id number
/
alter table hrsa_tax_declaration add control_view int
/
alter table hrsa_salary_acct_emp add income_category varchar2(100)
/
alter table hrsa_salary_acct_record add control_view int
/
update hrsa_salary_acct_record set control_view = 0 where control_view is null
/
update hrsa_tax_declaration set control_view = 0 where control_view is null
/

View File

@ -0,0 +1,15 @@
create table hrsa_tax_declaration_value
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_declare_record_id number,
tax_declaration_id number,
employee_type number,
employee_id number,
result_value_json clob
)
/

View File

@ -0,0 +1,28 @@
alter table hrsa_salary_sob_item add income_category varchar2(100)
/
alter table hrsa_salary_sob_item modify income_category default '1'
/
update hrsa_salary_sob_item set income_category = '1' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '1')
/
update hrsa_salary_sob_item set income_category = '2' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '2')
/
update hrsa_salary_sob_item set income_category = '4' where salary_sob_id IN
(select id from hrsa_salary_sob where hrsa_salary_sob.income_category = '4')
/
alter table hrsa_salary_sob_item add salary_item_code varchar2(100)
/
update hrsa_salary_sob_item a
set ( salary_item_code) = (
select code as salary_item_code
from hrsa_salary_item b
where a.salary_item_id = b.id
)
/

View File

@ -0,0 +1,49 @@
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157061, null, null, null, 0, 'all_teams', '1', '2', '当期收入额', 'annualIncome')
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157062, null, null, null, 0, 'all_teams', '1', '2', '免税收入', 'annualTaxFreeIncome')
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157063, null, null, null, 0, 'all_teams', '1', '2', '其他', 'annualOther')
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157064, null, null, null, 0, 'all_teams', '1', '2', '准予扣除的捐赠额', 'annualDonateTax')
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157065, null, null, null, 0, 'all_teams', '1', '2', '减免税额', 'annualTaxSavings')
/
INSERT INTO hrsa_tax_report_column (id, create_time, update_time, creator, delete_type, tenant_key,
tax_report_type, income_category, report_column_name,
report_column_data_index)
VALUES (805915446042157066, null, null, null, 0, 'all_teams', '1', '2', '备注', 'annualRemark')
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualIncome'
where report_column_data_index = 'annual_income'
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxFreeIncome'
where report_column_data_index = 'annual_tax_free_income'
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualOther'
where report_column_data_index = 'annual_other'
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualDonateTax'
where report_column_data_index = 'annual_donate_tax'
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualTaxSavings'
where report_column_data_index = 'annual_tax_savings'
/
update hrsa_sob_tax_report_rule set report_column_data_index = 'annualRemark'
where report_column_data_index = 'annual_remark'
/

View File

@ -0,0 +1,57 @@
create table hrsa_sob_add_up_rule
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
salary_sob_id number,
income_category varchar2(100),
salary_item_id number,
add_up_column_data_index varchar2(100)
)
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpIncome', 'addUpSubtraction', 'addUpSocialSecurityTotal', 'addUpAccumulationFundTotal',
'addUpEnterpriseAndOther', 'addUpOtherDeduction', 'addUpTaxExemptIncome',
'addUpAllowedDonation', 'addUpTaxSavings')
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpTaxPayable' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpAdvanceTax'
/
delete from hrsa_sob_add_up_rule
where income_category = 1
and add_up_column_data_index in ('addUpTaxPayable', 'addUpAdvanceTax')
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, 'addUpAdvanceTax' as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code = 'addUpTaxPayable'
/
insert into hrsa_sob_add_up_rule(id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, add_up_column_data_index)
select id, create_time, update_time, creator, delete_type, tenant_key, salary_sob_id,
income_category, salary_item_id, salary_item_code as add_up_column_data_index
from hrsa_salary_sob_item
where delete_type = 0
and income_category = 1
and salary_item_code in ('addUpTaxableIncome')
/

View File

@ -0,0 +1,2 @@
alter table hrsa_tax_payment_request add feedback int
/

View File

@ -0,0 +1,5 @@
alter table hrsa_tax_agent_tax_return add city_name varchar2(400)
/
update hrsa_salary_sob_default_item set delete_type=1 where sys_salary_item_id = 700769462612156416
/

View File

@ -0,0 +1,34 @@
delete from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is null )
/
insert into HtmlLabelIndex(id,indexdesc) select 544827,'智能算薪' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544827 and ( trim(indexdesc) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'Intelligent salary calculation' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544827 as indexid ,'智能算薪' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544827 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is null )
/
insert into HtmlLabelIndex(id,indexdesc) select 544826,'人员信息报送' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 544826 and ( trim(indexdesc) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人员信息报送' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'Personnel information submission' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 544826 as indexid ,'人員信息報送' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 544826 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
/

View File

@ -0,0 +1,21 @@
Delete from LeftMenuInfo where id=100191
/
Delete from LeftMenuConfig where infoid=100191
/
call LMConfig_U_ByInfoInsert (2,100181,1)
/
call LMInfo_Insert (100191,544827,'','',2,100181,1,18)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/intelligentCalculateSalarySettings' where id = 100191
/
Delete from LeftMenuInfo where id=100192
/
Delete from LeftMenuConfig where infoid=100192
/
call LMConfig_U_ByInfoInsert (2,100118,7)
/
call LMInfo_Insert (100192,544826,'','',2,100118,7,18)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/hrmSalary/static/index.html#/main/hrmSalary/employeedeclare' where id = 100192
/

View File

@ -0,0 +1,48 @@
create table hrsa_tax_api_flow_receiver
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
warn_config_id number not null,
employee_id number not null,
email varchar2(100),
mobile varchar2(50)
)
/
create table hrsa_tax_api_flow_record
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
tax_agent_id number not null,
tax_month date not null,
use_time date not null,
deduct int,
employee_id number not null,
business_type int not null,
result_status int not null
)
/
create table hrsa_tax_api_flow_warn_config
(
id number primary key ,
create_time date,
update_time date,
creator number,
delete_type int default 0,
tenant_key varchar2(10),
enable_warn int default 0 not null,
threshold int default 0 not null,
business_id number default '0' not null
)
/

View File

@ -0,0 +1,33 @@
create table hrsa_tax_declare_api_profile
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
api_profile int
);
/
create index id_tenant_key_22b215db on hrsa_tax_declare_api_profile(tenant_key);
/
create table hrsa_tax_payment_request
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_agent_id bigint not null,
tax_declare_record_id bigint,
tax_year_month date not null,
request_id varchar(50) not null,
request_type int not null
);
/
create index id_tenant_key_bcb610c7 on hrsa_tax_payment_request(tenant_key);
/

View File

@ -0,0 +1,37 @@
create table hrsa_tax_declare_api_config
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
host varchar(255),
app_key varchar(255),
app_secret varchar(255)
);
/
create unique index idx_tenant_key_api_a6f21b46 on hrsa_tax_declare_api_config(tenant_key);
/
alter table hrsa_tax_declare_api_config alter column host set not null ;
/
alter table hrsa_tax_declare_api_config alter column app_key set not null ;
/
alter table hrsa_tax_declare_api_config alter column app_secret set not null ;
/
alter table hrsa_tax_declare_api_config add enable_use int;
/
alter table hrsa_tax_declare_api_config add totality bigint;
/
alter table hrsa_tax_declare_api_config add remain bigint;
/
alter table hrsa_tax_declare_api_config add last_update_time timestamp;
/

View File

@ -0,0 +1,30 @@
create table hrsa_tax_agent_tax_return
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_agent_id bigint not null,
tax_code varchar(50) not null,
tax_registration_number varchar(50) ,
department_code varchar(50),
department_name varchar(50),
nation varchar(50),
province varchar(50),
city varchar(50),
area_code varchar(50) not null,
password_type int not null,
real_account varchar(50),
pwd varchar(50) not null,
check_status int not null,
fail_reason varchar(255)
);
/
create index id_tenant_key_tax_return on hrsa_tax_agent_tax_return(tenant_key);
/
create unique index id_tax_agent_id_tax_return on hrsa_tax_agent_tax_return(tax_agent_id);
/

View File

@ -0,0 +1,50 @@
create table hrsa_employee_declare_record
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_agent_id bigint,
tax_cycle timestamp,
request_id varchar(100)
);
/
create table hrsa_employee_declare
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_agent_id bigint,
tax_cycle timestamp,
employee_id bigint,
employee_type smallint,
employee_name varchar(100),
job_num varchar(100),
card_type smallint,
card_num varchar(100),
gender varchar(100),
birthday date,
employment_status smallint,
mobile varchar(100),
employment_type smallint,
employment_first_year varchar(100),
employment_date date,
dismiss_date date,
disability smallint,
disability_card_no varchar(100),
lonely_old smallint,
martyr_dependents smallint,
martyr_dependents_card_no varchar(100),
deduct_expenses smallint,
successfully_declared smallint,
new_employee_info smallint,
declare_status smallint,
declare_error_msg varchar(1000)
);
/

View File

@ -0,0 +1,31 @@
create table hrsa_tax_declare_record
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_agent_id bigint,
salary_month timestamp,
tax_cycle timestamp,
remark varchar(1000),
request_id varchar(100),
tax_declare_type smallint,
tax_declare_status smallint
);
/
alter table hrsa_tax_declare_record add display_update_icon smallint;
/
alter table hrsa_tax_declare_record add tax_pay_amount varchar(255);
/
alter table hrsa_tax_declare_record add person_num int;
/
alter table hrsa_tax_declare_record add tax_declare_error_msg varchar(1000);
/
alter table hrsa_tax_declare_record add tax_paid_amount varchar(255);
/
alter table hrsa_tax_declare_record add tax_pure_paid_amount varchar(255);
/

View File

@ -0,0 +1,14 @@
create table hrsa_tax_declare_fail
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_declare_record_id bigint,
employee_name varchar(100),
card_num varchar(100),
error_msg varchar(1000)
);
/

View File

@ -0,0 +1,38 @@
create table hrsa_tax_report_column
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_report_type varchar(100),
income_category varchar(100),
report_column_name varchar(100),
report_column_data_index varchar(100)
);
/
create table hrsa_sob_tax_report_rule
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
salary_sob_id bigint,
income_category varchar(100),
report_column_data_index varchar(100),
salary_item_id bigint
);
/
alter table hrsa_tax_report_column add data_type varchar(100);
/
alter table hrsa_tax_report_column add request_param_key varchar(100);
/
alter table hrsa_tax_report_column add report_column_label varchar(100);
/

View File

@ -0,0 +1,17 @@
create table hrsa_tax_declare_fail
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_declare_record_id bigint,
employee_name varchar(100),
card_num varchar(100),
error_msg varchar(1000)
);
/
alter table hrsa_tax_declare_fail add income_category varchar(100);
/

View File

@ -0,0 +1,15 @@
alter table hrsa_tax_declaration add control_view int;
/
alter table hrsa_tax_declaration add tax_declare_record_id bigint;
/
alter table hrsa_salary_acct_emp add income_category varchar(100);
/
alter table hrsa_salary_acct_record add control_view int;
/
update hrsa_salary_acct_record set control_view = 0 where control_view is null;
/
update hrsa_tax_declaration set control_view = 0 where control_view is null;
/

View File

@ -0,0 +1,15 @@
create table hrsa_tax_declaration_value
(
id bigint primary key ,
create_time timestamp,
update_time timestamp,
creator bigint,
delete_type int default 0,
tenant_key varchar(10),
tax_declare_record_id bigint,
tax_declaration_id bigint,
employee_type smallint,
employee_id bigint,
result_value_json text
);
/

Some files were not shown because too many files have changed in this diff Show More