refactor(sql): 移除兑换码相关SQL文件并优化前端界面
Some checks failed
Build and Deploy / deploy (push) Has been cancelled

- 删除兑换码菜单配置SQL文件 (redeem_code_menu.sql)
- 删除兑换码建表SQL文件 (redeem_code_tables.sql)
- 在application.yaml中添加租户过滤忽略表配置
- 优化兑换码管理前端界面,简化搜索表单和表格显示
- 移除用户端兑换相关API接口
- 调整状态显示逻辑,使用本地映射替代字典组件
This commit is contained in:
2026-03-28 00:28:20 +08:00
parent 7b0006dda2
commit 730fab6efe
6 changed files with 56 additions and 238 deletions

View File

@@ -336,30 +336,3 @@ CREATE TABLE `member_user_permission` (
-- INSERT INTO `system_menu` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `component_name`, `status`, `visible`, `keep_alive`, `always_show`, `creator`, `create_time`, `updater`, `update_time`, `deleted`)
-- VALUES (5022, '兑换记录导出', 'muye:redeem-record:export', 3, 2, 5020, '', '', '', NULL, 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0')
-- 兑换码表
CREATE TABLE `muye_redemption_code` (
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',
`tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
`code` varchar(32) NOT NULL COMMENT '兑换码',
`type` varchar(20) NOT NULL DEFAULT 'points' COMMENT '类型: points-积分',
`amount` int NOT NULL COMMENT '面额(积分数)',
`price` decimal(10,2) DEFAULT NULL COMMENT '原价金额(元)',
`status` tinyint NOT NULL DEFAULT 0 COMMENT '状态: 0-未使用 1-已使用 2-已过期',
`batch_no` varchar(32) DEFAULT NULL COMMENT '批次号',
`batch_remark` varchar(200) DEFAULT NULL COMMENT '批次备注',
`user_id` bigint DEFAULT NULL COMMENT '使用者用户ID',
`used_time` datetime DEFAULT NULL COMMENT '使用时间',
`expire_time` datetime DEFAULT NULL COMMENT '过期时间',
`creator` varchar(64) DEFAULT '' COMMENT '创建者',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updater` varchar(64) DEFAULT '' COMMENT '更新者',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`deleted` bit NOT NULL DEFAULT b'0' COMMENT '是否删除',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `uk_code` (`code`) USING BTREE,
KEY `idx_tenant_id` (`tenant_id`) USING BTREE,
KEY `idx_batch_no` (`batch_no`) USING BTREE,
KEY `idx_status` (`status`) USING BTREE,
KEY `idx_user_id` (`user_id`) USING BTREE,
KEY `idx_expire_time` (`expire_time`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='兑换码表';