feat:批量充值扣款审批回调优化
This commit is contained in:
1 parent
be93d4ae50
commit
94a0cd5f92
13 files changed
+1131
-96
No files matched your search
@@ -388,6 +388,18 @@ CREATE TABLE wallet_transaction
|
||||
DEFAULT CHARSET = utf8mb4 COMMENT ='会员钱包流水表';
|
||||
CREATE INDEX idx_dept_id ON wallet_transaction (wallet_id);
|
||||
|
||||
-- 批量充值/扣减持久化防重;已有环境执行 20261102_wallet_recharge_idempotency.sql。
|
||||
CREATE TABLE IF NOT EXISTS wallet_transaction_idempotency (
|
||||
tenant_id BIGINT NOT NULL,
|
||||
wallet_id BIGINT NOT NULL,
|
||||
biz_type VARCHAR(8) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT '仅批量更新2、退还食堂8',
|
||||
biz_id VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
|
||||
price INT NOT NULL COMMENT '有符号变动金额,分',
|
||||
transaction_id BIGINT NOT NULL,
|
||||
create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (tenant_id, wallet_id, biz_type, biz_id)
|
||||
) ENGINE=InnoDB COMMENT='批量钱包入账幂等键,与余额和流水同事务提交';
|
||||
|
||||
-- ----------------------------
|
||||
-- Table structure for wallet_recharge_apply
|
||||
-- ----------------------------
|
||||
|
||||
Reference in new issue
Block a user