ALTER TABLE `cai_user_count` ADD COLUMN `im_count` bigint(20) NOT NULL DEFAULT 0 COMMENT '发言次数', ADD COLUMN `im_refresh_time` datetime COMMENT '刷新时间'; CREATE TABLE `cai_anchor_im_count_day` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `user_id` int NOT NULL COMMENT '用户ID', `count_date` date NOT NULL COMMENT '时间', `im_count` bigint(20) NOT NULL COMMENT '数量', `refresh_time` datetime not null default now() comment '刷新时间', `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, INDEX `idx_user_id`(`user_id`,`im_count`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC COMMENT ='主播每日发言统计'; -- 菜单 SQL insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values(1957731146459230209, '每日发言统计', '1738072642014617602', '1', 'anchorImCountDay', 'cai/anchorImCountDay/index', 1, 0, 'C', '0', '0', 'cai:anchorImCountDay:list', '#', 'admin', sysdate(), '', null, '每日发言统计菜单'); -- 按钮 SQL insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values(1957731146459230210, '每日发言统计查询', 1957731146459230209, '1', '#', '', 1, 0, 'F', '0', '0', 'cai:anchorImCountDay:query', '#', 'admin', sysdate(), '', null, ''); insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values(1957731146459230211, '每日发言统计新增', 1957731146459230209, '2', '#', '', 1, 0, 'F', '0', '0', 'cai:anchorImCountDay:add', '#', 'admin', sysdate(), '', null, ''); insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values(1957731146459230212, '每日发言统计修改', 1957731146459230209, '3', '#', '', 1, 0, 'F', '0', '0', 'cai:anchorImCountDay:edit', '#', 'admin', sysdate(), '', null, ''); insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) values(1957731146459230213, '每日发言统计删除', 1957731146459230209, '4', '#', '', 1, 0, 'F', '0', '0', 'cai:anchorImCountDay:remove', '#', 'admin', sysdate(), '', null, '');