LinWuTai преди 1 година
родител
ревизия
ef93e3530f
променени са 1 файла, в които са добавени 47 реда и са изтрити 1 реда
  1. 47 1
      sql/rfid-hotel-manager.sql

+ 47 - 1
sql/rfid-hotel-manager.sql

@@ -1434,7 +1434,7 @@ CREATE TABLE `tb_order_detail`  (
 ) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '资产单据明细表' ROW_FORMAT = DYNAMIC;
 
 CREATE TABLE tb_lable_model_info(
-id bigint NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '位置编号',
+id bigint NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT '编号',
 name varchar(128) NOT NULL COMMENT '标签名称',
 label_code varchar(128) NOT NULL UNIQUE KEY COMMENT '标签编码',
 label_value LONGBLOB NOT NULL COMMENT '标签内容',
@@ -1445,4 +1445,50 @@ update_by varchar(128) COMMENT '修改人',
 update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间'
 ) COMMENT '标签模板信息';
 
+-- ----------------------------
+-- Table structure for tb_label_model_info
+-- ----------------------------
+DROP TABLE IF EXISTS `tb_label_model_info`;
+CREATE TABLE `tb_label_model_info`  (
+  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '位置编号',
+  `name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '标签名称',
+  `label_code` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '标签编码',
+  `label_value` longblob NOT NULL COMMENT '标签内容',
+  `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
+  `create_by` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '创建人',
+  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+  `update_by` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '修改人',
+  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间',
+  PRIMARY KEY (`id`) USING BTREE,
+  UNIQUE INDEX `label_code`(`label_code` ASC) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '标签模板信息' ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of tb_label_model_info
+-- ----------------------------
+INSERT INTO `tb_label_model_info` VALUES (1, '标签 80mm*25mm', 'BQ001', 0x7B227074784C6162656C5465787473223A5B7B227465787454797065223A312C227072696E7444617461223A22E8B584E4BAA7E7BC96E7A081EFBC9A247B6E756D6265727D222C2273706163654265747765656E223A32382C2274666646696C654E616D65223A2253494D4845492E545446222C22784C696E65486569676874223A31302C2278223A32302C2279223A33352C22794C696E65486569676874223A31307D2C7B227465787454797065223A312C227072696E7444617461223A22E8B584E4BAA7E5908DE7A7B0EFBC9A247B6E616D657D222C2273706163654265747765656E223A32382C2274666646696C654E616D65223A2253494D4845492E545446222C22784C696E65486569676874223A31302C2278223A32302C2279223A3130352C22794C696E65486569676874223A31307D2C7B227465787454797065223A312C227072696E7444617461223A22E8B584E4BAA7E58886E7B1BBEFBC9A247B63617465676F72794E756D6265727D222C2273706163654265747765656E223A32382C2274666646696C654E616D65223A2253494D4845492E545446222C22784C696E65486569676874223A31302C2278223A32302C2279223A3137352C22794C696E65486569676874223A31307D2C7B227465787454797065223A312C227072696E7444617461223A22E695B0E9878FEFBC9A247B7175616E746974797D247B756E6974737D222C2273706163654265747765656E223A32382C2274666646696C654E616D65223A2253494D4845492E545446222C22784C696E65486569676874223A31302C2278223A32302C2279223A3234352C22794C696E65486569676874223A31307D5D2C22636F6E6E65637454797065223A302C227072696E7465724E616D65223A22555342222C22706964223A3330302C226973426F6C64223A747275652C22657063223A22247B6E756D6265727D222C227074784C6162656C436F646573223A5B7B22636F646554797065223A322C2264617461223A22247B6C6F636174696F6E4E756D6265727D222C2273706163654265747765656E223A32382C22697353686F7754657874223A66616C73652C2258223A3638302C227769647468223A382C2259223A33352C22686569676874223A387D5D7D, NULL, 'admin', '2023-11-24 13:19:59', NULL, '2023-11-24 13:19:59');
+
+-- 菜单 SQL
+insert into sys_menu (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('标签模板信息', '2077', '1', 'labelModel', 'label/labelModel/index', 1, 0, 'C', '0', '0', 'label:labelModel:list', '#', 'admin', sysdate(), '', null, '标签模板信息菜单');
+
+-- 按钮父菜单ID
+SELECT @parentId := LAST_INSERT_ID();
+
+-- 按钮 SQL
+insert into sys_menu (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('标签模板信息查询', @parentId, '1',  '#', '', 1, 0, 'F', '0', '0', 'label:labelModel:query',        '#', 'admin', sysdate(), '', null, '');
+
+insert into sys_menu (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('标签模板信息新增', @parentId, '2',  '#', '', 1, 0, 'F', '0', '0', 'label:labelModel:add',          '#', 'admin', sysdate(), '', null, '');
+
+insert into sys_menu (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('标签模板信息修改', @parentId, '3',  '#', '', 1, 0, 'F', '0', '0', 'label:labelModel:edit',         '#', 'admin', sysdate(), '', null, '');
+
+insert into sys_menu (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('标签模板信息删除', @parentId, '4',  '#', '', 1, 0, 'F', '0', '0', 'label:labelModel:remove',       '#', 'admin', sysdate(), '', null, '');
+
+insert into sys_menu (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('标签模板信息导出', @parentId, '5',  '#', '', 1, 0, 'F', '0', '0', 'label:labelModel:export',       '#', 'admin', sysdate(), '', null, '');
+
 SET FOREIGN_KEY_CHECKS = 1;