申报表字段缺失
This commit is contained in:
parent
cdfced412f
commit
258c880543
|
|
@ -0,0 +1,81 @@
|
|||
|
||||
-- 累计子女教育
|
||||
UPDATE a set a.field_value = b.add_up_child_education
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpChildEducation';
|
||||
|
||||
-- 累计住房贷款利息
|
||||
UPDATE a set a.field_value = b.add_up_housing_loan_interest
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpHousingLoanInterest';
|
||||
|
||||
-- 累计住房租金
|
||||
UPDATE a set a.field_value = b.add_up_housing_rent
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpHousingRent';
|
||||
|
||||
|
||||
|
||||
-- 累计继续教育
|
||||
UPDATE a set a.field_value = b.add_up_continuing_education
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpContinuingEducation';
|
||||
|
||||
--累计赡养老人
|
||||
UPDATE a set a.field_value = b.add_up_support_elderly
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpSupportElderly';
|
||||
|
||||
|
||||
|
||||
--累计大病医疗
|
||||
UPDATE a set a.field_value = b.add_up_illness_medical
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpIllnessMedical';
|
||||
|
||||
--累计婴幼儿照护
|
||||
UPDATE a set a.field_value = b.add_up_infant_care
|
||||
FROM hrsa_tax_declaration_detail a,hrsa_add_up_deduction b
|
||||
where a.employee_id = b.employee_id
|
||||
and b.tax_agent_id = 4
|
||||
and a.tax_declaration_id = 1675151551804
|
||||
and a.delete_type = 0
|
||||
and b.delete_type =0
|
||||
and b.declare_month='2023-01-01 00:00:00'
|
||||
and a.field_code = 'addUpInfantCare';
|
||||
Loading…
Reference in New Issue