create table hrsa_add_up_deduction_request ( id bigint primary key comment 'ID' , create_time datetime comment '创建时间' , update_time datetime comment '修改时间' , creator bigint comment '创建人id' , delete_type int default 0 comment '是否删除' , tenant_key varchar(10) comment '租户KEY' , request_id bigint not null comment '查询请求ID' , request_status tinyint(1) default 1 not null comment '请求处理状态:10待处理 20处理中 99已完成' , tax_year_month datetime not null comment '税款所属期' , outer_request_id varchar(50) not null comment '外部接口查询请求ID' , tax_agent_id bigint not null comment '个税扣缴义务人Id' ) ; alter table hrsa_add_up_deduction_request add lock_version int ; alter table hrsa_add_up_deduction_request modify column lock_version int default 0 ; create table hrsa_add_up_deduction_req_fail ( id bigint primary key comment 'ID' , create_time datetime comment '创建时间' , update_time datetime comment '修改时间' , creator bigint comment '创建人id' , delete_type int default 0 comment '是否删除' , tenant_key varchar(10) comment '租户KEY' , request_id bigint not null comment '查询请求ID' , employee_id bigint not null comment '员工ID' , employee_type int not null comment '员工类型' , tax_agent_id bigint not null comment '个税扣缴义务人ID' , reason varchar(255) not null comment '失败原因' , tax_year_month datetime not null comment '税款所属期' , outer_request_id varchar(50) not null comment '外部接口查询请求id' ) ;