待更新脚本 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T0104', '领域检索', 'T01', 2);
  2. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  3. VALUES ('T0104', 3, '领域检索', 'SearchOutlined', 'views/domain', '/domain', 'T01', null, 0, 1, 1, 'T0104', 1, null);
  4. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  5. VALUES ('T010401', 1, '领域检索', null, 'views/domain', '/domain/index', 'T0104', null, 0, 0, 1, 'T0104', 1, null);
  6. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  7. VALUES ('T010402', 2, '领域检索结果', null, 'views/domainResult', '/domain/result', 'T0104', null, 0, 0, 1, 'T0104', 1, null);
  8. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T0109', '索引定义', 'T01', 9);
  9. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T010900', '查看', 'T0109', 0);
  10. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T010901', '新增', 'T0109', 1);
  11. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T010902', '导入', 'T0109', 2);
  12. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T010903', '编辑', 'T0109', 3);
  13. INSERT INTO sys_function_code (FunctionCode, FunctionName, ParentFunctionCode, OrderNo) VALUES ('T010904', '删除', 'T0109', 4);
  14. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  15. VALUES ('T0109', 5, '索引定义', 'ReadOutlined', 'views/esindex', '/esindex', 'T01', null, 0, 1, 1, 'T0109', 1, null);
  16. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  17. VALUES ('T010901', 1, '索引管理', '', 'views/esindexlist', '/esindex/list', 'T0109', null, 0, 0, 1, 'T0109', 1, null);
  18. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  19. VALUES ('T010902', 2, '字段定义', '', 'views/esindexedit', '/esindex/edit', 'T0109', null, 0, 0, 1, null, 1, null);
  20. INSERT INTO sys_menu (MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu, IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon)
  21. VALUES ('T010903', 3, '索引详细', '', 'views/esindexdetail', '/esindex/detail', 'T0109', null, 0, 0, 1, null, 1, null);
  22. create table es_index
  23. (
  24. indexId varchar(50) not null,
  25. indexName varchar(100) not null comment '索引名称',
  26. indexCode varchar(100) not null comment '索引编码',
  27. indexDesc varchar(200) comment '描述',
  28. displayType int comment '显示类型1、生命周期2、普通表格3、列表4、图表5、文档',
  29. createdName varchar(50) not null comment '创建姓名',
  30. createTime datetime not null comment '创建时间',
  31. modiTime datetime not null,
  32. createdBy varchar(50) not null comment '创建人',
  33. status int not null comment '状态(1 有效/0 无效)',
  34. primary key (indexId)
  35. );
  36. create table es_indexField
  37. (
  38. fieldId varchar(50) not null,
  39. indexId varchar(50) comment '索引id',
  40. fieldCode varchar(100) not null comment '字段编码',
  41. fieldName varchar(100) not null comment '字段名称',
  42. fieldDesc varchar(200) comment '字段描述',
  43. dataType varchar(20) not null comment '数据类型',
  44. queryTypeId int not null comment '字典表queryType的值1、文本2、数值3、日期4、字典值5、级联选择6、穿梭选择',
  45. disOrder int not null,
  46. isSearchField int not null comment '1、是0、否 如是1则自助检索页面显示',
  47. isDisplay int comment '1、显示0、隐藏',
  48. primary key (fieldId)
  49. );
  50. alter table es_indexField add constraint FK_Reference_33 foreign key (indexId)
  51. references es_index (indexId) on delete restrict on update restrict;
  52. insert into sys_dictionary value('displayType','索引显示类型',1,1);
  53. insert into sys_dictionary_item values (uuid(),'','displayType',1,'生命周期',1,1,1);
  54. insert into sys_dictionary_item values (uuid(),'','displayType',2,'表格',2,1,1);
  55. insert into sys_dictionary_item values (uuid(),'','displayType',3,'列表',3,1,1);
  56. insert into sys_dictionary_item values (uuid(),'','displayType',4,'图表',4,1,1);
  57. insert into sys_dictionary_item values (uuid(),'','displayType',5,'文档',5,1,1);