CREATE TABLE hrsa_acct_result_temp  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  calculate_key varchar(50)   NOT NULL DEFAULT '' COMMENT '核算时生成的uuid，代表某一次核算',
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套id',
  salary_acct_emp_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算人员id',
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算的id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  tax_agent_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人id',
  salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资项目的id',
  result_value varchar(1000)   NOT NULL DEFAULT '' COMMENT '计算后的值',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_calculate_key(calculate_key) USING BTREE
)     COMMENT = '薪资核算结果临时存储表' ;




CREATE TABLE hrsa_add_up_deduction  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '人员信息表的主键id',
  tax_agent_id bigint(0) NOT NULL COMMENT '个税扣缴义务人的主键id',
  declare_month datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '申报月份',
  add_up_child_education varchar(255)   NULL DEFAULT '' COMMENT '累计子女教育',
  add_up_continuing_education varchar(255)   NULL DEFAULT '' COMMENT '累计继续教育',
  add_up_housing_loan_interest varchar(255)   NULL DEFAULT '' COMMENT '累计住房贷款利息',
  add_up_housing_rent varchar(255)   NULL DEFAULT '' COMMENT '累计住房租金',
  add_up_support_elderly varchar(255)   NULL DEFAULT '' COMMENT '累计赡养老人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_employee_id(employee_id) USING BTREE,
  INDEX idx_declare_month(declare_month) USING BTREE
)    COMMENT = '数据采集-累计专项附加扣除表' ;



CREATE TABLE hrsa_add_up_situation  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '人员信息表的主键id',
  tax_agent_id bigint(0) NOT NULL COMMENT '个税扣缴义务人的主键id',
  tax_year_month datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '税款所属期',
  year int(0) NOT NULL DEFAULT 0 COMMENT '年份',
  add_up_income varchar(255)   NULL DEFAULT '' COMMENT '累计收入额',
  add_up_subtraction varchar(255)   NULL DEFAULT '' COMMENT '累计减除费用',
  add_up_social_security_total varchar(255)   NULL DEFAULT '' COMMENT '累计社保个人合计',
  add_up_accumulation_fund_total varchar(255)   NULL DEFAULT '' COMMENT '累计公积金个人合计',
  add_up_child_education varchar(255)   NULL DEFAULT '' COMMENT '累计子女教育',
  add_up_continuing_education varchar(255)   NULL DEFAULT '' COMMENT '累计继续教育',
  add_up_housing_loan_interest varchar(255)   NULL DEFAULT '' COMMENT '累计住房贷款利息',
  add_up_housing_rent varchar(255)   NULL DEFAULT '' COMMENT '累计住房租金',
  add_up_support_elderly varchar(255)   NULL DEFAULT '' COMMENT '累计赡养老人',
  add_up_enterprise_and_other varchar(255)   NULL DEFAULT '' COMMENT '累计企业（职业）年金及其他福利',
  add_up_other_deduction varchar(255)   NULL DEFAULT '0.00000' COMMENT '累计其他扣除',
  add_up_tax_exempt_income varchar(255)   NULL DEFAULT '' COMMENT '累计免税收入',
  add_up_allowed_donation varchar(255)   NULL DEFAULT '' COMMENT '累计准予扣除的捐赠额',
  add_up_advance_tax varchar(255)   NULL DEFAULT '' COMMENT '累计已预扣预缴税额',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_employee_id(employee_id) USING BTREE,
  INDEX idx_tax_year_month(tax_year_month) USING BTREE
)     COMMENT = '数据采集-累计情况表' ;





CREATE TABLE hrsa_attend_quote  (
  id bigint(0) NOT NULL COMMENT '主键',
  salary_year_month datetime(0) NOT NULL COMMENT '税款所属期',
  year int(0) NOT NULL DEFAULT 0 COMMENT '年份',
  month int(0) NOT NULL DEFAULT 0 COMMENT '月份',
  salary_sob_id bigint(0) NOT NULL COMMENT '薪资账套表的主键id',
  source_type int(0) NOT NULL DEFAULT 0 COMMENT '来源。1：引用、2：导入',
  salary_accounting_status int(0) NOT NULL DEFAULT 0 COMMENT '薪资核算状态。0：未核算、1：已核算',
  attend_cycle varchar(100)   NOT NULL DEFAULT '' COMMENT '考勤周期',
  salary_cycle varchar(100)   NOT NULL DEFAULT '' COMMENT '薪资周期',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '备注',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)    COMMENT = '考勤引用表' ;



CREATE TABLE hrsa_attend_quote_data  (
  id bigint(0) NOT NULL,
  employee_id bigint(0) NOT NULL COMMENT '人员信息表的主键id',
  attend_quote_id bigint(0) NOT NULL COMMENT '考勤引用表的主键id',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_attend_quote_id(attend_quote_id) USING BTREE
)    COMMENT = '考勤引用数据表' ;



CREATE TABLE hrsa_attend_quote_data_value  (
  id bigint(0) NOT NULL AUTO_INCREMENT COMMENT '主键',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员信息表的主键id',
  attend_quote_id bigint(0) NOT NULL DEFAULT 0 COMMENT '考勤引用表的主键id',
  attend_quote_data_id bigint(0) NOT NULL COMMENT '考勤引用数据表的主键id',
  attend_quote_field_id bigint(0) NOT NULL COMMENT '考勤引用字段表的主键id',
  data_value varchar(250)   NOT NULL COMMENT '数据值',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_attend_quote_id(attend_quote_id) USING BTREE
)     COMMENT = '考勤引用数据值表' ;



CREATE TABLE hrsa_attend_quote_field  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  field_name varchar(100)   NOT NULL DEFAULT '' COMMENT '字段名称',
  source_type int(0) NOT NULL DEFAULT 0 COMMENT '来源。1：自定义、2：考勤模块',
  field_type int(0) NOT NULL DEFAULT 0 COMMENT '字段类型。1：数值、2：文本',
  enable_status int(0) NOT NULL DEFAULT 0 COMMENT '是否启用。0：否、1：是',
  code varchar(50)   NOT NULL DEFAULT '' COMMENT '编码（对应考勤模块字段）',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '备注',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)     COMMENT = '考勤引用字段表' ;



CREATE TABLE hrsa_attend_quote_sync_set  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  source_type int(0) NOT NULL DEFAULT 0 COMMENT '来源。1：引用、2：导入',
  current_setting_content varchar(4000)   NOT NULL DEFAULT '' COMMENT '当前设置',
  default_setting_content varchar(4000)   NOT NULL DEFAULT '' COMMENT '默认设置',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)    COMMENT = '考勤引用字段设置表' ;



CREATE TABLE hrsa_bill_batch  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  bill_month varchar(30)   NOT NULL COMMENT '账单月份',
  bill_status tinyint(1) NOT NULL COMMENT '账单状态 0-未归档 1-已归档',
  social_num int(0) NULL DEFAULT 0 COMMENT '社保核算人数',
  fund_num int(0) NULL DEFAULT 0 COMMENT '公积金核算人数',
  other_num int(0) NULL DEFAULT 0 COMMENT '其他福利核算人数',
  social_pay varchar(4000)   NULL DEFAULT NULL COMMENT '社保缴费',
  fund_pay varchar(4000)   NULL DEFAULT NULL COMMENT '公积金缴费',
  other_pay varchar(4000)   NULL DEFAULT NULL COMMENT '其他福利缴费',
  accountant varchar(200)   NOT NULL COMMENT '核算人',
  remarks varchar(60)   NULL DEFAULT NULL COMMENT '备注',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_month(tenant_key, bill_month) USING BTREE
)    COMMENT = '福利核算主表' ;



CREATE TABLE hrsa_bill_detail  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '员工id',
  bill_month varchar(30)   NOT NULL COMMENT '账单月份',
  bill_status tinyint(1) NOT NULL COMMENT '账单状态 0-未归档 1-已归档',
  payment_status tinyint(1) NOT NULL COMMENT '缴纳状态 0-正常缴纳 1-补缴',
  supplementary_month varchar(50)   NULL DEFAULT NULL COMMENT '补缴月份',
  supplementary_projects varchar(50)   NULL DEFAULT NULL COMMENT '补缴项目',
  resource_from tinyint(1) NOT NULL COMMENT '数据来源 0-系统核算 1-临时数据',
  social_pay_org bigint(0) NULL DEFAULT NULL COMMENT '社保缴纳组织',
  social_account varchar(50)   NULL DEFAULT NULL COMMENT '社保账号',
  social_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '社保方案ID',
  social_payment_base_string varchar(512)   NULL DEFAULT NULL COMMENT '社保缴纳基数',
  fund_pay_org bigint(0) NULL DEFAULT NULL COMMENT '公积金缴纳组织',
  fund_account varchar(50)   NULL DEFAULT NULL COMMENT '公积金账号',
  supplement_fund_account varchar(50)   NULL DEFAULT NULL COMMENT '补充公积金账号',
  fund_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '公积金方案id',
  fund_payment_base_string varchar(512)   NULL DEFAULT NULL COMMENT '公积金缴纳基数',
  other_pay_org bigint(0) NULL DEFAULT NULL COMMENT '其他福利缴纳组织',
  other_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '其他福利方案id',
  other_payment_base_string varchar(512)   NULL DEFAULT NULL COMMENT '其他福利缴纳基数',
  social_per_json varchar(512)   NULL DEFAULT NULL COMMENT '社保个人缴费明细',
  social_per_sum varchar(512)   NULL DEFAULT NULL COMMENT '社保个人合计',
  fund_per_json varchar(512)   NULL DEFAULT NULL COMMENT '公积金个人缴费明细',
  fund_per_sum varchar(512)   NULL DEFAULT NULL COMMENT '公积金个人合计',
  other_per_json varchar(512)   NULL DEFAULT NULL COMMENT '其他福利个人缴费明细',
  other_per_sum varchar(512)   NULL DEFAULT NULL COMMENT '其他福利个人合计',
  per_sum varchar(512)   NULL DEFAULT NULL COMMENT '个人合计',
  social_com_json varchar(512)   NULL DEFAULT NULL COMMENT '社保单位缴费明细',
  social_com_sum varchar(512)   NULL DEFAULT NULL COMMENT '社保单位合计',
  fund_com_json varchar(512)   NULL DEFAULT NULL COMMENT '公积金单位缴费明细',
  fund_com_sum varchar(512)   NULL DEFAULT NULL COMMENT '公积金单位合计',
  other_com_json varchar(512)   NULL DEFAULT NULL COMMENT '其他福利单位缴费明细',
  other_com_sum varchar(512)   NULL DEFAULT NULL COMMENT '其他福利单位合计',
  com_sum varchar(512)   NULL DEFAULT NULL COMMENT '单位合计',
  social_sum varchar(512)   NULL DEFAULT NULL COMMENT '社保合计',
  fund_sum varchar(512)   NULL DEFAULT NULL COMMENT '公积金合计',
  other_sum varchar(512)   NULL DEFAULT NULL COMMENT '其他福利合计',
  total varchar(512)   NULL DEFAULT NULL COMMENT '合计',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_month(tenant_key, bill_month, employee_id) USING BTREE
)     COMMENT = '福利核算明细表' ;



CREATE TABLE hrsa_bill_detail_temp  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '员工id',
  bill_month varchar(30)   NOT NULL COMMENT '账单月份',
  bill_status tinyint(1) NOT NULL COMMENT '账单状态 0-未归档 1-已归档',
  payment_status tinyint(1) NOT NULL COMMENT '缴纳状态 0-正常缴纳 1-补缴',
  supplementary_month varchar(50)   NULL DEFAULT NULL COMMENT '补缴月份',
  supplementary_projects varchar(50)   NULL DEFAULT NULL COMMENT '补缴项目',
  resource_from tinyint(1) NOT NULL COMMENT '数据来源 0-系统核算 1-临时数据',
  social_pay_org bigint(0) NULL DEFAULT NULL COMMENT '社保缴纳组织',
  social_account varchar(50)   NULL DEFAULT NULL COMMENT '社保账号',
  social_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '社保方案ID',
  social_payment_base_string varchar(512)   NULL DEFAULT NULL COMMENT '社保缴纳基数',
  fund_pay_org bigint(0) NULL DEFAULT NULL COMMENT '公积金缴纳组织',
  fund_account varchar(50)   NULL DEFAULT NULL COMMENT '公积金账号',
  supplement_fund_account varchar(50)   NULL DEFAULT NULL COMMENT '补充公积金账号',
  fund_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '公积金方案id',
  fund_payment_base_string varchar(512)   NULL DEFAULT NULL COMMENT '公积金缴纳基数',
  other_pay_org bigint(0) NULL DEFAULT NULL COMMENT '其他福利缴纳组织',
  other_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '其他福利方案id',
  other_payment_base_string varchar(512)   NULL DEFAULT NULL COMMENT '其他福利缴纳基数',
  social_per_json varchar(512)   NULL DEFAULT NULL COMMENT '社保个人缴费明细',
  social_per_sum varchar(512)   NULL DEFAULT NULL COMMENT '社保个人合计',
  fund_per_json varchar(512)   NULL DEFAULT NULL COMMENT '公积金个人缴费明细',
  fund_per_sum varchar(512)   NULL DEFAULT NULL COMMENT '公积金个人合计',
  other_per_json varchar(512)   NULL DEFAULT NULL COMMENT '其他福利个人缴费明细',
  other_per_sum varchar(512)   NULL DEFAULT NULL COMMENT '其他福利个人合计',
  per_sum varchar(512)   NULL DEFAULT NULL COMMENT '个人合计',
  social_com_json varchar(512)   NULL DEFAULT NULL COMMENT '社保单位缴费明细',
  social_com_sum varchar(512)   NULL DEFAULT NULL COMMENT '社保单位合计',
  fund_com_json varchar(512)   NULL DEFAULT NULL COMMENT '公积金单位缴费明细',
  fund_com_sum varchar(512)   NULL DEFAULT NULL COMMENT '公积金单位合计',
  other_com_json varchar(512)   NULL DEFAULT NULL COMMENT '其他福利单位缴费明细',
  other_com_sum varchar(512)   NULL DEFAULT NULL COMMENT '其他福利单位合计',
  com_sum varchar(512)   NULL DEFAULT NULL COMMENT '单位合计',
  social_sum varchar(512)   NULL DEFAULT NULL COMMENT '社保合计',
  fund_sum varchar(512)   NULL DEFAULT NULL COMMENT '公积金合计',
  other_sum varchar(512)   NULL DEFAULT NULL COMMENT '其他福利合计',
  total varchar(512)   NULL DEFAULT NULL COMMENT '合计',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_month(tenant_key, bill_month, employee_id) USING BTREE
)    COMMENT = '福利核算明细临时表' ;



CREATE TABLE hrsa_bill_inspect  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '员工id',
  bill_month varchar(30)   NOT NULL COMMENT '账单月份',
  payment_status tinyint(1) NOT NULL COMMENT '缴纳状态 0-正常缴纳 1-补缴',
  supplementary_month varchar(50)   NULL DEFAULT NULL COMMENT '补缴月份',
  supplementary_projects varchar(50)   NULL DEFAULT NULL COMMENT '补缴项目',
  inspect_status tinyint(1) NOT NULL COMMENT '审核状态 0-忽略 1-待确认',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_month(tenant_key, bill_month, employee_id) USING BTREE
)    COMMENT = '核算检查明细表' ;



CREATE TABLE hrsa_check_result  (
  id bigint(0) NOT NULL COMMENT '主键id',
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算的id',
  salary_check_rule_id bigint(0) NOT NULL DEFAULT 0 COMMENT '校验规则的id',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '公式id',
  ignore_type tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否已经忽略。0：没有忽略、1：已经忽略',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_record_id(salary_acct_record_id) USING BTREE
)    COMMENT = '薪资核算结果校验异常' ;



CREATE TABLE hrsa_check_result_record  (
  id bigint(0) NOT NULL COMMENT '主键id',
  salary_acct_record_id bigint(0) NOT NULL COMMENT '薪资核算的id',
  salary_check_rule_id bigint(0) NOT NULL DEFAULT 0 COMMENT '校验规则的id',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '公式id',
  check_result_id bigint(0) NOT NULL DEFAULT 0 COMMENT '校验异常id',
  salary_acct_emp_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算人员表id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_record(salary_acct_record_id) USING BTREE,
  INDEX idx_check_result_id(check_result_id) USING BTREE
)    COMMENT = '薪资核算校验异常明细表' ;



CREATE TABLE hrsa_ck_result_detail_temp  (
  id bigint(0) NOT NULL COMMENT '主键id',
  salary_acct_emp_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算人员id',
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算的id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  salary_check_rule_id bigint(0) NOT NULL DEFAULT 0 COMMENT '核算规则的id',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '校验规则中的公式id',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  calculate_key varchar(50)   NOT NULL COMMENT '校验时生成的key，代表某一次校验',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_record(salary_acct_record_id) USING BTREE,
  INDEX idx_calculate_key(calculate_key) USING BTREE
)    COMMENT = '薪资核算结果校验异常明细临时存储' ;



CREATE TABLE hrsa_excel_acct_result  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套id',
  salary_acct_emp_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算人员id',
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算的id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资项目的id',
  result_value varchar(1000)   NOT NULL DEFAULT '' COMMENT '计算后的值',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  tax_agent_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人id',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_acct_emp_id(salary_acct_emp_id) USING BTREE,
  INDEX idx_record_employee(salary_acct_record_id, employee_id) USING BTREE
)     COMMENT = '线下excel核算的结果' ;



CREATE TABLE hrsa_formula  (
  id bigint(0) NOT NULL,
  name varchar(255)   NOT NULL COMMENT '名称',
  description varchar(255)   NULL DEFAULT NULL COMMENT '备注',
  module varchar(255)   NOT NULL COMMENT '模块',
  use_for varchar(255)   NULL DEFAULT NULL COMMENT '用途',
  reference_type varchar(255)   NOT NULL COMMENT '引用类型',
  return_type varchar(255)   NOT NULL COMMENT '返回类型',
  validate_type varchar(255)   NOT NULL COMMENT '校验类型',
  extend_param varchar(255)   NULL DEFAULT NULL COMMENT '扩展参数',
  formula varchar(4000)   NOT NULL COMMENT '公式内容',
  formulaRunScript varchar(4000)   NOT NULL COMMENT '公式脚本',
  creator bigint(0) NOT NULL COMMENT '创建人',
  delete_type int(0) NOT NULL COMMENT '是否删除0否1是',
  create_time datetime(0) NOT NULL COMMENT '创建时间',
  update_time datetime(0) NOT NULL COMMENT '删除时间',
  PRIMARY KEY (id) USING BTREE
)    ;



CREATE TABLE hrsa_formula_var  (
  id bigint(0) NOT NULL,
  name varchar(255)   NOT NULL COMMENT '名称',
  formula_id bigint(0) NOT NULL COMMENT '公式id',
  field_id varchar(255)   NOT NULL COMMENT '字段id',
  field_name varchar(500)   NOT NULL COMMENT '字段名称',
  field_type varchar(255)   NOT NULL COMMENT '字段类型，number,string',
  source varchar(255)   NOT NULL COMMENT '来源',
  order_index int(0) NOT NULL COMMENT '排序',
  creator bigint(0) NOT NULL COMMENT '创建人',
  delete_type int(0) NOT NULL COMMENT '是否删除,0否1是',
  create_time datetime(0) NOT NULL COMMENT '创建时间',
  update_time datetime(0) NOT NULL COMMENT '删除时间',
  PRIMARY KEY (id) USING BTREE
)    ;



CREATE TABLE hrsa_fund_archives  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '员工id',
  non_payment tinyint(1) NULL DEFAULT 0 COMMENT '暂不缴纳 0-缴纳 1-不缴纳',
  welfare_type tinyint(1) NOT NULL COMMENT '福利类型 1-社保，2-公积金，3-企业年金及其它福利',
  fund_start_time varchar(20)   NULL DEFAULT NULL COMMENT '公积金起始缴纳月',
  fund_end_time varchar(20)   NULL DEFAULT NULL COMMENT '公积金最后缴纳月',
  fund_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '公积金方案id',
  fund_account varchar(50)   NULL DEFAULT NULL COMMENT '公积金账号',
  supplement_fund_account varchar(50)   NULL DEFAULT NULL COMMENT '补充公积金账号',
  payment_organization bigint(0) NULL DEFAULT NULL COMMENT '公积金缴纳组织',
  under_take tinyint(1) NULL DEFAULT 2 COMMENT '公积金个人实际承担方 1-公司 2-个人',
  fund_payment_base_string varchar(4000)   NULL DEFAULT NULL COMMENT '公积金缴纳基数',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_sub_tenant(tenant_key, employee_id) USING BTREE,
  INDEX employee_id(employee_id) USING BTREE
)     COMMENT = '员工公积金档案表' ;



CREATE TABLE hrsa_insurance_category  (
  id bigint(0) NOT NULL ,
  insurance_name varchar(50)   NOT NULL COMMENT '险种名称',
  welfare_type tinyint(0) NOT NULL COMMENT '福利类型 1-社保，2-公积金，3-企业年金及其它福利',
  is_use tinyint(0) NOT NULL DEFAULT 1 COMMENT '是否启用 0-停用 1-启用',
  payment_scope varchar(10)   NULL DEFAULT NULL COMMENT '缴纳对象 1-公司 2-个人',
  data_type tinyint(1) NOT NULL DEFAULT 0 COMMENT '0-自定义 1-系统',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_ic_tenant(tenant_key, delete_type, welfare_type, insurance_name) USING BTREE
)     COMMENT = '险种信息表' ;



CREATE TABLE hrsa_other_archives  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '员工id',
  non_payment tinyint(1) NULL DEFAULT 0 COMMENT '暂不缴纳 0-缴纳 1-不缴纳',
  welfare_type tinyint(1) NOT NULL COMMENT '福利类型 1-社保，2-公积金，3-企业年金及其它福利',
  other_start_time varchar(20)   NULL DEFAULT NULL COMMENT '其他福利起始缴纳月',
  other_end_time varchar(20)   NULL DEFAULT NULL COMMENT '其他福利最后缴纳月',
  other_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '其他福利方案id',
  payment_organization bigint(0) NULL DEFAULT NULL COMMENT '其他福利缴纳组织',
  under_take tinyint(1) NULL DEFAULT 2 COMMENT '其他福利个人实际承担方 1-公司 2-个人',
  other_payment_base_string varchar(4000)   NULL DEFAULT NULL COMMENT '其他福利缴纳基数',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_sub_tenant(tenant_key, employee_id) USING BTREE,
  INDEX employee_id(employee_id) USING BTREE
)    COMMENT = '员工其他福利档案表' ;



CREATE TABLE hrsa_other_deduction  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '人员信息表的主键id',
  tax_agent_id bigint(0) NOT NULL COMMENT '个税扣缴义务人的主键id',
  declare_month datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '申报年月',
  business_healthy_insurance varchar(255)   NULL DEFAULT '0.00000' COMMENT '商业健康保险',
  tax_delay_endowment_insurance varchar(255)   NULL DEFAULT '' COMMENT '税延养老保险',
  other_deduction varchar(255)   NULL DEFAULT '' COMMENT '其他',
  deduction_allowed_donation varchar(255)   NULL DEFAULT '' COMMENT '准予扣除的捐赠额',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_declare_month(declare_month) USING BTREE,
  INDEX idx_employee_id(employee_id) USING BTREE
)    COMMENT = '数据采集-其他免税扣除表' ;




CREATE TABLE hrsa_salary_acct_emp  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算的id',
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  tax_agent_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人id',
  salary_month datetime(0) NOT NULL DEFAULT '0000-01-01 00:00:00' COMMENT '薪资所属月',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_record_employee(salary_acct_record_id, employee_id) USING BTREE
)     COMMENT = '薪资核算人员确认表' ;



CREATE TABLE hrsa_salary_acct_record  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_month date NOT NULL DEFAULT '0000-01-01' COMMENT '薪资所属月',
  tax_cycle date NOT NULL DEFAULT '0000-01-01' COMMENT '税款所属期',
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套id',
  status tinyint(0) NOT NULL DEFAULT 1 COMMENT '核算状态。1：未归档、2：已归档、3：已申报',
  acct_times int(0) NOT NULL DEFAULT 0 COMMENT '核算次数',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '备注',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(salary_sob_id) USING BTREE
)    COMMENT = '薪资核算记录' ;



CREATE TABLE hrsa_salary_acct_result  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套id',
  salary_acct_emp_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算人员id',
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算的id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  tax_agent_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人id',
  salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资项目的id',
  result_value varchar(1000)   NOT NULL DEFAULT '' COMMENT '计算后的值',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_acct_emp_id(salary_acct_emp_id) USING BTREE,
  INDEX idx_record_employee(salary_acct_record_id, employee_id) USING BTREE
)     COMMENT = '薪资核算结果表' ;



CREATE TABLE hrsa_salary_archive  (
  id bigint(0) NOT NULL,
  employee_id bigint(0) NOT NULL COMMENT '人员信息表的主键id',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_employee_id(employee_id) USING BTREE
)    COMMENT = '薪资档案表' ;



CREATE TABLE hrsa_salary_archive_dimission  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  dimission_time_interval varchar(20)   NOT NULL COMMENT '离职时段',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)     COMMENT = '薪资档案离职时段表' ;



CREATE TABLE hrsa_salary_archive_item  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_archive_id bigint(0) NOT NULL COMMENT '薪资档案表的主键id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员信息表的主键id',
  effective_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '生效时间',
  adjust_reason varchar(100)   NOT NULL DEFAULT '' COMMENT '调整原因',
  salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资项目id',
  item_value varchar(200)   NOT NULL DEFAULT '' COMMENT '薪资项目值',
  description varchar(200)   NOT NULL DEFAULT '' COMMENT '说明',
  operator bigint(0) NOT NULL DEFAULT 0 COMMENT '操作人',
  operate_time datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_salary_item_id(salary_item_id) USING BTREE,
  INDEX idx_effective_time(effective_time) USING BTREE
)     COMMENT = '薪资档案薪资项目表' ;



CREATE TABLE hrsa_salary_archive_tax_agent  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_archive_id bigint(0) NOT NULL COMMENT '薪资档案表的主键id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员信息表的主键id',
  effective_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '生效时间',
  adjust_reason varchar(100)   NOT NULL DEFAULT '' COMMENT '调整原因',
  tax_agent_id bigint(0) UNSIGNED NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人的主键id',
  operator bigint(0) NOT NULL DEFAULT 0 COMMENT '操作人',
  operate_time datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
  description varchar(200)   NULL DEFAULT '' COMMENT '说明',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE,
  INDEX idx_effective_time(effective_time) USING BTREE
)     COMMENT = '薪资档案个税扣缴义务人表' ;



CREATE TABLE hrsa_salary_item  (
  id bigint(0) NOT NULL,
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  code varchar(100)   NOT NULL DEFAULT '' COMMENT '编号',
  system_type tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否是系统项目。0：自定义项目、1：系统项目',
  sys_salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '系统薪资项目的id',
  category tinyint(0) NOT NULL DEFAULT 7 COMMENT '分类属性。1：税前加项、2：税前减项、3：税后加项、4：税后减项、5：统计项、6：税费项、7：其他项目',
  item_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '类型。1：工资薪金',
  use_default tinyint(0) NOT NULL DEFAULT 0 COMMENT '默认使用。0：默认不使用、1：默认使用',
  use_in_employee_salary tinyint(0) NOT NULL DEFAULT 0 COMMENT '薪资档案引用。0：薪资档案未引用、1：薪资档案引用',
  rounding_mode tinyint(0) NOT NULL DEFAULT 1 COMMENT '进位规则。1：四舍五入、2：原始数据、3：向上舍入、4：向下舍入',
  pattern tinyint(0) NOT NULL DEFAULT 5 COMMENT '保留的小数位数（0～5）',
  value_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '取值方式。1：手动输入、2：公式',
  datasource tinyint(0) NOT NULL DEFAULT 0 COMMENT '数据来源。0：输入、1：自定义公式、2：薪资项目、3：员工基本信息、4：薪资档案、5：往期累计情况、6：累计专项附加扣除、7：社保福利、8：其他扣除',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '公式id',
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  can_edit tinyint(0) NOT NULL DEFAULT 1 COMMENT '是否可以编辑',
  can_delete tinyint(0) NOT NULL DEFAULT 1 COMMENT '是否可以删除',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  data_type varchar(20)   NOT NULL DEFAULT 'number' COMMENT '字段类型。string：字符、number：数字',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE
)   COMMENT = '薪资项目表' ;



CREATE TABLE hrsa_salary_send  (
  id bigint(0) NOT NULL COMMENT '主键id',
  salary_month date NOT NULL,
  salary_accounting_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算id',
  salary_sob_id bigint(0) NOT NULL COMMENT '薪资账套id',
  send_num int(0) NOT NULL DEFAULT 0 COMMENT '已发送数量',
  send_total int(0) NOT NULL DEFAULT 0 COMMENT '发送总数',
  last_send_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后发送时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_accounting_id(salary_accounting_id) USING BTREE
)    COMMENT = '工资单发放表' ;



CREATE TABLE hrsa_salary_send_info  (
  id bigint(0) NOT NULL COMMENT '主键id',
  salary_send_id bigint(0) NOT NULL COMMENT '工资单发放id',
  salary_month date NOT NULL,
  salary_acct_record_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资核算表的主键id',
  tax_agent_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人表的主键id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员表的主键id',
  send_status int(0) NOT NULL DEFAULT 0 COMMENT '发送状态。0：未发送、1：已发送、2：已撤回',
  send_time datetime(0) NULL DEFAULT NULL,
  salary_template text   NULL COMMENT '工资单模板设置内容',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_send(salary_send_id) USING BTREE,
  INDEX idx_salary_acct_record(salary_acct_record_id) USING BTREE
)    COMMENT = '工资单发放信息表' ;



CREATE TABLE hrsa_salary_sob  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  income_category tinyint(0) NOT NULL DEFAULT 1 COMMENT '应税项目。1:正常工资薪金所得',
  salary_cycle_type tinyint(0) NOT NULL DEFAULT 3 COMMENT '薪资周期。1:上上月、2:上月、3:本月、4:下月',
  salary_cycle_from_day tinyint(0) NOT NULL DEFAULT 1 COMMENT '薪资周期的起始日期',
  tax_cycle_type tinyint(0) NOT NULL DEFAULT 3 COMMENT '税款所属期。1:上上月、2:上月、3:本月、4:下月',
  attend_cycle_type tinyint(0) NOT NULL DEFAULT 3 COMMENT '考勤周期。1:上上月、2:上月、3:本月、4:下月',
  attend_cycle_from_day tinyint(0) NOT NULL DEFAULT 1 COMMENT '考勤周期的起始日期',
  social_security_cycle_type tinyint(0) NOT NULL DEFAULT 3 COMMENT '社保福利所属期。1:上上月、2:上月、3:本月、4:下月',
  disable tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否禁用。0：正常使用、1：禁用',
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE
)     COMMENT = '薪资帐套表' ;



CREATE TABLE hrsa_salary_sob_adjust_rule  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_sob_id bigint(0) NOT NULL COMMENT '薪资帐套id',
  salary_item_id bigint(0) NOT NULL COMMENT '薪资项目id',
  day_of_month tinyint(0) NOT NULL DEFAULT 0 COMMENT '生效日期',
  before_adjustment_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '在生效日期之前调薪如何调整。1：取调薪前薪资、2：取调薪后薪资、3：平均值、4：分段计薪',
  after_adjustment_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '在生效日期之后调薪如何调整。1：取调薪前薪资、2：取调薪后薪资、3：平均值、4：分段计薪',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(salary_sob_id) USING BTREE
)    COMMENT = '薪资账套的调薪计薪规则表' ;



CREATE TABLE hrsa_salary_sob_check_rule  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套的id',
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '公式id',
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(salary_sob_id) USING BTREE
)    COMMENT = '薪资帐套校验规则表' ;


CREATE TABLE hrsa_salary_sob_default_item  (
  id bigint(0) NOT NULL COMMENT '主键id',
  income_category tinyint(0) NOT NULL DEFAULT 1 COMMENT '薪资类型。1：正常工资薪金所得',
  sys_salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '系统默认的薪资项目id',
  can_edit tinyint(0) NOT NULL DEFAULT 1 COMMENT '能否编辑。0：不能编辑、1：能编辑',
  can_delete tinyint(0) NOT NULL DEFAULT 1 COMMENT '能否删除。0：不能删除、1：能删除',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  sob_default_item_group_id bigint(0) NOT NULL COMMENT '薪资账套默认薪资项目分类的id',
  sorted_index int(0) NOT NULL COMMENT '显示顺序',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE
)    COMMENT = '薪资账套默认添加的薪资项目' ;



CREATE TABLE hrsa_salary_sob_emp_field  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套id',
  field_code varchar(100)   NOT NULL DEFAULT '' COMMENT '字段CODE',
  sorted_index int(0) NOT NULL DEFAULT 0 COMMENT '排序字段',
  can_delete tinyint(0) NOT NULL DEFAULT 1 COMMENT '是否可以删除。0：不可删除、1：可以删除',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(salary_sob_id) USING BTREE
)    COMMENT = '薪资帐套员工信息字段' ;


CREATE TABLE hrsa_salary_sob_item  (
  id bigint(0) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套的id',
  salary_item_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资项目的id',
  salary_sob_item_group_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套的薪资项目分类id',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '公式id',
  sorted_index int(0) NOT NULL DEFAULT 0 COMMENT '在薪资项目分类中的排列顺序',
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(tenant_key) USING BTREE,
  INDEX idx_salary_item_id(salary_item_id) USING BTREE
)     COMMENT = '薪资帐套薪资项目表' ;



CREATE TABLE hrsa_salary_sob_item_group  (
  id bigint(0) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套的id',
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  sorted_index int(0) NOT NULL DEFAULT 0,
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(salary_sob_id) USING BTREE
)     COMMENT = '薪资帐套薪资项目分类' ;


CREATE TABLE hrsa_salary_sob_range  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  salary_sob_id bigint(0) NOT NULL DEFAULT 0 COMMENT '薪资帐套的id',
  target_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '对象类型。1：人员、2：部门、3：岗位',
  target_id bigint(0) NOT NULL DEFAULT 0 COMMENT '对象id',
  employee_status tinyint(0) NOT NULL DEFAULT 0 COMMENT '人员状态。0：全部、1：在职、2：离职',
  include_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '是包含还是排除 0：排序、1：包含',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_salary_sob_id(salary_sob_id) USING BTREE
)     COMMENT = '薪资帐套人员范围表' ;



CREATE TABLE hrsa_salary_template  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  salary_sob_id bigint(0) NOT NULL COMMENT '薪资账套表的主键id',
  use_type int(0) NOT NULL DEFAULT 0 COMMENT '使用类型。0：普通、1：默认',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '备注',
  email_status int(0) NOT NULL DEFAULT 0 COMMENT '邮箱开启状态。0：关、1：开',
  send_email_id bigint(0) NOT NULL DEFAULT 0 COMMENT '发送地址:公共邮箱账号id',
  msg_status int(0) NOT NULL DEFAULT 0 COMMENT '消息中心开启状态。0：关、1：开',
  theme varchar(100)   NOT NULL DEFAULT '' COMMENT '主题',
  background varchar(2000)   NULL DEFAULT NULL,
  text_content varchar(100)   NOT NULL DEFAULT '' COMMENT '文本内容',
  text_content_position int(0) NOT NULL DEFAULT 0 COMMENT '文本内容显示位置。1：薪资项目前、2：薪资项目后',
  salary_item_null_status int(0) NOT NULL DEFAULT 0 COMMENT '薪资项为空时不显示开启状态。0：关、1：开',
  salary_item_zero_status int(0) NOT NULL DEFAULT 0 COMMENT '薪资项为0时不显示开启状态。0：关、1：开',
  salary_item_setting text   NOT NULL COMMENT '薪资项目设置',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)     COMMENT = '工资单模板' ;




CREATE TABLE hrsa_scheme_detail  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  insurance_id bigint(0) NOT NULL COMMENT '险种id',
  primary_id bigint(0) NOT NULL COMMENT '社保方案主表id',
  effective_time varchar(20)   NULL DEFAULT NULL COMMENT '生效年月(含)',
  expiration_time varchar(20)   NULL DEFAULT NULL COMMENT '失效年月(不含)',
  is_payment tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否缴费 0-否 1-是',
  payment_scope tinyint(1) NOT NULL COMMENT '缴纳对象 1-公司 2-个人',
  upper_limit varchar(1024)   NULL DEFAULT NULL COMMENT '基数上限',
  lower_limit varchar(1024)   NULL DEFAULT NULL COMMENT '基数下限',
  payment_proportion varchar(1024)   NULL DEFAULT NULL COMMENT '缴纳比例',
  fixed_cost varchar(1024)   NULL DEFAULT NULL COMMENT '固定费用',
  valid_num tinyint(1) NULL DEFAULT 2 COMMENT '有效小数位',
  rentention_rule tinyint(1) NULL DEFAULT NULL COMMENT '进位规则',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_ic_tenant(tenant_key, delete_type, insurance_id) USING BTREE,
  INDEX idx_primary_id(tenant_key, primary_id) USING BTREE
)    COMMENT = '社保方案明细主表' ;



CREATE TABLE hrsa_sob_default_emp_field  (
  id bigint(0) NOT NULL COMMENT '主键id',
  field_code varchar(30)   NOT NULL DEFAULT '' COMMENT '字段CODE',
  sorted_index int(0) NOT NULL DEFAULT 0 COMMENT '排序字段',
  can_delete tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否可以删除。0：不可删除、1：可以删除',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE
)    COMMENT = '薪资帐套默认员工信息字段' ;



CREATE TABLE hrsa_sob_default_item_group  (
  id bigint(0) NOT NULL COMMENT '主键id',
  income_category tinyint(0) NOT NULL DEFAULT 1 COMMENT '薪资类型',
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  sorted_index int(0) NOT NULL DEFAULT 0,
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE
)    COMMENT = '薪资帐套默认的薪资项目分类' ;



CREATE TABLE hrsa_social_archives  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  employee_id bigint(0) NOT NULL COMMENT '员工id',
  non_payment tinyint(1) NULL DEFAULT 0 COMMENT '暂不缴纳 0-缴纳 1-不缴纳',
  welfare_type tinyint(1) NOT NULL COMMENT '福利类型 1-社保，2-公积金，3-企业年金及其它福利',
  social_start_time varchar(20)   NULL DEFAULT NULL COMMENT '社保起始缴纳月',
  social_end_time varchar(20)   NULL DEFAULT NULL COMMENT '社保最后缴纳月',
  social_scheme_id bigint(0) NULL DEFAULT NULL COMMENT '社保方案ID',
  social_account varchar(50)   NULL DEFAULT NULL COMMENT '社保账号',
  payment_organization bigint(0) NULL DEFAULT NULL COMMENT '社保缴纳组织',
  under_take tinyint(1) NULL DEFAULT 2 COMMENT '社保个人实际承担方 1-公司 2-个人',
  social_payment_base_string varchar(4000)   NULL DEFAULT NULL COMMENT '社保缴纳基数',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_sub_tenant(tenant_key, employee_id) USING BTREE,
  INDEX employee_id(employee_id) USING BTREE
)     COMMENT = '员工社保档案表' ;



CREATE TABLE hrsa_social_security_scheme  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  payment_area varchar(100)   NOT NULL COMMENT '缴区',
  payment_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '缴纳类型 1-城镇 2-农村',
  scheme_name varchar(100)   NOT NULL COMMENT '方案名称',
  welfare_type tinyint(1) NOT NULL COMMENT '福利类型 1-社保，2-公积金，3-企业年金及其它福利',
  is_use tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否启用 0-停用 1-启用',
  remarks varchar(30)   NULL DEFAULT '' COMMENT '备注',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_sss_tenant(tenant_key, welfare_type, is_use) USING BTREE
)     COMMENT = '社保方案主表' ;



CREATE TABLE hrsa_sys_salary_item  (
  id bigint(0) NOT NULL COMMENT '主键id',
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  code varchar(100)   NOT NULL DEFAULT '' COMMENT '编号',
  system_type tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否是系统项目。0：自定义项目、1：系统项目',
  category tinyint(0) NOT NULL DEFAULT 7 COMMENT '分类属性。1：税前加项、2：税前减项、3：税后加项、4：税后减项、5：统计项、6：税费项、7：其他项目',
  item_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '类型。1：工资薪金',
  use_default tinyint(0) NOT NULL DEFAULT 0 COMMENT '默认使用。0：默认不使用、1：默认使用',
  use_in_employee_salary tinyint(0) NOT NULL DEFAULT 0 COMMENT '薪资档案引用。0：薪资档案未引用、1：薪资档案引用',
  rounding_mode tinyint(0) NOT NULL DEFAULT 1 COMMENT '进位规则。1：四舍五入、2：原始数据、3：向上舍入、4：向下舍入',
  pattern tinyint(0) NOT NULL DEFAULT 5 COMMENT '保留的小数位数（0～5）',
  value_type tinyint(0) NOT NULL DEFAULT 1 COMMENT '取值方式。1：手动输入、2：公式',
  datasource tinyint(0) NOT NULL DEFAULT 0 COMMENT '数据来源。0：输入、1：自定义公式、2：薪资项目、3：员工基本信息、4：薪资档案、5：往期累计情况、6：累计专项附加扣除、7：社保福利、8：其他扣除',
  formula_id bigint(0) NOT NULL DEFAULT 0 COMMENT '公式id',
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '描述',
  can_edit tinyint(0) NOT NULL DEFAULT 1 COMMENT '是否可以编辑',
  can_delete tinyint(0) NOT NULL DEFAULT 1 COMMENT '是否可以删除',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  data_type varchar(20)   NOT NULL DEFAULT 'number' COMMENT '字段类型。string：字符、number：数字',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE
)    COMMENT = '系统内置薪资项目表' ;



CREATE TABLE hrsa_sys_tax_rate_base  (
  id bigint(0) NOT NULL COMMENT '主键',
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  system_type tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否是系统默认的。0：自定义、1：系统默认',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)    COMMENT = '系统内置的税率表' ;



CREATE TABLE hrsa_sys_tax_rate_detail  (
  id bigint(0) NOT NULL COMMENT '主键',
  base_id bigint(0) NOT NULL DEFAULT 0 COMMENT '税率主表hrsa_tax_rate_base的id',
  index_num int(0) NOT NULL DEFAULT 0 COMMENT '序号',
  income_lower_limit decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '收入上限（含）',
  income_upper_limit decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '收入下限（不含）',
  duty_free_value decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '免税标准-固定值',
  duty_free_rate decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '免税标准-比例',
  taxable_income_ll decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '应纳税所得额上限（含）',
  taxable_income_ul decimal(15, 5) NOT NULL DEFAULT 0.00000 COMMENT '应纳税所得额下限（不含）',
  tax_rate decimal(15, 5) NOT NULL DEFAULT 0.00000 COMMENT '税率',
  tax_deduction decimal(15, 5) NOT NULL DEFAULT 0.00000 COMMENT '速算扣除数',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_base(tenant_key, base_id) USING BTREE
)    COMMENT = '系统内置的税率明细表' ;



CREATE TABLE hrsa_tax_agent  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)   COMMENT = '个税扣缴义务人表' ;



CREATE TABLE hrsa_tax_declaration  (
  id bigint(0) NOT NULL ,
  salary_month datetime(0) NOT NULL DEFAULT '0000-01-01 00:00:00' COMMENT '薪资所属月',
  tax_cycle datetime(0) NOT NULL DEFAULT '0000-01-01 00:00:00' COMMENT '税款所属期',
  tax_agent_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税扣缴义务人id',
  description varchar(1000)   NOT NULL DEFAULT '' COMMENT '备注',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_tenant_tax_cycle(tenant_key, tax_cycle) USING BTREE,
  INDEX idx_tenant_salary_month(tenant_key, salary_month) USING BTREE
)     COMMENT = '个税申报表' ;



CREATE TABLE hrsa_tax_declaration_detail  (
  id bigint(0) NOT NULL COMMENT '主键id',
  tax_declaration_id bigint(0) NOT NULL DEFAULT 0 COMMENT '个税申报记录的id',
  employee_id bigint(0) NOT NULL DEFAULT 0 COMMENT '人员id',
  field_code varchar(100)   NOT NULL DEFAULT '' COMMENT '字段code',
  field_value varchar(1000)   NOT NULL DEFAULT '' COMMENT '字段的值',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant(tenant_key) USING BTREE,
  INDEX idx_tax_declaration_id(tax_declaration_id) USING BTREE
)    COMMENT = '个税申报表详情' ;



CREATE TABLE hrsa_tax_rate_base  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  name varchar(100)   NOT NULL DEFAULT '' COMMENT '名称',
  system_type tinyint(0) NOT NULL DEFAULT 0 COMMENT '是否是系统默认的。0：自定义、1：系统默认',
  description varchar(100)   NOT NULL DEFAULT '' COMMENT '描述',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_key(tenant_key) USING BTREE
)     COMMENT = '税率主表' ;



CREATE TABLE hrsa_tax_rate_detail  (
  id bigint(0) NOT NULL AUTO_INCREMENT,
  base_id bigint(0) NOT NULL DEFAULT 0 COMMENT '税率主表hrsa_tax_rate_base的id',
  index_num int(0) NOT NULL DEFAULT 0 COMMENT '序号',
  income_upper_limit decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '收入上限（含）',
  income_lower_limit decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '收入下限（不含）',
  duty_free_value decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '免税标准-固定值',
  duty_free_rate decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '免税标准-比例',
  taxable_income_ul decimal(15, 5) NULL DEFAULT 0.00000 COMMENT '应纳税所得额上限（含）',
  taxable_income_ll decimal(15, 5) NOT NULL DEFAULT 0.00000 COMMENT '应纳税所得额下限（不含）',
  tax_rate decimal(15, 5) NOT NULL DEFAULT 0.00000 COMMENT '税率',
  tax_deduction decimal(15, 5) NOT NULL DEFAULT 0.00000 COMMENT '速算扣除数',
  create_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  update_time datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',
  creator bigint(0) NOT NULL DEFAULT 0 COMMENT '创建人',
  delete_type int(0) NOT NULL DEFAULT 0 COMMENT '是否已删除。0：未删除、1：已删除',
  tenant_key varchar(10)   NOT NULL DEFAULT '' COMMENT '租户ID',
  PRIMARY KEY (id) USING BTREE,
  INDEX idx_tenant_base(tenant_key, base_id) USING BTREE
)     COMMENT = '税率明细表' ;







INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214787, '工资薪金合计', 'wagesTotal', 1, 5, 22, 1, 0, 2, 2, 2, 1, 1651736817711, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:58', '2022-05-10 16:03:02', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214788, '全年一次性奖金合计', 'annualBonusTotal', 1, 5, 22, 0, 0, 2, 2, 2, 1, 1651737358294, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:58', '2022-05-10 16:03:07', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214789, '税前扣款合计', 'preTaxDeductionsTotal', 1, 5, 22, 1, 0, 2, 2, 2, 1, 1651737635353, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:58', '2022-05-10 16:03:22', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214790, '本月（次）应税收入合计', 'income', 1, 5, 22, 1, 0, 2, 2, 2, 0, 1651737859216, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:58', '2022-05-10 16:03:25', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214791, '当前累计应税收入合计', 'addUpIncome', 1, 5, 22, 1, 0, 2, 2, 2, 0, 1651738034028, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:58', '2022-05-10 16:03:28', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214792, '养老个人', 'endowmentInsurance', 1, 2, 10, 1, 0, 2, 2, 2, 7, 1651749914746, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214793, '医疗个人', 'medicalInsurance', 1, 2, 10, 1, 0, 2, 2, 2, 7, 1651749958879, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214795, '失业个人', 'unemploymentInsurance', 1, 2, 10, 1, 0, 2, 2, 2, 7, 1651750005281, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214796, '公积金个人', 'housingProvidentFund', 1, 2, 10, 1, 0, 2, 2, 2, 7, 1651750034689, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214797, '本月（次）专项扣除合计', 'specialDeduction', 1, 5, 22, 1, 0, 2, 2, 2, 7, 1651738826550, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 16:03:40', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214798, '当前累计专项扣除合计', 'addUpSpecialDeduction', 1, 5, 22, 1, 0, 2, 2, 2, 7, 1651739000845, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214799, '累计子女教育', 'addUpChildEducation', 1, 2, 11, 1, 0, 2, 2, 2, 6, 1651739053212, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214800, '累计住房贷款利息', 'addUpHousingLoanInterest', 1, 2, 11, 1, 0, 2, 2, 2, 6, 1651739100651, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214801, '累计住房租金', 'addUpHousingRent', 1, 2, 11, 1, 0, 2, 2, 2, 6, 1651739151122, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214802, '累计继续教育', 'addUpContinuingEducation', 1, 2, 11, 1, 0, 2, 2, 2, 6, 1651739212437, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214803, '累计赡养老人', 'addUpSupportElderly', 1, 2, 11, 1, 0, 2, 2, 2, 6, 1651739310959, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214804, '当前累计专项附加扣除合计', 'addUpSpeAddiDeduction', 1, 5, 22, 1, 0, 2, 2, 2, 6, 1651739411365, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214805, '本月（次）其他扣除合计', 'otherDeduction', 1, 5, 22, 0, 0, 2, 2, 2, 8, 1651739815651, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214806, '当前累计其他扣除合计', 'addUpOtherDeduction', 1, 5, 22, 0, 0, 2, 2, 2, 5, 1651740238860, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214807, '本月（次）减除费用', 'subtraction', 1, 7, 19, 1, 0, 2, 2, 2, 1, 1651740311026, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:56:11', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214808, '当前累计减除费用', 'addUpSubtraction', 1, 5, 22, 1, 0, 2, 2, 2, 5, 1651740397225, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:32:59', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214809, '本月（次）工资薪金税税率', 'taxRate', 1, 7, 19, 1, 0, 2, 2, 2, 1, 1651742185837, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214810, '本月（次）工资薪金税速算扣除数', 'quickDeductionFactor', 1, 7, 19, 1, 0, 2, 2, 2, 1, 1651742702735, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214811, '当前累计应纳税所得额', 'addUpTaxableIncome', 1, 5, 22, 1, 0, 2, 2, 2, 5, 1651745445982, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 16:04:12', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214812, '当前累计应纳税额', 'addUpTaxPayable', 1, 7, 19, 1, 0, 2, 2, 2, 1, 1651748888864, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 16:04:14', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214813, '当前累计已扣缴税额合计', 'addUpAdvanceTax', 1, 5, 22, 1, 0, 2, 2, 2, 5, 1651748978482, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 16:04:18', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214814, '本月（次）应补税额', 'refundedOrSupplementedTax', 1, 6, 16, 1, 0, 2, 2, 2, 1, 1651749111981, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674853617092214815, '本月（次）实发薪资合计', 'netSalaryTotal', 1, 5, 22, 1, 0, 2, 2, 2, 1, 1651749240004, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 16:04:24', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674861648655892480, '基本工资', 'baseSalary', 1, 1, 1, 1, 1, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:57:46', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674861768948531201, '岗位工资', 'postSalary', 1, 1, 1, 1, 1, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:57:57', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674861880508628992, '考勤扣款', 'attendanceDeduction', 1, 2, 9, 1, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:58:04', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093121, '税后报销合计', 'afterTaxReimbursementTotal', 1, 5, 22, 0, 0, 3, 2, 1, 1, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:58:06', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093122, '年金个人', 'annuity', 1, 2, 12, 0, 0, 2, 2, 2, 7, 1651749398360, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093123, '商业健康保险', 'commercialHealthInsurance', 1, 2, 12, 0, 0, 2, 2, 2, 8, 1651749448800, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:00', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093124, '税延养老保险', 'taxDeferredEndowmentInsurance', 1, 2, 12, 0, 0, 2, 2, 2, 8, 1651749487187, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093125, '财产原值', 'originalValueOfProperty', 1, 2, 12, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:58:29', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093126, '允许扣除的税费', 'deductedTax', 1, 2, 12, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:58:42', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093127, '其他', 'other', 1, 2, 12, 0, 0, 2, 2, 2, 8, 1651749540147, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093128, '本月（次）费用', 'fee', 1, 7, 19, 0, 0, 2, 2, 1, 0, 0, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093129, '本月（次）免税收入', 'taxFreeIncome', 1, 7, 19, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:58:54', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674914626953093130, '减按计税比例', 'lessTaxProportion', 1, 7, 19, 0, 0, 2, 2, 1, 0, 0, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674916065864646657, '税后调整合计', 'afterTaxAdjustmentTotal', 1, 5, 22, 0, 0, 2, 2, 1, 1, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:59:09', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674916065864646658, '当前累计减免税额合计', 'addUpTaxDeduction', 1, 5, 22, 0, 0, 2, 2, 1, 5, 0, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674916065864646659, '本月（次）准允扣除的捐赠额', 'allowedDonation', 1, 5, 22, 0, 0, 2, 2, 2, 8, 1651749595061, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674916065864646660, '当前累计准备扣除的捐赠额', 'addUpAllowedDonation', 1, 5, 22, 0, 0, 2, 2, 2, 5, 1651749675268, '', 0, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 15:54:31', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674916065864646661, '本月（次）减免税额', 'taxDeduction', 1, 5, 22, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:01', '2022-05-10 16:00:25', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674916065864646662, '税后扣款合计', 'afterTaxDeductionsTotal', 1, 5, 22, 0, 0, 2, 2, 1, 1, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:02', '2022-05-10 16:00:37', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674919424520683521, '税后扣款', 'afterTaxDeductions', 1, 4, 15, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:02', '2022-05-10 16:00:39', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674919682288984064, '税后报销', 'afterTaxReimbursement', 1, 3, 13, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:02', '2022-05-10 16:00:40', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674919776783499264, '税后调整', 'afterTaxAdjustment', 1, 3, 14, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:02', '2022-05-10 16:00:48', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (674920588574261248, '年终奖', 'annualBonus', 1, 1, 2, 0, 0, 2, 2, 1, 0, 0, '', 1, 1, 0, 0, 'all_teams', '2022-03-28 10:33:02', '2022-05-10 16:00:51', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (697532371614588928, '当前累计社保个人合计', 'addUpSocialSecurityTotal', 1, 7, 1, 1, 0, 2, 2, 2, 0, 1651801433504, '', 0, 1, 0, 0, 'all_teams', '2022-03-07 10:22:55', '2022-05-06 09:44:23', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (697532667749400576, '当前累计公积金个人合计', 'addUpAccumulationFundTotal', 1, 7, 1, 1, 0, 2, 2, 2, 0, 1651801586972, '', 0, 1, 0, 0, 'all_teams', '2022-03-07 10:22:55', '2022-05-06 09:46:40', 'number');
INSERT INTO hrsa_sys_salary_item(id, name, code, system_type, category, item_type, use_default, use_in_employee_salary, rounding_mode, pattern, value_type, datasource, formula_id, description, can_edit, can_delete, creator, delete_type, tenant_key, create_time, update_time, data_type) VALUES (697536344384012289, '当前累计企业（职业）年金及其他福利个人合计', 'addUpEnterpriseAndOther', 1, 7, 1, 1, 0, 2, 2, 2, 0, 1651801667770, '', 0, 1, 0, 0, 'all_teams', '2022-03-07 10:22:56', '2022-05-06 09:48:07', 'number');




INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651736817711, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.基本工资}+{薪资项目.岗位工资}', 'salaryItem_baseSalary+salaryItem_postSalary', 1, 0, '2022-05-05 15:46:58', '2022-05-05 15:46:58');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651737358294, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.年终奖}', 'salaryItem_annualBonus', 1, 0, '2022-05-05 15:55:58', '2022-05-05 15:55:58');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651737635353, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.考勤扣款}', 'salaryItem_attendanceDeduction', 1, 0, '2022-05-05 16:00:35', '2022-05-05 16:00:35');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651737859216, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.工资薪金合计}+{薪资项目.全年一次性奖金合计}-{薪资项目.税前扣款合计}', 'salaryItem_wagesTotal+salaryItem_annualBonusTotal-salaryItem_preTaxDeductionsTotal', 1, 0, '2022-05-05 16:04:19', '2022-05-05 16:04:19');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651738034028, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月（次）应税收入合计}+{往期累计情况.累计收入额}', 'salaryItem_income+addUpSituation_addUpIncome', 1, 0, '2022-05-05 16:07:14', '2022-05-05 16:07:14');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749914746, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.养老保险个人}', 'welfare_9001socialPer', 1, 0, '2022-05-05 19:25:15', '2022-05-05 19:25:15');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749958879, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.医疗保险个人}', 'welfare_9002socialPer', 1, 0, '2022-05-05 19:25:59', '2022-05-05 19:25:59');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651750005281, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.失业保险个人}', 'welfare_9004socialPer', 1, 0, '2022-05-05 19:26:45', '2022-05-05 19:26:45');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651750034689, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.住房公积金个人}', 'welfare_9006fundPer', 1, 0, '2022-05-05 19:27:15', '2022-05-05 19:27:15');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651738826550, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.养老个人}+{薪资项目.医疗个人}+{薪资项目.失业个人}+{薪资项目.公积金个人}', 'salaryItem_endowmentInsurance+salaryItem_medicalInsurance+salaryItem_unemploymentInsurance+salaryItem_housingProvidentFund', 1, 0, '2022-05-05 16:20:27', '2022-05-05 16:20:27');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739000845, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月（次）专项扣除合计}+{往期累计情况.累计社保个人合计}+{往期累计情况.累计公积金个人合计}', 'salaryItem_specialDeduction+addUpSituation_addUpSocialSecurityTotal+addUpSituation_addUpAccumulationFundTotal', 1, 0, '2022-05-05 16:23:21', '2022-05-05 16:23:21');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739053212, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{累计专项附加扣除.累计子女教育}', 'addUpDeductions_addUpChildEducation', 1, 0, '2022-05-05 16:24:13', '2022-05-05 16:24:13');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739100651, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{往期累计情况.累计住房贷款利息}', 'addUpSituation_addUpHousingLoanInterest', 1, 0, '2022-05-05 16:25:01', '2022-05-05 16:25:01');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739151122, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{往期累计情况.累计住房租金}', 'addUpSituation_addUpHousingRent', 1, 0, '2022-05-05 16:25:51', '2022-05-05 16:25:51');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739212437, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{往期累计情况.累计继续教育}', 'addUpSituation_addUpContinuingEducation', 1, 0, '2022-05-05 16:26:52', '2022-05-05 16:26:52');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739310959, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{往期累计情况.累计赡养老人}', 'addUpSituation_addUpSupportElderly', 1, 0, '2022-05-05 16:28:31', '2022-05-05 16:28:31');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739411365, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.累计子女教育}+{薪资项目.累计住房贷款利息}+{薪资项目.累计住房租金}+{薪资项目.累计继续教育}+{薪资项目.累计赡养老人}', 'salaryItem_addUpChildEducation+salaryItem_addUpHousingLoanInterest+salaryItem_addUpHousingRent+salaryItem_addUpContinuingEducation+salaryItem_addUpSupportElderly', 1, 0, '2022-05-05 16:30:11', '2022-05-05 16:30:11');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651739815651, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.年金个人}+{薪资项目.商业健康保险}+{薪资项目.税延养老保险}+{薪资项目.财产原值}+{薪资项目.允许扣除的税费}+{薪资项目.其他}', 'salaryItem_annuity+salaryItem_commercialHealthInsurance+salaryItem_taxDeferredEndowmentInsurance+salaryItem_originalValueOfProperty+salaryItem_deductedTax+salaryItem_other', 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651740238860, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月（次）其他扣除合计}+{往期累计情况.累计其他免税扣除}+{往期累计情况.累计企业（职业）年金及其他福利}', 'salaryItem_otherDeduction+addUpSituation_addUpOtherDeduction+addUpSituation_addUpEnterpriseAndOther', 1, 0, '2022-05-05 16:43:59', '2022-05-05 16:43:59');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651740311026, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '5000', '5000', 1, 0, '2022-05-05 16:45:11', '2022-05-05 16:45:11');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651740397225, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月（次）减除费用}+{往期累计情况.累计减除费用}', 'salaryItem_subtraction+addUpSituation_addUpSubtraction', 1, 0, '2022-05-05 16:46:37', '2022-05-05 16:46:37');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651742185837, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', 'if({薪资项目.当前累计应纳税所得额}<=0){0;}else if({薪资项目.当前累计应纳税所得额}<=36000){0.03;}else if({薪资项目.当前累计应纳税所得额}<=144000){0.1;}else if({薪资项目.当前累计应纳税所得额}<=300000){0.2;}else if({薪资项目.当前累计应纳税所得额}<=420000){0.25;}else if({薪资项目.当前累计应纳税所得额}<=660000){0.3;}else if({薪资项目.当前累计应纳税所得额}<=960000){0.35;}else{0.45;}', 'if(salaryItem_addUpTaxableIncome<=0){0;}else if(salaryItem_addUpTaxableIncome<=36000){0.03;}else if(salaryItem_addUpTaxableIncome<=144000){0.1;}else if(salaryItem_addUpTaxableIncome<=300000){0.2;}else if(salaryItem_addUpTaxableIncome<=420000){0.25;}else if(salaryItem_addUpTaxableIncome<=660000){0.3;}else if(salaryItem_addUpTaxableIncome<=960000){0.35;}else{0.45;}', 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651742702735, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', 'if({薪资项目.当前累计应纳税所得额}<=36000){0;}else if({薪资项目.当前累计应纳税所得额}<=144000){2520;}else if({薪资项目.当前累计应纳税所得额}<=300000){16920;}else if({薪资项目.当前累计应纳税所得额}<=420000){31920;}else if({薪资项目.当前累计应纳税所得额}<=660000){52920;}else if({薪资项目.当前累计应纳税所得额}<=960000){85920;}else{181920;}', 'if(salaryItem_addUpTaxableIncome<=36000){0;}else if(salaryItem_addUpTaxableIncome<=144000){2520;}else if(salaryItem_addUpTaxableIncome<=300000){16920;}else if(salaryItem_addUpTaxableIncome<=420000){31920;}else if(salaryItem_addUpTaxableIncome<=660000){52920;}else if(salaryItem_addUpTaxableIncome<=960000){85920;}else{181920;}', 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651745445982, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.当前累计应税收入合计}-{薪资项目.当前累计专项扣除合计}-{薪资项目.当前累计专项附加扣除合计}-{薪资项目.当前累计其他扣除合计}-{薪资项目.当前累计减除费用}-{薪资项目.当前累计准备扣除的捐赠额}', 'salaryItem_addUpIncome-salaryItem_addUpSpecialDeduction-salaryItem_addUpSpeAddiDeduction-salaryItem_addUpOtherDeduction-salaryItem_addUpSubtraction-salaryItem_addUpAllowedDonation', 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651748888864, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.当前累计应纳税所得额}*{薪资项目.本月（次）工资薪金税税率}-{薪资项目.本月（次）工资薪金税速算扣除数}', 'salaryItem_addUpTaxableIncome*salaryItem_taxRate-salaryItem_quickDeductionFactor', 1, 0, '2022-05-05 19:08:09', '2022-05-05 19:08:09');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651748978482, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{往期累计情况.累计已预扣预缴税额}', 'addUpSituation_addUpAdvanceTax', 1, 0, '2022-05-05 19:09:38', '2022-05-05 19:09:38');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749111981, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.当前累计应纳税额}-{薪资项目.当前累计已扣缴税额合计}-{薪资项目.当前累计减免税额合计}', 'salaryItem_addUpTaxPayable-salaryItem_addUpAdvanceTax-salaryItem_addUpTaxDeduction', 1, 0, '2022-05-05 19:11:52', '2022-05-05 19:11:52');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749240004, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月（次）应税收入合计}-{薪资项目.本月（次）专项扣除合计}-{薪资项目.本月（次）应补税额}+{薪资项目.税后调整合计}+{薪资项目.税后报销合计}-{薪资项目.税后扣款合计}', 'salaryItem_income-salaryItem_specialDeduction-salaryItem_refundedOrSupplementedTax+salaryItem_afterTaxAdjustmentTotal+salaryItem_afterTaxReimbursementTotal-salaryItem_afterTaxDeductionsTotal', 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749398360, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.企业年金个人}', 'welfare_9007otherPer', 1, 0, '2022-05-05 19:16:38', '2022-05-05 19:16:38');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749448800, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.商业健康保险}', 'otherDeduction_businessHealthyInsurance', 1, 0, '2022-05-05 19:17:29', '2022-05-05 19:17:29');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749487187, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.税延养老保险}', 'otherDeduction_taxDelayEndowmentInsurance', 1, 0, '2022-05-05 19:18:07', '2022-05-05 19:18:07');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749540147, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.其他}', 'otherDeduction_otherDeduction', 1, 0, '2022-05-05 19:19:00', '2022-05-05 19:19:00');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749595061, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{其他免税扣除.准予扣除的捐赠额}', 'otherDeduction_deductionAllowedDonation', 1, 0, '2022-05-05 19:19:55', '2022-05-05 19:19:55');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651749675268, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{薪资项目.本月（次）准允扣除的捐赠额}+{往期累计情况.累计准予扣除的捐赠额}', 'salaryItem_allowedDonation+addUpSituation_addUpAllowedDonation', 1, 0, '2022-05-05 19:21:15', '2022-05-05 19:21:15');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651801433504, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.社保个人合计}+{往期累计情况.累计社保个人合计}', 'welfare_socialPerSum+addUpSituation_addUpSocialSecurityTotal', 1, 0, '2022-05-06 09:43:54', '2022-05-06 09:43:54');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651801586972, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.公积金个人合计}+{往期累计情况.累计公积金个人合计}', 'welfare_fundPerSum+addUpSituation_addUpAccumulationFundTotal', 1, 0, '2022-05-06 09:46:27', '2022-05-06 09:46:27');
INSERT INTO hrsa_formula(id, name, description, module, use_for, reference_type, return_type, validate_type, extend_param, formula, formulaRunScript, creator, delete_type, create_time, update_time) VALUES (1651801667770, '公式1', '备注', 'salary', 'salaryitem', 'formula', 'number', 'number', '{}', '{社保福利.其他福利个人合计}+{往期累计情况.累计企业（职业）年金及其他福利}', 'welfare_otherPerSum+addUpSituation_addUpEnterpriseAndOther', 1, 0, '2022-05-06 09:47:48', '2022-05-06 09:47:48');






INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651736818266, '基本工资', 1651736817711, 'salaryItem_baseSalary', '{薪资项目.基本工资}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 15:46:58', '2022-05-05 15:46:58');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651736818329, '岗位工资', 1651736817711, 'salaryItem_postSalary', '{薪资项目.岗位工资}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 15:46:58', '2022-05-05 15:46:58');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651737360610, '年终奖', 1651737358294, 'salaryItem_annualBonus', '{薪资项目.年终奖}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 15:55:58', '2022-05-05 15:55:58');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651737636061, '考勤扣款', 1651737635353, 'salaryItem_attendanceDeduction', '{薪资项目.考勤扣款}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:00:35', '2022-05-05 16:00:35');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651737859281, '工资薪金合计', 1651737859216, 'salaryItem_wagesTotal', '{薪资项目.工资薪金合计}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:04:19', '2022-05-05 16:04:19');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651737859342, '全年一次性奖金合计', 1651737859216, 'salaryItem_annualBonusTotal', '{薪资项目.全年一次性奖金合计}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 16:04:19', '2022-05-05 16:04:19');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651737859401, '税前扣款合计', 1651737859216, 'salaryItem_preTaxDeductionsTotal', '{薪资项目.税前扣款合计}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 16:04:19', '2022-05-05 16:04:19');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651738035450, '本月（次）应税收入合计', 1651738034028, 'salaryItem_income', '{薪资项目.本月（次）应税收入合计}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:07:14', '2022-05-05 16:07:14');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651738035488, '累计收入额', 1651738034028, 'addUpSituation_addUpIncome', '{往期累计情况.累计收入额}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-05 16:07:14', '2022-05-05 16:07:14');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651738832854, '养老个人', 1651738826550, 'salaryItem_endowmentInsurance', '{薪资项目.养老个人}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:20:27', '2022-05-05 16:20:27');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651738837363, '医疗个人', 1651738826550, 'salaryItem_medicalInsurance', '{薪资项目.医疗个人}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 16:20:27', '2022-05-05 16:20:27');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651738837909, '失业个人', 1651738826550, 'salaryItem_unemploymentInsurance', '{薪资项目.失业个人}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 16:20:27', '2022-05-05 16:20:27');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651738838429, '公积金个人', 1651738826550, 'salaryItem_housingProvidentFund', '{薪资项目.公积金个人}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 16:20:27', '2022-05-05 16:20:27');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739002623, '本月（次）专项扣除合计', 1651739000845, 'salaryItem_specialDeduction', '{薪资项目.本月（次）专项扣除合计}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:23:21', '2022-05-05 16:23:21');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739002682, '累计社保个人合计', 1651739000845, 'addUpSituation_addUpSocialSecurityTotal', '{往期累计情况.累计社保个人合计}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-05 16:23:21', '2022-05-05 16:23:21');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739003139, '累计公积金个人合计', 1651739000845, 'addUpSituation_addUpAccumulationFundTotal', '{往期累计情况.累计公积金个人合计}', 'number', 'addUpSituation', 2, 1, 0, '2022-05-05 16:23:21', '2022-05-05 16:23:21');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739054270, '累计子女教育', 1651739053212, 'addUpDeductions_addUpChildEducation', '{累计专项附加扣除.累计子女教育}', 'number', 'addUpDeductions', 0, 1, 0, '2022-05-05 16:24:13', '2022-05-05 16:24:13');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739101122, '累计住房贷款利息', 1651739100651, 'addUpSituation_addUpHousingLoanInterest', '{往期累计情况.累计住房贷款利息}', 'number', 'addUpSituation', 0, 1, 0, '2022-05-05 16:25:01', '2022-05-05 16:25:01');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739151221, '累计住房租金', 1651739151122, 'addUpSituation_addUpHousingRent', '{往期累计情况.累计住房租金}', 'number', 'addUpSituation', 0, 1, 0, '2022-05-05 16:25:51', '2022-05-05 16:25:51');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739213082, '累计继续教育', 1651739212437, 'addUpSituation_addUpContinuingEducation', '{往期累计情况.累计继续教育}', 'number', 'addUpSituation', 0, 1, 0, '2022-05-05 16:26:52', '2022-05-05 16:26:52');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739311009, '累计赡养老人', 1651739310959, 'addUpSituation_addUpSupportElderly', '{往期累计情况.累计赡养老人}', 'number', 'addUpSituation', 0, 1, 0, '2022-05-05 16:28:31', '2022-05-05 16:28:31');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739411502, '累计子女教育', 1651739411365, 'salaryItem_addUpChildEducation', '{薪资项目.累计子女教育}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:30:11', '2022-05-05 16:30:11');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739411637, '累计住房贷款利息', 1651739411365, 'salaryItem_addUpHousingLoanInterest', '{薪资项目.累计住房贷款利息}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 16:30:11', '2022-05-05 16:30:11');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739411715, '累计住房租金', 1651739411365, 'salaryItem_addUpHousingRent', '{薪资项目.累计住房租金}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 16:30:11', '2022-05-05 16:30:11');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739411773, '累计继续教育', 1651739411365, 'salaryItem_addUpContinuingEducation', '{薪资项目.累计继续教育}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 16:30:11', '2022-05-05 16:30:11');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739412718, '累计赡养老人', 1651739411365, 'salaryItem_addUpSupportElderly', '{薪资项目.累计赡养老人}', 'number', 'salaryItem', 4, 1, 0, '2022-05-05 16:30:11', '2022-05-05 16:30:11');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739819892, '年金个人', 1651739815651, 'salaryItem_annuity', '{薪资项目.年金个人}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739822564, '商业健康保险', 1651739815651, 'salaryItem_commercialHealthInsurance', '{薪资项目.商业健康保险}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739826637, '税延养老保险', 1651739815651, 'salaryItem_taxDeferredEndowmentInsurance', '{薪资项目.税延养老保险}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739828954, '财产原值', 1651739815651, 'salaryItem_originalValueOfProperty', '{薪资项目.财产原值}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739829915, '允许扣除的税费', 1651739815651, 'salaryItem_deductedTax', '{薪资项目.允许扣除的税费}', 'number', 'salaryItem', 4, 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651739830465, '其他', 1651739815651, 'salaryItem_other', '{薪资项目.其他}', 'number', 'salaryItem', 5, 1, 0, '2022-05-05 16:36:56', '2022-05-05 16:36:56');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651740240713, '本月（次）其他扣除合计', 1651740238860, 'salaryItem_otherDeduction', '{薪资项目.本月（次）其他扣除合计}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:43:59', '2022-05-05 16:43:59');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651740241221, '累计其他免税扣除', 1651740238860, 'addUpSituation_addUpOtherDeduction', '{往期累计情况.累计其他免税扣除}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-05 16:43:59', '2022-05-05 16:43:59');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651740241717, '累计企业（职业）年金及其他福利', 1651740238860, 'addUpSituation_addUpEnterpriseAndOther', '{往期累计情况.累计企业（职业）年金及其他福利}', 'number', 'addUpSituation', 2, 1, 0, '2022-05-05 16:43:59', '2022-05-05 16:43:59');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651740397497, '本月（次）减除费用', 1651740397225, 'salaryItem_subtraction', '{薪资项目.本月（次）减除费用}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 16:46:37', '2022-05-05 16:46:37');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651740397989, '累计减除费用', 1651740397225, 'addUpSituation_addUpSubtraction', '{往期累计情况.累计减除费用}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-05 16:46:37', '2022-05-05 16:46:37');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742185950, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742185995, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742186035, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742186085, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742186122, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 4, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742186155, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 5, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742186199, '当前累计应纳税所得额', 1651742185837, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 6, 1, 0, '2022-05-05 17:16:26', '2022-05-05 17:16:26');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742704826, '当前累计应纳税所得额', 1651742702735, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742705308, '当前累计应纳税所得额', 1651742702735, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742705782, '当前累计应纳税所得额', 1651742702735, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742705831, '当前累计应纳税所得额', 1651742702735, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742706306, '当前累计应纳税所得额', 1651742702735, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 4, 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651742706368, '当前累计应纳税所得额', 1651742702735, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 5, 1, 0, '2022-05-05 17:25:03', '2022-05-05 17:25:03');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651745446904, '当前累计应税收入合计', 1651745445982, 'salaryItem_addUpIncome', '{薪资项目.当前累计应税收入合计}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651745447442, '当前累计专项扣除合计', 1651745445982, 'salaryItem_addUpSpecialDeduction', '{薪资项目.当前累计专项扣除合计}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651745447969, '当前累计专项附加扣除合计', 1651745445982, 'salaryItem_addUpSpeAddiDeduction', '{薪资项目.当前累计专项附加扣除合计}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651745448475, '当前累计其他扣除合计', 1651745445982, 'salaryItem_addUpOtherDeduction', '{薪资项目.当前累计其他扣除合计}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651745451616, '当前累计减除费用', 1651745445982, 'salaryItem_addUpSubtraction', '{薪资项目.当前累计减除费用}', 'number', 'salaryItem', 4, 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651745452097, '当前累计准备扣除的捐赠额', 1651745445982, 'salaryItem_addUpAllowedDonation', '{薪资项目.当前累计准备扣除的捐赠额}', 'number', 'salaryItem', 5, 1, 0, '2022-05-05 18:10:46', '2022-05-05 18:10:46');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651748888918, '当前累计应纳税所得额', 1651748888864, 'salaryItem_addUpTaxableIncome', '{薪资项目.当前累计应纳税所得额}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 19:08:09', '2022-05-05 19:08:09');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651748888952, '本月（次）工资薪金税税率', 1651748888864, 'salaryItem_taxRate', '{薪资项目.本月（次）工资薪金税税率}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 19:08:09', '2022-05-05 19:08:09');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651748888989, '本月（次）工资薪金税速算扣除数', 1651748888864, 'salaryItem_quickDeductionFactor', '{薪资项目.本月（次）工资薪金税速算扣除数}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 19:08:09', '2022-05-05 19:08:09');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651748978520, '累计已预扣预缴税额', 1651748978482, 'addUpSituation_addUpAdvanceTax', '{往期累计情况.累计已预扣预缴税额}', 'number', 'addUpSituation', 0, 1, 0, '2022-05-05 19:09:38', '2022-05-05 19:09:38');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749112037, '当前累计应纳税额', 1651749111981, 'salaryItem_addUpTaxPayable', '{薪资项目.当前累计应纳税额}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 19:11:52', '2022-05-05 19:11:52');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749112068, '当前累计已扣缴税额合计', 1651749111981, 'salaryItem_addUpAdvanceTax', '{薪资项目.当前累计已扣缴税额合计}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 19:11:52', '2022-05-05 19:11:52');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749112116, '当前累计减免税额合计', 1651749111981, 'salaryItem_addUpTaxDeduction', '{薪资项目.当前累计减免税额合计}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 19:11:52', '2022-05-05 19:11:52');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749240040, '本月（次）应税收入合计', 1651749240004, 'salaryItem_income', '{薪资项目.本月（次）应税收入合计}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749240082, '本月（次）专项扣除合计', 1651749240004, 'salaryItem_specialDeduction', '{薪资项目.本月（次）专项扣除合计}', 'number', 'salaryItem', 1, 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749240117, '本月（次）应补税额', 1651749240004, 'salaryItem_refundedOrSupplementedTax', '{薪资项目.本月（次）应补税额}', 'number', 'salaryItem', 2, 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749240164, '税后调整合计', 1651749240004, 'salaryItem_afterTaxAdjustmentTotal', '{薪资项目.税后调整合计}', 'number', 'salaryItem', 3, 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749240199, '税后报销合计', 1651749240004, 'salaryItem_afterTaxReimbursementTotal', '{薪资项目.税后报销合计}', 'number', 'salaryItem', 4, 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749240245, '税后扣款合计', 1651749240004, 'salaryItem_afterTaxDeductionsTotal', '{薪资项目.税后扣款合计}', 'number', 'salaryItem', 5, 1, 0, '2022-05-05 19:14:00', '2022-05-05 19:14:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749398399, '企业年金个人', 1651749398360, 'welfare_9007otherPer', '{社保福利.企业年金个人}', 'number', 'welfare', 0, 1, 0, '2022-05-05 19:16:38', '2022-05-05 19:16:38');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749448843, '商业健康保险', 1651749448800, 'otherDeduction_businessHealthyInsurance', '{其他免税扣除.商业健康保险}', 'number', 'otherDeduction', 0, 1, 0, '2022-05-05 19:17:29', '2022-05-05 19:17:29');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749487225, '税延养老保险', 1651749487187, 'otherDeduction_taxDelayEndowmentInsurance', '{其他免税扣除.税延养老保险}', 'number', 'otherDeduction', 0, 1, 0, '2022-05-05 19:18:07', '2022-05-05 19:18:07');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749540213, '其他', 1651749540147, 'otherDeduction_otherDeduction', '{其他免税扣除.其他}', 'number', 'otherDeduction', 0, 1, 0, '2022-05-05 19:19:00', '2022-05-05 19:19:00');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749596472, '准予扣除的捐赠额', 1651749595061, 'otherDeduction_deductionAllowedDonation', '{其他免税扣除.准予扣除的捐赠额}', 'number', 'otherDeduction', 0, 1, 0, '2022-05-05 19:19:55', '2022-05-05 19:19:55');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749675326, '本月（次）准允扣除的捐赠额', 1651749675268, 'salaryItem_allowedDonation', '{薪资项目.本月（次）准允扣除的捐赠额}', 'number', 'salaryItem', 0, 1, 0, '2022-05-05 19:21:15', '2022-05-05 19:21:15');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749675365, '累计准予扣除的捐赠额', 1651749675268, 'addUpSituation_addUpAllowedDonation', '{往期累计情况.累计准予扣除的捐赠额}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-05 19:21:15', '2022-05-05 19:21:15');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749914793, '养老保险个人', 1651749914746, 'welfare_9001socialPer', '{社保福利.养老保险个人}', 'number', 'welfare', 0, 1, 0, '2022-05-05 19:25:15', '2022-05-05 19:25:15');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651749958917, '医疗保险个人', 1651749958879, 'welfare_9002socialPer', '{社保福利.医疗保险个人}', 'number', 'welfare', 0, 1, 0, '2022-05-05 19:25:59', '2022-05-05 19:25:59');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651750005320, '失业保险个人', 1651750005281, 'welfare_9004socialPer', '{社保福利.失业保险个人}', 'number', 'welfare', 0, 1, 0, '2022-05-05 19:26:45', '2022-05-05 19:26:45');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651750034727, '住房公积金个人', 1651750034689, 'welfare_9006fundPer', '{社保福利.住房公积金个人}', 'number', 'welfare', 0, 1, 0, '2022-05-05 19:27:15', '2022-05-05 19:27:15');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651801435862, '社保个人合计', 1651801433504, 'welfare_socialPerSum', '{社保福利.社保个人合计}', 'number', 'welfare', 0, 1, 0, '2022-05-06 09:43:54', '2022-05-06 09:43:54');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651801436423, '累计社保个人合计', 1651801433504, 'addUpSituation_addUpSocialSecurityTotal', '{往期累计情况.累计社保个人合计}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-06 09:43:54', '2022-05-06 09:43:54');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651801587331, '公积金个人合计', 1651801586972, 'welfare_fundPerSum', '{社保福利.公积金个人合计}', 'number', 'welfare', 0, 1, 0, '2022-05-06 09:46:27', '2022-05-06 09:46:27');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651801587794, '累计公积金个人合计', 1651801586972, 'addUpSituation_addUpAccumulationFundTotal', '{往期累计情况.累计公积金个人合计}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-06 09:46:27', '2022-05-06 09:46:27');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651801669969, '其他福利个人合计', 1651801667770, 'welfare_otherPerSum', '{社保福利.其他福利个人合计}', 'number', 'welfare', 0, 1, 0, '2022-05-06 09:47:48', '2022-05-06 09:47:48');
INSERT INTO hrsa_formula_var(id, name, formula_id, field_id, field_name, field_type, source, order_index, creator, delete_type, create_time, update_time) VALUES (1651801670474, '累计企业（职业）年金及其他福利', 1651801667770, 'addUpSituation_addUpEnterpriseAndOther', '{往期累计情况.累计企业（职业）年金及其他福利}', 'number', 'addUpSituation', 1, 1, 0, '2022-05-06 09:47:48', '2022-05-06 09:47:48');




INSERT INTO hrsa_sob_default_emp_field(id, field_code, sorted_index, can_delete, creator, create_time, update_time, delete_type, tenant_key) VALUES (681983911359291652, 'taxAgentName', 0, 0, 0, '2022-02-23 17:32:08', '2022-02-23 17:32:08', 0, 'all_teams');
INSERT INTO hrsa_sob_default_emp_field(id, field_code, sorted_index, can_delete, creator, create_time, update_time, delete_type, tenant_key) VALUES (681983911359291653, 'username', 1, 0, 0, '2022-02-23 17:32:08', '2022-02-23 17:32:08', 0, 'all_teams');
INSERT INTO hrsa_sob_default_emp_field(id, field_code, sorted_index, can_delete, creator, create_time, update_time, delete_type, tenant_key) VALUES (681983911359291654, 'departmentName', 2, 0, 0, '2022-02-23 17:32:08', '2022-02-23 17:32:08', 0, 'all_teams');



INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368900, 4, 703459464954929153, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368899, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368902, 4, 703458434280095745, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368901, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368903, 4, 703458558739300353, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368901, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368905, 4, 674914626953093123, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368904, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368906, 4, 674914626953093124, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368904, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368907, 4, 674914626953093127, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368904, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368908, 4, 674916065864646659, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368904, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368910, 4, 704467747234045953, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368909, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368911, 4, 704468391612751873, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368909, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368912, 4, 704468443048992769, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368909, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368913, 4, 704468490269204481, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368909, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368914, 4, 704468528928063488, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 704495325212368909, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (704495325212368915, 4, 703459151591383041, 1, 0, 0, '2022-03-14 11:32:32', '2022-03-17 16:14:11', 0, 'all_teams', 0, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312448, 1, 703459151591383041, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:23', 0, 'all_teams', 0, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312449, 1, 674861648655892480, 1, 1, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614083, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312450, 1, 674861768948531201, 1, 1, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614083, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312451, 1, 674861880508628992, 1, 1, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614083, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312452, 1, 674920588574261248, 1, 1, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614083, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312453, 1, 674853617092214790, 1, 0, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614083, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312454, 1, 674853617092214791, 1, 0, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614083, 5);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312455, 1, 674914626953093129, 1, 0, 0, '2022-03-14 11:32:28', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614083, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312456, 1, 703419929857687552, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614083, 7);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312457, 1, 674853617092214792, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614092, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312458, 1, 674853617092214793, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614092, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312459, 1, 674853617092214795, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614092, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312460, 1, 674853617092214796, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614092, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312461, 1, 700599184238075904, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614092, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312462, 1, 700599446244319233, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614092, 5);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312463, 1, 674853617092214797, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614092, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312464, 1, 697532371614588928, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614092, 7);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312465, 1, 697532667749400576, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614092, 8);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312466, 1, 697536344384012289, 1, 0, 0, '2022-03-18 16:24:49', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614092, 9);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312467, 1, 674853617092214798, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614092, 10);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312468, 1, 674853617092214803, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614103, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312469, 1, 674853617092214802, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614103, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312470, 1, 674853617092214801, 1, 0, 0, '2022-03-14 11:32:29', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614103, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312471, 1, 674853617092214800, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614103, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312472, 1, 674853617092214799, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614103, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312473, 1, 705641858303836161, 1, 0, 0, '2022-03-17 13:48:51', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614103, 5);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312474, 1, 674853617092214804, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614103, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312475, 1, 674853617092214807, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312476, 1, 674853617092214808, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312477, 1, 674914626953093122, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312478, 1, 674914626953093123, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614110, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312479, 1, 674914626953093124, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312480, 1, 674914626953093127, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614110, 5);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312481, 1, 674853617092214805, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614110, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312482, 1, 674853617092214806, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614110, 7);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312483, 1, 674916065864646659, 1, 0, 0, '2022-03-18 16:30:21', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 8);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312484, 1, 674916065864646660, 1, 0, 0, '2022-03-18 16:30:21', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614110, 9);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312485, 1, 674853617092214811, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614119, 0);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312486, 1, 674853617092214809, 1, 0, 0, '2022-03-14 11:32:30', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614119, 1);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312487, 1, 674853617092214810, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614119, 2);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312488, 1, 674853617092214812, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614119, 3);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312489, 1, 674853617092214813, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614119, 4);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312490, 1, 674916065864646661, 1, 1, 0, '2022-03-18 16:33:37', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614119, 5);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312491, 1, 674916065864646658, 1, 1, 0, '2022-03-18 16:33:37', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614119, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312492, 1, 674853617092214814, 1, 0, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614119, 7);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312493, 1, 674853617092214815, 1, 1, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:23', 0, 'all_teams', 703433961629614126, 6);
INSERT INTO hrsa_salary_sob_default_item(id, income_category, sys_salary_item_id, can_edit, can_delete, creator, create_time, update_time, delete_type, tenant_key, sob_default_item_group_id, sorted_index) VALUES (706066600446312494, 1, 700769462612156416, 1, 1, 0, '2022-03-14 11:32:31', '2022-03-18 16:59:24', 0, 'all_teams', 703433961629614126, 7);




INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (703433961629614083, 1, '收入以及免税', 0, '', '2022-03-11 14:49:01', '2022-03-11 14:49:01', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (703433961629614092, 1, '专项扣除', 1, '', '2022-03-11 14:49:27', '2022-03-11 14:49:27', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (703433961629614103, 1, '累计专项附加扣除', 2, '', '2022-03-11 14:49:27', '2022-03-11 14:49:27', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (703433961629614110, 1, '其他扣除等信息', 3, '', '2022-03-11 14:49:27', '2022-03-11 14:49:27', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (703433961629614119, 1, '税款计算', 4, '', '2022-03-11 14:49:27', '2022-03-11 14:49:27', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (703433961629614126, 1, '应发实发', 5, '', '2022-03-11 14:49:28', '2022-03-11 14:49:28', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (704495325212368899, 4, '所得项目', 0, '', '2022-03-15 17:52:48', '2022-03-15 18:14:53', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (704495325212368901, 4, '收入及免税', 1, '', '2022-03-15 17:52:48', '2022-03-15 18:14:53', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (704495325212368904, 4, '其他扣除等信息', 2, '', '2022-03-15 17:52:48', '2022-03-15 18:14:53', 0, 0, 'all_teams');
INSERT INTO hrsa_sob_default_item_group(id, income_category, name, sorted_index, description, create_time, update_time, creator, delete_type, tenant_key) VALUES (704495325212368909, 4, '税款计算', 3, '', '2022-03-15 17:52:48', '2022-03-15 18:14:53', 0, 0, 'all_teams');




INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9001, '养老保险', 1, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9002, '医疗保险', 1, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9003, '工伤保险', 1, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9004, '失业保险', 1, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9005, '生育保险', 1, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9006, '住房公积金', 2, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9007, '企业年金', 3, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');
INSERT INTO hrsa_insurance_category (id, insurance_name, welfare_type, is_use, payment_scope, data_type, create_time, update_time, creator, delete_type, tenant_key) VALUES (9008, '补充住房公积金', 2, 1, '1,2', 1, '2022-02-22 10:46:02', '2022-02-22 10:46:02', 0, 0, 'all_teams');

ALTER TABLE hrsa_salary_sob_item ADD COLUMN can_delete int(0) NULL COMMENT '是否可删除，0：不可删除，1：可删除';