CREATE TABLE hrsa_salary_sob_back_item( id bigint NOT NULL COMMENT '主键id', salary_sob_id bigint NULL DEFAULT NULL COMMENT '薪资账套id', salary_item_id bigint NULL DEFAULT NULL COMMENT '薪资项目id', salary_item_code varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '薪资项目code', data_type varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '字段类型', rounding_mode int NULL DEFAULT NULL COMMENT '进位规则。1:原始数据、2:四舍五入、3:向上舍入、4:向下舍入、5:见分进角、6:向上求偶', pattern int NULL DEFAULT NULL COMMENT '保留的小数位数', value_type int NULL DEFAULT NULL COMMENT '取值方式。1:输入、2:公式、3:sql', formula_id bigint NULL DEFAULT NULL COMMENT '公式id', back_calc_type int NULL DEFAULT NULL COMMENT '0:已发项目、1:补发薪资项目', tenant_key varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户key', creator bigint NULL DEFAULT NULL COMMENT '创建人id', delete_type int NULL DEFAULT NULL COMMENT '是否删除', create_time datetime NULL DEFAULT NULL COMMENT '创建时间', update_time datetime NULL DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (id) USING BTREE ) COMMENT = '薪资账套回算薪资项目'; alter table hrsa_salary_acct_record add back_calc_status int null COMMENT '是否是回算 0:不是回算、1:是回算'; alter table hrsa_salary_acct_result add origin_result_value VARCHAR(1000) null COMMENT '回算前的值'; alter table hrsa_salary_acct_result_report add origin_result_value VARCHAR(1000) null COMMENT '回算前的值'; alter table hrsa_salary_send add salary_acct_type int null COMMENT '核算类型。0:正常,1:补发'; alter table hrsa_salary_send add send_status int null COMMENT '发放状态。0:未冻结、1:已冻结'; alter table hrsa_salary_send_info add salary_acct_type int null COMMENT '核算类型。0:正常,1:补发'; alter table hrsa_salary_template add replenish_name VARCHAR(100) null COMMENT '补发工资单模板名称'; alter table hrsa_salary_template add replenish_rule VARCHAR(255) null COMMENT '补发工资单名单生成规则'; alter table hrsa_salary_template add replenish_salary_item_setting text null COMMENT '补发薪资项目设置'; alter table hrsa_acct_result_temp add origin_result_value VARCHAR(1000) null COMMENT '回算前的值';