factory8.sql 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.7.5
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- Host: localhost
  6. -- Generation Time: 2018-07-12 03:29:53
  7. -- 服务器版本: 5.5.56-MariaDB
  8. -- PHP Version: 7.0.24
  9. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  10. SET AUTOCOMMIT = 0;
  11. START TRANSACTION;
  12. SET time_zone = "+00:00";
  13. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16. /*!40101 SET NAMES utf8mb4 */;
  17. --
  18. -- Database: `factory8`
  19. --
  20. -- --------------------------------------------------------
  21. --
  22. -- 表的结构 `ao_com_notice`
  23. --
  24. CREATE TABLE IF NOT EXISTS `ao_com_notice` (
  25. `id` int(11) NOT NULL AUTO_INCREMENT,
  26. `title` varchar(200) NOT NULL COMMENT '标题',
  27. `content` text COMMENT '内容',
  28. `published_on` datetime NOT NULL COMMENT '发布时间',
  29. `published_by` varchar(20) DEFAULT NULL COMMENT '发布人',
  30. `published_by_dept_name` varchar(30) NOT NULL COMMENT '发布部门',
  31. `notice_type` char(1) DEFAULT NULL COMMENT '通告类型A全体,F飞行,C乘务员,S安全员',
  32. `notice_level` char(1) DEFAULT NULL COMMENT '通告等级G局方,C公司,D部门',
  33. `notice_cat` varchar(20) DEFAULT NULL COMMENT '通告类型:字典 安全提示签派提示',
  34. `language` varchar(5) NOT NULL COMMENT '语言zh-CN,en',
  35. `is_must_reed` tinyint(1) DEFAULT '0' COMMENT '1必读,0选读',
  36. PRIMARY KEY (`id`)
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公司公告';
  38. -- --------------------------------------------------------
  39. --
  40. -- 表的结构 `ao_file_learning`
  41. --
  42. CREATE TABLE IF NOT EXISTS `ao_file_learning` (
  43. `id` int(11) NOT NULL AUTO_INCREMENT,
  44. `title` varchar(200) NOT NULL COMMENT '标题',
  45. `content` varchar(2000) DEFAULT NULL COMMENT '内容',
  46. `published_on` datetime NOT NULL COMMENT '发布时间',
  47. `published_by` varchar(20) DEFAULT NULL COMMENT '发布人',
  48. `published_by_dept_name` varchar(30) NOT NULL COMMENT '发布部门',
  49. `notice_type` char(1) DEFAULT NULL COMMENT '通告类型A全体,F飞行,C乘务员,S安全员',
  50. `file_path` varchar(20) DEFAULT NULL COMMENT '文件路径',
  51. `language` varchar(5) NOT NULL COMMENT '语言zh-CN,en',
  52. `is_must_reed` tinyint(1) DEFAULT '0' COMMENT '1必读,0选读',
  53. PRIMARY KEY (`id`)
  54. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文件学习';
  55. -- --------------------------------------------------------
  56. --
  57. -- 表的结构 `com_dictionary`
  58. --
  59. CREATE TABLE IF NOT EXISTS `com_dictionary` (
  60. `dict_id` int(11) NOT NULL AUTO_INCREMENT,
  61. `dict_code` varchar(20) NOT NULL COMMENT '字典编码',
  62. `dict_name` varchar(50) NOT NULL COMMENT '字典名称',
  63. `dict_type` varchar(20) NOT NULL COMMENT '字典类型,clientLevel,certType',
  64. `parent_dict_id` int(11) DEFAULT NULL COMMENT '父类型ID默认为0',
  65. `dict_name_en` varchar(50) DEFAULT NULL COMMENT '字典英文名称',
  66. `enable_state` char(1) NOT NULL COMMENT '启用状态,1为启用,0禁用',
  67. `order_no` tinyint(4) DEFAULT NULL COMMENT '排序值',
  68. `dict_ico` varchar(50) DEFAULT NULL COMMENT '字典图标地址',
  69. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  70. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  71. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  72. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  73. PRIMARY KEY (`dict_id`)
  74. ) ENGINE=InnoDB AUTO_INCREMENT=306 DEFAULT CHARSET=utf8 COMMENT='数据字典';
  75. --
  76. -- 转存表中的数据 `com_dictionary`
  77. --
  78. INSERT INTO `com_dictionary` (`dict_id`, `dict_code`, `dict_name`, `dict_type`, `parent_dict_id`, `dict_name_en`, `enable_state`, `order_no`, `dict_ico`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  79. (48, 'BORD', '登机证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  80. (49, 'CTC', '乘务训练合格证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  81. (50, 'AQY', '安全员执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  82. (51, 'APL', '空警执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  83. (52, 'TC', '乘务训练合格证2', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  84. (53, 'PASS', '国际护照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  85. (54, 'TXZP', '港澳通行证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  86. (55, 'TWOU', '大陆通行证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  87. (56, 'TWIN', '入台许可证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  88. (57, 'HEAL', '体检合格证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  89. (58, 'DWSS', '是大法官', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  90. (60, 'LDHT', '外籍合同', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  91. (61, 'CP', '商用驾驶员执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  92. (62, 'AP', '航线运输驾驶员执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  93. (63, 'WEVI', '东南亚签证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  94. (64, 'AMVI', '美国签证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  95. (65, 'AUVI', '澳洲签证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  96. (66, 'EUVI', '欧洲签证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  97. (67, 'KOVI', '日韩签证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  98. (68, 'TWVI', '台湾签注', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  99. (69, 'VISA', '签证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  100. (70, 'GJJK', '国际健康证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 09:53:31', NULL, NULL, NULL),
  101. (71, 'LDWK', '外籍工作证', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 10:01:08', NULL, NULL, NULL),
  102. (72, 'TA', 'A类教员执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 11:49:29', NULL, NULL, NULL),
  103. (73, 'TB', 'B类教员执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 11:49:29', NULL, NULL, NULL),
  104. (74, 'TCHC', 'C类教员执照', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 11:49:29', NULL, NULL, NULL),
  105. (75, 'APL', 'APL', 'certType', NULL, NULL, '', NULL, NULL, '2017-11-10 11:50:01', NULL, NULL, NULL),
  106. (76, 'N001', '安全提示', 'N_TYPE', NULL, 'SAFETY SIGNS', '', NULL, NULL, '2017-11-11 05:59:52', NULL, NULL, NULL),
  107. (77, 'N002', '操作通告', 'N_TYPE', NULL, 'OPERRATE NOTICE', '', NULL, NULL, '2017-11-11 05:59:52', NULL, NULL, NULL),
  108. (78, 'N003', '运行规定', 'N_TYPE', NULL, 'OPERATING PROVISIONS', '', NULL, NULL, '2017-11-11 05:59:52', NULL, NULL, NULL),
  109. (79, 'N004', '性能通告', 'N_TYPE', NULL, 'PROPERTY NOTICE', '', NULL, NULL, '2017-11-11 05:59:52', NULL, NULL, NULL),
  110. (80, 'N005', '签派提示', 'N_TYPE', NULL, 'DISPATCH PROMPT', '', NULL, NULL, '2017-11-11 05:59:52', NULL, NULL, NULL),
  111. (81, 'N010', '一般通知', 'N_TYPE', NULL, 'GENARAL NOTICE', '', NULL, NULL, '2017-11-11 05:59:52', NULL, NULL, NULL),
  112. (82, 'F001', '手册', 'F_TYPE', NULL, 'MANUAL', '', NULL, NULL, '2017-11-11 06:02:41', NULL, NULL, NULL),
  113. (83, 'F002', '文件', 'F_TYPE', NULL, 'FILE', '', NULL, NULL, '2017-11-11 06:02:41', NULL, NULL, NULL),
  114. (84, 'FlightTechnicalManua', '飞行技术手册', 'handbook_type', NULL, 'SAFETY SIGNS', '', NULL, NULL, '2017-11-11 08:11:08', NULL, NULL, NULL),
  115. (85, 'Operation_Specificat', '运行规范', 'handbook_type', NULL, 'OPERRATE NOTICE', '', NULL, NULL, '2017-11-11 08:11:08', NULL, NULL, NULL),
  116. (86, 'Operation_Manual', '运行手册', 'handbook_type', NULL, 'OPERATING PROVISIONS', '', NULL, NULL, '2017-11-11 08:11:08', NULL, NULL, NULL),
  117. (88, 'VVIP', 'VVIP', 'clientLevel', NULL, NULL, '', NULL, NULL, '2017-11-11 10:06:35', NULL, NULL, NULL),
  118. (89, 'VIP', 'VIP', 'clientLevel', NULL, NULL, '', NULL, NULL, '2017-11-11 10:06:35', NULL, NULL, NULL),
  119. (90, 'CIP', 'CIP', 'clientLevel', NULL, NULL, '', NULL, NULL, '2017-11-11 10:06:35', NULL, NULL, NULL),
  120. (91, 'F', '飞行员', 'userType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  121. (92, 'S', '安全员', 'userType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  122. (93, 'C', '乘务员', 'userType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  123. (95, '0', '无效', 'status', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  124. (96, '1', '有效', 'status', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  125. (97, 'zh_CN', '中文', 'language', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  126. (98, 'en', '英文', 'language', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  127. (99, 'F001', '手册', 'fileType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  128. (100, 'F002', '文件', 'fileType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  129. (101, 'MSG0100', '通知通告消息', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  130. (102, 'MSG0200', '网上准备提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  131. (103, 'MSG0300', '飞行任务提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  132. (104, 'MSG0400', '证照过期提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  133. (105, 'MSG0500', '培训训练提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  134. (106, 'MSG0600', '签到提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  135. (107, 'MSG0700', '酒测超标', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  136. (108, 'MSG0800', '航班状态提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  137. (109, 'MSG0900', '健康状况提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  138. (110, 'MSG1000', '高端旅客提醒', 'msgType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  139. (111, 'N001', '安全指示', 'noticeCat', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  140. (112, 'N002', '操作通告', 'noticeCat', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  141. (113, 'N003', '运行规定', 'noticeCat', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  142. (114, 'N004', '性能通告', 'noticeCat', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  143. (115, 'N005', '签派提示', 'noticeCat', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  144. (116, 'N010', '一般通知', 'noticeCat', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  145. (117, '0', '隐藏', 'openType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  146. (118, '1', '公开', 'openType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  147. (119, '0', '隐藏', 'openWx', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  148. (120, '1', '公开', 'openWx', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  149. (121, '0', '隐藏', 'openParAddr', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  150. (122, '1', '公开', 'openParAddr', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  151. (123, '0', '隐藏', 'openCarId', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  152. (124, '1', '公开', 'openCarId', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  153. (125, '0', '隐藏', 'openAddr', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  154. (126, '1', '公开', 'openAddr', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  155. (127, '1', '健康状况', 'checkType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  156. (128, '2', '证照', 'checkType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  157. (129, 'A', '所有统计', 'countType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  158. (130, 'D', '日统计', 'countType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  159. (131, 'M', '月统计', 'countType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  160. (132, 'Q', '季统计', 'countType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  161. (133, 'Y', '年统计', 'countType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  162. (134, 'O', '其它考试题', 'examType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  163. (135, 'P', '航前准备题', 'examType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  164. (136, 'C', '乘务', 'fpType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  165. (137, 'F', '飞行', 'fpType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  166. (138, 'S', '安全', 'fpType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  167. (139, '0', '非全天', 'isAllday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  168. (140, '1', '全天', 'isAllday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  169. (141, '0', '未完成', 'isFinished', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  170. (142, '1', '完成', 'isFinished', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  171. (143, '0', '选读', 'isMustReed', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  172. (144, '1', '必读', 'isMustReed', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  173. (145, '0', '未通过', 'isPassed', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  174. (146, '1', '通过', 'isPassed', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  175. (147, '0', '未读', 'isRead', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  176. (148, '1', '已读', 'isRead', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  177. (149, '0', '回答错误', 'isRight', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  178. (150, '1', '回答正确', 'isRight', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  179. (151, '0', '不显示', 'isShow', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  180. (152, '1', '显示', 'isShow', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  181. (153, 'DD', '特急报', 'noteLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  182. (154, 'FF', '加急报', 'noteLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  183. (155, 'GG', '急报', 'noteLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  184. (156, 'JJ', '快报', 'noteLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  185. (157, 'LL', '平报', 'noteLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  186. (158, 'SS', '遇险报', 'noteLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  187. (159, 'C', '公司', 'noticeLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  188. (160, 'D', '部门', 'noticeLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  189. (161, 'G', '局方', 'noticeLevel', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  190. (162, 'A', '全部', 'noticeType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  191. (163, 'C', '乘务员', 'noticeType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  192. (164, 'F', '飞行员', 'noticeType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  193. (165, 'S', '安全员', 'noticeType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  194. (166, '1', '单项选择', 'questType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  195. (167, '2', '多项选择', 'questType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  196. (168, '3', '填空', 'questType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  197. (169, '4', '问答题', 'questType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  198. (170, '0', '未读', 'readState', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  199. (171, '1', '已读', 'readState', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  200. (172, 'B', '按钮', 'resType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  201. (173, 'M', '菜单', 'resType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  202. (174, 'C', '乘务', 'roleType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  203. (175, 'F', '飞行', 'roleType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  204. (176, 'S', '安全', 'roleType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  205. (177, '0', '无效', 'state', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  206. (178, '1', '有效', 'state', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  207. (179, '1', '全部', 'targetUserType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  208. (180, '2', '中方', 'targetUserType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  209. (181, '3', '外籍', 'targetUserType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  210. (182, '4', '港澳', 'targetUserType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  211. (183, '5', '台湾', 'targetUserType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  212. (184, 'A', '全部', 'userType', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  213. (188, '0', '星期日', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  214. (189, '1', '星期一', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  215. (190, '2', '星期二', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  216. (191, '3', '星期三', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  217. (192, '4', '星期四', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  218. (193, '5', '星期五', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  219. (194, '6', '星期六', 'weekday', NULL, NULL, '1', NULL, NULL, '2017-11-13 09:50:49', NULL, NULL, NULL),
  220. (195, 'IFS13', '乘务督查', 'C_Tech_Level', NULL, NULL, '', 14, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  221. (196, 'IFS12', '乘务检查员', 'C_Tech_Level', NULL, NULL, '', 13, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  222. (197, 'IFS11', '公司检查员', 'C_Tech_Level', NULL, NULL, '', 12, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  223. (198, 'IFS1', '乘务教员', 'C_Tech_Level', NULL, NULL, '', 11, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  224. (199, 'IFS9', '三级乘务长', 'C_Tech_Level', NULL, NULL, '', 10, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  225. (200, 'IFS8', '二级乘务长', 'C_Tech_Level', NULL, NULL, '', 9, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  226. (201, 'IPS', '一级乘务长', 'C_Tech_Level', NULL, NULL, '', 8, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  227. (202, 'IFS6', '见习乘务长', 'C_Tech_Level', NULL, NULL, '', 7, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  228. (203, 'IFS', '二级区域乘务长', 'C_Tech_Level', NULL, NULL, '', 6, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  229. (204, 'IFS4', '一级区域乘务长', 'C_Tech_Level', NULL, NULL, '', 5, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  230. (205, 'ISS', '乘务员', 'C_Tech_Level', NULL, NULL, '', 4, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  231. (206, 'IFS2', '初级乘务员', 'C_Tech_Level', NULL, NULL, '', 3, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  232. (207, 'IJS', '见习乘务员', 'C_Tech_Level', NULL, NULL, '', 2, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  233. (208, 'IFS0', '乘务学员', 'C_Tech_Level', NULL, NULL, '', 1, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  234. (209, 'IS7', '安全员教员', 'S_Tech_Level', NULL, NULL, '', 8, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  235. (210, 'IS6', '资深安全员', 'S_Tech_Level', NULL, NULL, '', 7, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  236. (211, 'IS5', '高级安全员', 'S_Tech_Level', NULL, NULL, '', 6, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  237. (212, 'IS4', '中级安全员', 'S_Tech_Level', NULL, NULL, '', 5, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  238. (213, 'IS3', '初级安全员', 'S_Tech_Level', NULL, NULL, '', 4, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  239. (214, 'IS8', '安全员检查员', 'S_Tech_Level', NULL, NULL, '', 3, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  240. (215, 'IS2', '见习安全员', 'S_Tech_Level', NULL, NULL, '', 2, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  241. (216, 'IS1', '安全员学员', 'S_Tech_Level', NULL, NULL, '', 1, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  242. (217, 'IB001', 'C类教员', 'F_Tech_Level', NULL, NULL, '', 15, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  243. (218, 'IB002', 'B类教员', 'F_Tech_Level', NULL, NULL, '', 14, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  244. (219, 'IB003', 'A类教员', 'F_Tech_Level', NULL, NULL, '', 13, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  245. (220, 'IC003', '三级机长', 'F_Tech_Level', NULL, NULL, '', 12, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  246. (221, 'IC002', '二级机长', 'F_Tech_Level', NULL, NULL, '', 11, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  247. (222, 'IC001', '一级机长', 'F_Tech_Level', NULL, NULL, '', 10, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  248. (223, 'IC004', '新机长', 'F_Tech_Level', NULL, NULL, '', 9, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  249. (224, 'ID001', '资深副驾', 'F_Tech_Level', NULL, NULL, '', 8, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  250. (225, 'ID002', '五级副驾', 'F_Tech_Level', NULL, NULL, '', 7, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  251. (226, 'ID003', '四级副驾', 'F_Tech_Level', NULL, NULL, '', 6, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  252. (227, 'ID004', '三级副驾', 'F_Tech_Level', NULL, NULL, '', 5, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  253. (228, 'ID005', '二级副驾', 'F_Tech_Level', NULL, NULL, '', 4, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  254. (229, 'ID006', '一级副驾', 'F_Tech_Level', NULL, NULL, '', 3, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  255. (230, 'ID007', '初级副驾', 'F_Tech_Level', NULL, NULL, '', 2, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  256. (231, 'ID008', '观察员', 'F_Tech_Level', NULL, NULL, '', 1, NULL, '2017-11-15 10:16:41', NULL, NULL, NULL),
  257. (258, 'func_error', '功能问题', 'feedbackType', NULL, NULL, '', NULL, NULL, '2017-11-16 08:57:10', NULL, NULL, NULL),
  258. (259, 'fit_error', '兼容性问题', 'feedbackType', NULL, NULL, '', NULL, NULL, '2017-11-16 08:57:10', NULL, NULL, NULL),
  259. (260, 'crash_error', '闪退、卡顿问题', 'feedbackType', NULL, NULL, '', NULL, NULL, '2017-11-16 08:57:10', NULL, NULL, NULL),
  260. (261, 'ue_error', '用户体验问题', 'feedbackType', NULL, NULL, '', NULL, NULL, '2017-11-16 08:57:10', NULL, NULL, NULL),
  261. (262, 'other_error', '其他问题', 'feedbackType', NULL, NULL, '', NULL, NULL, '2017-11-16 08:57:10', NULL, NULL, NULL),
  262. (263, '0', '错误', 'isRightKey', NULL, NULL, '1', NULL, NULL, '2017-11-21 10:59:16', NULL, NULL, NULL),
  263. (264, '1', '正确', 'isRightKey', NULL, NULL, '1', NULL, NULL, '2017-11-21 10:59:16', NULL, NULL, NULL),
  264. (265, '1', '全体', 'userScope', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  265. (266, '2', '特定范围', 'userScope', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  266. (267, '1', '随机', 'examQuestScope', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  267. (268, '2', '指定', 'examQuestScope', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  268. (269, 'A', '通用', 'foreignerPilot', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  269. (270, 'D', '国内航线', 'foreignerPilot', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  270. (271, 'I', '外籍航线', 'foreignerPilot', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  271. (272, 'Z', '主用航路', 'routeType', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  272. (273, 'B', '备用航路', 'routeType', NULL, NULL, '1', NULL, NULL, '2017-11-27 01:30:18', NULL, NULL, NULL),
  273. (283, 'OSHOTEL', '酒店', 'outstationType', NULL, NULL, '', NULL, NULL, '2017-11-27 09:36:06', NULL, NULL, NULL),
  274. (284, 'INNERBUS', '内场机组车', 'outstationType', NULL, NULL, '', NULL, NULL, '2017-11-27 09:36:06', NULL, NULL, NULL),
  275. (285, 'OUTBUS', '外场机组车', 'outstationType', NULL, NULL, '', NULL, NULL, '2017-11-27 09:36:06', NULL, NULL, NULL),
  276. (293, '0', '间隔扫描', 'trigerType', NULL, NULL, '1', NULL, NULL, '2017-12-04 07:04:03', NULL, NULL, NULL),
  277. (294, '1', '定时扫描', 'trigerType', NULL, NULL, '1', NULL, NULL, '2017-12-04 07:04:03', NULL, NULL, NULL),
  278. (295, '1', 'APP内推', 'sendType', NULL, NULL, '1', NULL, NULL, '2017-12-04 07:04:03', NULL, NULL, NULL),
  279. (296, '2', '短信', 'sendType', NULL, NULL, '1', NULL, NULL, '2017-12-04 07:04:03', NULL, NULL, NULL),
  280. (297, '1', '发布中版本', 'isCurrent', NULL, NULL, '1', NULL, NULL, '2017-12-06 05:46:40', NULL, NULL, NULL),
  281. (298, '0', '历史版本', 'isCurrent', NULL, NULL, '1', NULL, NULL, '2017-12-06 05:46:40', NULL, NULL, NULL),
  282. (299, '0', '不在', 'onBlackList', NULL, NULL, '1', NULL, NULL, '2017-12-06 05:46:40', NULL, NULL, NULL),
  283. (300, '1', '在', 'onBlackList', NULL, NULL, '1', NULL, NULL, '2017-12-06 05:46:40', NULL, NULL, NULL),
  284. (301, 'N006', '风险预警', 'N_TYPE', NULL, 'RISK NOTICE', '', NULL, NULL, '2017-12-07 06:38:55', NULL, NULL, NULL),
  285. (302, 'N007', '业务通告', 'N_TYPE', NULL, 'BUSINESS NOTICE', '', NULL, NULL, '2017-12-07 06:38:55', NULL, NULL, NULL),
  286. (303, 'F', '飞行员', 'crewType', NULL, NULL, '1', NULL, NULL, '2017-12-07 09:42:47', NULL, NULL, NULL),
  287. (304, 'C', '乘务员', 'crewType', NULL, NULL, '1', NULL, NULL, '2017-12-07 09:42:47', NULL, NULL, NULL),
  288. (305, 'S', '安全员', 'crewType', NULL, NULL, '1', NULL, NULL, '2017-12-07 09:42:47', NULL, NULL, NULL);
  289. -- --------------------------------------------------------
  290. --
  291. -- 表的结构 `com_dictionary_mapping`
  292. --
  293. CREATE TABLE IF NOT EXISTS `com_dictionary_mapping` (
  294. `id` int(11) NOT NULL AUTO_INCREMENT,
  295. `dict_type` varchar(30) DEFAULT NULL COMMENT '平台字典类型',
  296. `dict_code_cloud` varchar(20) NOT NULL COMMENT '平台字典项编号',
  297. `dict_code_third_sys` varchar(20) DEFAULT NULL COMMENT '第三方系统字典项编号',
  298. `dict_code_third_type` varchar(20) DEFAULT NULL COMMENT '第三方系统中字典类型,abnormal_reason不正常原因',
  299. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  300. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  301. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  302. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  303. PRIMARY KEY (`id`),
  304. KEY `ind_dict_mapping_third_sys` (`dict_code_third_sys`,`dict_code_third_type`)
  305. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='第三方数据字典com_dictionary与业务系统字典映射';
  306. --
  307. -- 转存表中的数据 `com_dictionary_mapping`
  308. --
  309. INSERT INTO `com_dictionary_mapping` (`id`, `dict_type`, `dict_code_cloud`, `dict_code_third_sys`, `dict_code_third_type`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  310. (1, 'certType', 'TCHC', 'TC', NULL, '2017-11-15 11:44:35', NULL, NULL, NULL);
  311. -- --------------------------------------------------------
  312. --
  313. -- 表的结构 `ep_board_spot`
  314. --
  315. CREATE TABLE IF NOT EXISTS `ep_board_spot` (
  316. `combine_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '对应关系编码',
  317. `ep_id` int(11) NOT NULL COMMENT '采集机ID',
  318. `board_id` int(11) NOT NULL COMMENT '控制板ID',
  319. `spot_id` int(11) NOT NULL COMMENT '工位ID',
  320. `arg` int(11) NOT NULL COMMENT '附加参数',
  321. PRIMARY KEY (`combine_id`)
  322. ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8 COMMENT='采集点对应';
  323. -- --------------------------------------------------------
  324. --
  325. -- 表的结构 `ep_config`
  326. --
  327. CREATE TABLE IF NOT EXISTS `ep_config` (
  328. `ep_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '采集机ID',
  329. `flow_id` int(11) NOT NULL COMMENT '生产线ID',
  330. `spots` int(11) NOT NULL COMMENT '工位数量',
  331. `extra` varchar(5000) NOT NULL COMMENT '设置选项',
  332. PRIMARY KEY (`ep_id`)
  333. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='采集设置';
  334. -- --------------------------------------------------------
  335. --
  336. -- 表的结构 `ep_state`
  337. --
  338. CREATE TABLE IF NOT EXISTS `ep_state` (
  339. `ep_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '采集机ID',
  340. `spot_data` varchar(5000) NOT NULL COMMENT '工位数据',
  341. `spot_worker` varchar(5000) NOT NULL COMMENT '工人产量数据',
  342. PRIMARY KEY (`ep_id`)
  343. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='采集状态';
  344. -- --------------------------------------------------------
  345. --
  346. -- 表的结构 `ep_system`
  347. --
  348. CREATE TABLE IF NOT EXISTS `ep_system` (
  349. `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '数据ID',
  350. `ep_id` int(11) NOT NULL COMMENT '设备Id',
  351. `cpu` varchar(100) NOT NULL COMMENT 'CPU使用',
  352. `memory` varchar(100) NOT NULL COMMENT '内存使用',
  353. `processes` varchar(5000) NOT NULL COMMENT '进程信息',
  354. `os` varchar(100) NOT NULL COMMENT '操作系统',
  355. `runtime` varchar(2000) NOT NULL COMMENT '运行环境',
  356. PRIMARY KEY (`data_id`)
  357. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='采集机运行状态';
  358. -- --------------------------------------------------------
  359. --
  360. -- 表的结构 `fc_bi_factory_daily`
  361. --
  362. CREATE TABLE IF NOT EXISTS `fc_bi_factory_daily` (
  363. `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '数据标识',
  364. `pass_num` int(11) NOT NULL COMMENT '合格品数量',
  365. `fc_day` date NOT NULL COMMENT '记录日期',
  366. `fail_num` int(11) NOT NULL COMMENT '坏品数量',
  367. `fail_rate` int(11) NOT NULL COMMENT '坏品率',
  368. `avg_due` int(11) NOT NULL COMMENT '平均堆积数',
  369. PRIMARY KEY (`data_id`),
  370. UNIQUE KEY `fc_day` (`fc_day`)
  371. ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 COMMENT='全厂按日统计';
  372. -- --------------------------------------------------------
  373. --
  374. -- 表的结构 `fc_bi_flow_daily`
  375. --
  376. CREATE TABLE IF NOT EXISTS `fc_bi_flow_daily` (
  377. `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '统计ID',
  378. `flow_id` int(11) NOT NULL COMMENT '生产线ID',
  379. `fc_day` date NOT NULL COMMENT '记录日期',
  380. `fail_num` int(11) NOT NULL COMMENT '坏品数量',
  381. `fail_rate` int(11) NOT NULL COMMENT '坏品率',
  382. `avg_due` int(11) NOT NULL COMMENT '平均堆积数',
  383. `pass_num` int(11) NOT NULL COMMENT '合格品数量',
  384. PRIMARY KEY (`data_id`)
  385. ) ENGINE=InnoDB AUTO_INCREMENT=130 DEFAULT CHARSET=utf8 COMMENT='产线按日统计';
  386. -- --------------------------------------------------------
  387. --
  388. -- 表的结构 `fc_bi_worker_daily`
  389. --
  390. CREATE TABLE IF NOT EXISTS `fc_bi_worker_daily` (
  391. `data_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '统计数据ID',
  392. `worker_id` int(11) NOT NULL COMMENT '员工ID',
  393. `fc_day` date NOT NULL COMMENT '记录日期',
  394. `fail_num` int(11) NOT NULL COMMENT '坏品数量',
  395. `fail_rate` int(11) NOT NULL COMMENT '坏品率',
  396. `avg_due` int(11) NOT NULL COMMENT '平均堆积数',
  397. `pass_num` int(11) NOT NULL COMMENT '合格品数量',
  398. PRIMARY KEY (`data_id`),
  399. UNIQUE KEY `worker_id` (`worker_id`,`fc_day`)
  400. ) ENGINE=InnoDB AUTO_INCREMENT=676 DEFAULT CHARSET=utf8 COMMENT='按日统计';
  401. -- --------------------------------------------------------
  402. --
  403. -- 表的结构 `fc_flow`
  404. --
  405. CREATE TABLE IF NOT EXISTS `fc_flow` (
  406. `flow_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '生产线ID',
  407. `flow_name` varchar(100) NOT NULL COMMENT '生产线名称',
  408. `flow_place` varchar(100) NOT NULL COMMENT '生产线地点',
  409. `flow_master_id` int(11) NOT NULL COMMENT '负责人ID',
  410. `flow_spots` int(11) NOT NULL COMMENT '生产线工位数量',
  411. PRIMARY KEY (`flow_id`)
  412. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='生产线信息';
  413. -- --------------------------------------------------------
  414. --
  415. -- 表的结构 `fc_sector`
  416. --
  417. CREATE TABLE IF NOT EXISTS `fc_sector` (
  418. `sector_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '工序ID',
  419. `sector_name` varchar(200) NOT NULL COMMENT '工序名称',
  420. `flow_id` int(11) NOT NULL COMMENT '生产线ID',
  421. `sector_order` int(11) NOT NULL COMMENT '产线内顺序',
  422. `counter` int(11) DEFAULT '1' COMMENT '计数方法',
  423. PRIMARY KEY (`sector_id`)
  424. ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='工序定义';
  425. -- --------------------------------------------------------
  426. --
  427. -- 表的结构 `fc_sector_spot`
  428. --
  429. CREATE TABLE IF NOT EXISTS `fc_sector_spot` (
  430. `combine_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '关系ID',
  431. `sector_id` int(11) NOT NULL COMMENT '工序ID',
  432. `spot_id` int(11) NOT NULL COMMENT '工位ID',
  433. `spot_order` int(11) NOT NULL COMMENT '工序内工位顺序',
  434. PRIMARY KEY (`combine_id`)
  435. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='工序内部';
  436. -- --------------------------------------------------------
  437. --
  438. -- 表的结构 `fc_spot`
  439. --
  440. CREATE TABLE IF NOT EXISTS `fc_spot` (
  441. `spot_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '工位ID',
  442. `flow_id` int(11) NOT NULL COMMENT '生产线ID',
  443. `spot_name` varchar(50) DEFAULT NULL COMMENT '工位名称',
  444. `order_num` int(11) NOT NULL COMMENT '生产线内顺序',
  445. `ratio` int(11) NOT NULL COMMENT '产能比例',
  446. PRIMARY KEY (`spot_id`)
  447. ) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8 COMMENT='生产工位表';
  448. -- --------------------------------------------------------
  449. --
  450. -- 表的结构 `fc_spot_extra`
  451. --
  452. CREATE TABLE IF NOT EXISTS `fc_spot_extra` (
  453. `spot_id` int(11) NOT NULL COMMENT '工位ID',
  454. `spot_period` int(11) NOT NULL COMMENT '工位统计周期',
  455. `spot_threshold_failnum` int(11) NOT NULL COMMENT '坏品数阈值',
  456. `spot_threshold_failrate` decimal(10,0) NOT NULL COMMENT '坏品率阈值',
  457. `spot_threshold_min_output` int(11) NOT NULL COMMENT '产能阈值',
  458. PRIMARY KEY (`spot_id`)
  459. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='工位统计信息';
  460. -- --------------------------------------------------------
  461. --
  462. -- 表的结构 `fc_system_event`
  463. --
  464. CREATE TABLE IF NOT EXISTS `fc_system_event` (
  465. `sysev_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '事件记录ID',
  466. `event_type` int(11) NOT NULL COMMENT '事件类型',
  467. `event_level` int(11) NOT NULL COMMENT '事件严重等级',
  468. `event_title` varchar(300) DEFAULT NULL COMMENT '事件标题',
  469. `event_detail` varchar(1000) DEFAULT NULL COMMENT '事件详情',
  470. `event_status` int(11) NOT NULL COMMENT '事件状态',
  471. `time_point` bigint(20) NOT NULL COMMENT '发生时间',
  472. PRIMARY KEY (`sysev_id`)
  473. ) ENGINE=InnoDB AUTO_INCREMENT=12971 DEFAULT CHARSET=utf8 COMMENT='系统事件';
  474. -- --------------------------------------------------------
  475. --
  476. -- 表的结构 `fc_worker`
  477. --
  478. CREATE TABLE IF NOT EXISTS `fc_worker` (
  479. `user_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '本系统用户ID',
  480. `user_local_no` char(30) DEFAULT NULL COMMENT '公司内工号',
  481. `user_login_name` varchar(50) DEFAULT NULL COMMENT '员工设备名',
  482. `password` varchar(50) DEFAULT NULL COMMENT '密码',
  483. `user_name` varchar(50) DEFAULT NULL COMMENT '姓名',
  484. `user_name_en` varchar(50) DEFAULT NULL COMMENT '拼音',
  485. `mobile_phone` varchar(50) DEFAULT NULL COMMENT '手机',
  486. `dept_id` varchar(50) DEFAULT NULL COMMENT '部门ID',
  487. `dept_name` varchar(30) DEFAULT NULL COMMENT '部门名称',
  488. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态1有效,0无效',
  489. `gender` varchar(1) DEFAULT NULL COMMENT '性别',
  490. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  491. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人的工号',
  492. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  493. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人的工号',
  494. PRIMARY KEY (`user_id`),
  495. UNIQUE KEY `user_local_no` (`user_local_no`),
  496. KEY `idx_userno` (`user_id`)
  497. ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8 COMMENT='员工信息表';
  498. -- --------------------------------------------------------
  499. --
  500. -- 表的结构 `fc_work_period`
  501. --
  502. CREATE TABLE IF NOT EXISTS `fc_work_period` (
  503. `period_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '时间段ID',
  504. `period_name` varchar(100) NOT NULL COMMENT '时间段名称',
  505. `start_second` int(11) NOT NULL COMMENT '开始时间',
  506. `end_second` int(11) NOT NULL COMMENT '结束时间',
  507. PRIMARY KEY (`period_id`)
  508. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='工作时间段信息';
  509. -- --------------------------------------------------------
  510. --
  511. -- 表的结构 `fc_work_raw`
  512. --
  513. CREATE TABLE IF NOT EXISTS `fc_work_raw` (
  514. `raw_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '原始数据ID',
  515. `schedule_id` int(11) NOT NULL DEFAULT '0' COMMENT '班次ID',
  516. `board_id` int(11) NOT NULL COMMENT '控制板ID',
  517. `timing` bigint(20) NOT NULL COMMENT '时间点',
  518. `handheld_id` int(11) NOT NULL COMMENT '手持ID',
  519. `pass_num` int(11) NOT NULL COMMENT '合格品数量',
  520. `total_num` int(11) NOT NULL COMMENT '总计数量',
  521. `hand_pass` int(11) NOT NULL COMMENT '手持合格数',
  522. `hand_total` int(11) NOT NULL COMMENT '手持总计数',
  523. PRIMARY KEY (`raw_id`),
  524. KEY `handheld_id` (`handheld_id`),
  525. KEY `board_id` (`board_id`)
  526. ) ENGINE=InnoDB AUTO_INCREMENT=121611 DEFAULT CHARSET=utf8 COMMENT='原始工作量数据';
  527. -- --------------------------------------------------------
  528. --
  529. -- 表的结构 `fc_work_schedule`
  530. --
  531. CREATE TABLE IF NOT EXISTS `fc_work_schedule` (
  532. `schedule_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '班次ID',
  533. `work_day` date NOT NULL COMMENT '班次日期',
  534. `start_time` datetime NOT NULL COMMENT '实际开始',
  535. `end_time` datetime NOT NULL COMMENT '实际结束',
  536. `period_id` int(11) NOT NULL COMMENT '工作时间段ID',
  537. `flow_id` int(11) NOT NULL COMMENT '生产线ID',
  538. `start_uid` int(11) NOT NULL COMMENT '上班操作人',
  539. `end_uid` int(11) NOT NULL COMMENT '下班操作人',
  540. `status` int(11) NOT NULL COMMENT '班次状态',
  541. PRIMARY KEY (`schedule_id`)
  542. ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8 COMMENT='班次信息';
  543. -- --------------------------------------------------------
  544. --
  545. -- 表的结构 `fc_work_schedule_event`
  546. --
  547. CREATE TABLE IF NOT EXISTS `fc_work_schedule_event` (
  548. `event_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '事件记录ID',
  549. `schedule_id` int(11) NOT NULL COMMENT '班次ID',
  550. `evtype` int(11) NOT NULL COMMENT '事件类型',
  551. `period_id` int(11) NOT NULL COMMENT '时间段ID',
  552. `worker_id` int(11) NOT NULL COMMENT '工人ID',
  553. `spot_id` int(11) NOT NULL COMMENT '工位ID',
  554. `occurance` datetime NOT NULL COMMENT '实际发生时间',
  555. PRIMARY KEY (`event_id`)
  556. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='工作上下班信息';
  557. -- --------------------------------------------------------
  558. --
  559. -- 表的结构 `fc_work_schedule_load`
  560. --
  561. CREATE TABLE IF NOT EXISTS `fc_work_schedule_load` (
  562. `load_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '班次产量ID',
  563. `schedule_id` int(11) NOT NULL COMMENT '班次ID',
  564. `spot_id` int(11) NOT NULL COMMENT '工位ID',
  565. `user_id` int(11) NOT NULL COMMENT '员工ID',
  566. `pass_num` int(11) NOT NULL COMMENT '合格数量',
  567. `fail_num` int(11) NOT NULL COMMENT '坏品数量',
  568. `due` int(11) NOT NULL COMMENT '堆积数量',
  569. `time_point` bigint(20) NOT NULL COMMENT '时间点',
  570. PRIMARY KEY (`load_id`)
  571. ) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8 COMMENT='班次产量信息';
  572. -- --------------------------------------------------------
  573. --
  574. -- 表的结构 `fc_work_schedule_outcome`
  575. --
  576. CREATE TABLE IF NOT EXISTS `fc_work_schedule_outcome` (
  577. `outcome_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '产能数据ID',
  578. `schedule_id` int(4) NOT NULL COMMENT '班次ID',
  579. `spot_id` int(11) NOT NULL COMMENT '工位ID',
  580. `worker_id` int(11) NOT NULL COMMENT '员工ID',
  581. `pass_num` int(11) NOT NULL COMMENT '合格数量',
  582. `fail_num` int(11) NOT NULL COMMENT '坏品数量',
  583. `avg_due` int(11) NOT NULL COMMENT '平均堆积数量',
  584. PRIMARY KEY (`outcome_id`)
  585. ) ENGINE=InnoDB AUTO_INCREMENT=162 DEFAULT CHARSET=utf8 COMMENT='产能数据结算';
  586. -- --------------------------------------------------------
  587. --
  588. -- 表的结构 `sys_atachment`
  589. --
  590. CREATE TABLE IF NOT EXISTS `sys_atachment` (
  591. `id` int(11) NOT NULL AUTO_INCREMENT,
  592. `parent_table_name` varchar(30) NOT NULL COMMENT '主表名',
  593. `parent_row_id` varchar(50) NOT NULL COMMENT '主表记录ID',
  594. `file_name` varchar(500) NOT NULL COMMENT '文件名',
  595. `file_ext_name` varchar(20) NOT NULL COMMENT '文件扩展名',
  596. `file_path` varchar(500) NOT NULL COMMENT '文件路径',
  597. `order_no` tinyint(4) DEFAULT NULL COMMENT '排序,正序1在前',
  598. `created_by_code` varchar(10) DEFAULT NULL COMMENT '创建人工号',
  599. `created_by_name` varchar(30) DEFAULT NULL COMMENT '创建人姓名',
  600. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  601. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  602. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  603. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  604. PRIMARY KEY (`id`)
  605. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='附件';
  606. -- --------------------------------------------------------
  607. --
  608. -- 表的结构 `sys_feedback`
  609. --
  610. CREATE TABLE IF NOT EXISTS `sys_feedback` (
  611. `id` int(11) NOT NULL AUTO_INCREMENT,
  612. `feedback_type` varchar(20) NOT NULL COMMENT '反馈类型字典值,字典feedbackType',
  613. `feedback_type_name` varchar(50) DEFAULT NULL COMMENT '反馈类型名称',
  614. `content` varchar(2000) NOT NULL COMMENT '内容',
  615. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  616. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  617. `modified_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '修改日期',
  618. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人',
  619. PRIMARY KEY (`id`)
  620. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='问题反馈';
  621. -- --------------------------------------------------------
  622. --
  623. -- 表的结构 `sys_master_server`
  624. --
  625. CREATE TABLE IF NOT EXISTS `sys_master_server` (
  626. `item_id` int(10) UNSIGNED NOT NULL,
  627. `server_ip` int(10) UNSIGNED NOT NULL COMMENT '主控IP',
  628. `updatetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间戳',
  629. PRIMARY KEY (`item_id`)
  630. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='负载均衡-定时任务主服务器';
  631. -- --------------------------------------------------------
  632. --
  633. -- 表的结构 `sys_personal`
  634. --
  635. CREATE TABLE IF NOT EXISTS `sys_personal` (
  636. `user_no` varchar(20) NOT NULL COMMENT '用户工号',
  637. `head_img` varchar(200) DEFAULT NULL COMMENT '头像URL',
  638. `birthday` date DEFAULT NULL COMMENT '出生日期',
  639. `phone_bak` varchar(30) DEFAULT NULL COMMENT '备用电话',
  640. `email` varchar(50) DEFAULT NULL COMMENT '邮箱',
  641. `specialty` varchar(100) DEFAULT NULL COMMENT '特长',
  642. `wechat` varchar(30) DEFAULT NULL COMMENT '微信号',
  643. `open_wx` tinyint(1) DEFAULT '0' COMMENT '是否公开微信号 1公开0隐藏',
  644. `address` varchar(200) DEFAULT NULL COMMENT '深圳住址',
  645. `open_addr` tinyint(1) DEFAULT NULL COMMENT '是否公开深圳住址 1公开0隐藏',
  646. `car_id` varchar(20) DEFAULT NULL COMMENT '车牌号',
  647. `open_car_id` tinyint(1) DEFAULT NULL COMMENT '是否公开车牌 1公开0隐藏',
  648. `parent_addr` varchar(200) DEFAULT NULL COMMENT '父母住址',
  649. `open_par_addr` tinyint(1) DEFAULT NULL COMMENT '是否父母地址 1公开0隐藏',
  650. `life_photo_1` varchar(200) DEFAULT NULL COMMENT '生活照地址1',
  651. `life_photo_2` varchar(200) DEFAULT NULL COMMENT '生活照地址2',
  652. `life_photo_3` varchar(200) DEFAULT NULL COMMENT '生活照地址3',
  653. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  654. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  655. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  656. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  657. PRIMARY KEY (`user_no`)
  658. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='个人信息';
  659. --
  660. -- 转存表中的数据 `sys_personal`
  661. --
  662. INSERT INTO `sys_personal` (`user_no`, `head_img`, `birthday`, `phone_bak`, `email`, `specialty`, `wechat`, `open_wx`, `address`, `open_addr`, `car_id`, `open_car_id`, `parent_addr`, `open_par_addr`, `life_photo_1`, `life_photo_2`, `life_photo_3`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  663. ('A0002', NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2018-01-25 15:13:49', NULL, NULL, NULL),
  664. ('DS001', NULL, NULL, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2018-03-31 12:58:17', NULL, NULL, NULL),
  665. ('V0001', NULL, NULL, '', NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2017-12-22 07:18:51', NULL, NULL, NULL);
  666. -- --------------------------------------------------------
  667. --
  668. -- 表的结构 `sys_resource`
  669. --
  670. CREATE TABLE IF NOT EXISTS `sys_resource` (
  671. `id` int(11) NOT NULL AUTO_INCREMENT,
  672. `name` varchar(50) NOT NULL COMMENT '名称',
  673. `code` varchar(80) DEFAULT NULL COMMENT '编码',
  674. `res_type` char(1) DEFAULT NULL COMMENT '资源类型(M菜单,B按钮)',
  675. `url` varchar(120) DEFAULT NULL COMMENT '菜单地址',
  676. `parent_id` int(11) DEFAULT NULL COMMENT '父ID',
  677. `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1显示,0不显示',
  678. `menu_order` tinyint(4) DEFAULT NULL COMMENT '顺序',
  679. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  680. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  681. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  682. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  683. PRIMARY KEY (`id`)
  684. ) ENGINE=InnoDB AUTO_INCREMENT=121 DEFAULT CHARSET=utf8 COMMENT='资源';
  685. --
  686. -- 转存表中的数据 `sys_resource`
  687. --
  688. INSERT INTO `sys_resource` (`id`, `name`, `code`, `res_type`, `url`, `parent_id`, `is_show`, `menu_order`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  689. (1, '系统管理', 'system', 'M', '#', 0, 1, 1, '2017-12-15 12:31:33', NULL, NULL, NULL),
  690. (2, '员工管理', 'notiem', 'M', '#', 0, 1, 3, '2017-12-15 12:31:33', NULL, NULL, NULL),
  691. (3, '生产线管理', 'message', 'M', '#', 0, 1, 4, '2017-12-15 12:31:33', NULL, NULL, NULL),
  692. (4, '生产数据', 'manufact', 'M', '#', 0, 1, 5, '2017-12-15 12:31:33', NULL, NULL, NULL),
  693. (5, '产量统计', 'bus', 'M', '#', 0, 1, 5, '2017-12-15 12:31:33', NULL, NULL, NULL),
  694. (6, '班次信息', 'biz', 'M', '#', 0, 1, 6, '2017-12-15 12:31:33', NULL, NULL, NULL),
  695. (7, '日志管理', 'log', 'M', '#', 0, 1, 7, '2017-12-15 12:31:33', NULL, NULL, NULL),
  696. (11, '角色管理', 'sysRole.listPage', 'M', '/server/sysRole/listPage', 1, 1, 11, '2017-12-15 12:31:33', NULL, NULL, NULL),
  697. (12, '人员管理', 'sysUser.listPage', 'M', '/server/sysUser/listPage', 1, 1, 12, '2017-12-15 12:31:33', NULL, NULL, NULL),
  698. (14, '附件查询', 'sysAtachment.listPage', 'M', '/server/sysAtachment/listPage', 1, 1, 14, '2017-12-15 12:31:33', NULL, NULL, NULL),
  699. (21, '员工管理', 'fcWorker.listPage', 'M', '/server/fcWorker/listPage', 2, 1, 21, '2017-12-15 12:31:33', NULL, NULL, NULL),
  700. (31, '产线信息', 'fcFlow.listPage', 'M', '/server/fcFlow/listPage', 3, 1, 31, '2017-12-15 12:31:33', NULL, NULL, NULL),
  701. (32, '工位信息', 'fcSector.listPage', 'M', '/server/fcSector/listPage', 3, 1, 32, '2017-12-15 12:31:33', NULL, NULL, NULL),
  702. (33, '工位工作点对应', 'fcSectorSpot.listPage', 'M', '/server/fcSectorSpot/listPage', 3, 1, 33, '2017-12-15 12:31:33', NULL, NULL, NULL),
  703. (34, '工作点信息', 'fcSpot.listPage', 'M', '/server/fcSpot/listPage', 3, 1, 34, '2017-12-15 12:31:33', NULL, NULL, NULL),
  704. (35, '工作点参数', 'fcSpotExtra.listPage', 'M', '/server/fcSpotExtra/listPage', 3, 0, 35, '2017-12-15 12:31:33', NULL, NULL, NULL),
  705. (37, '设备状态', 'epState.listPage', 'M', '/server/epState/listPage', 3, 1, 37, '2017-12-15 12:31:33', NULL, NULL, NULL),
  706. (38, '设备配置信息', 'epConfig.listPage', 'M', '/server/epConfig/listPage', 3, 1, 38, '2017-12-15 12:31:33', NULL, NULL, NULL),
  707. (39, '控制板对应', 'epBoardSpot.listPage', 'M', '/server/epBoardSpot/listPage', 3, 1, 39, '2017-12-15 12:31:33', NULL, NULL, NULL),
  708. (41, '结算产量', 'fcWorkScheduleOutcome.listPage', 'M', '/server/fcWorkScheduleOutcome/listPage', 4, 1, 41, '2017-12-15 12:31:33', NULL, NULL, NULL),
  709. (42, '实时产量', 'fcWorkScheduleLoad.listPage', 'M', '/server/fcWorkScheduleLoad/listPage', 4, 1, 42, '2017-12-15 12:31:33', NULL, NULL, NULL),
  710. (43, '过程数据', 'fcWorkRaw.listPage', 'M', '/server/fcWorkRaw/listPage', 4, 1, 43, '2017-12-15 12:31:33', NULL, NULL, NULL),
  711. (51, '工人日结', 'fcBiWorkerDaily.listPage', 'M', '/server/fcBiWorkerDaily/listPage', 5, 1, 51, '2017-12-15 12:31:33', NULL, NULL, NULL),
  712. (52, '产线日结', 'fcBiFlowDaily.listPage', 'M', '/server/fcBiFlowDaily/listPage', 5, 1, 52, '2017-12-15 12:31:33', NULL, NULL, NULL),
  713. (53, '工厂日结', 'fcBiFactoryDaily.listPage', 'M', '/server/fcBiFactoryDaily/listPage', 5, 1, 53, '2017-12-15 12:31:33', NULL, NULL, NULL),
  714. (61, '时间段设置', 'fcWorkPeriod.listPage', 'M', '/server/fcWorkPeriod/listPage', 6, 1, 61, '2017-12-15 12:31:33', NULL, NULL, NULL),
  715. (62, '班次记录', 'fcWorkSchedule.listPage', 'M', '/server/fcWorkSchedule/listPage', 6, 1, 62, '2017-12-15 12:31:33', NULL, NULL, NULL),
  716. (63, '生产事件', 'fcWorkScheduleEvent.listPage', 'M', '/server/fcWorkScheduleEvent/listPage', 6, 1, 63, '2017-12-15 12:31:33', NULL, NULL, NULL),
  717. (71, '运行事件', 'fcSystemEvent.listPage', 'M', '/server/fcSystemEvent/listPage', 7, 1, 71, '2018-06-21 11:19:45', NULL, NULL, NULL),
  718. (72, '公告信息', 'aoComNotice.listPage', 'M', '/server/aoComNotice/listPage', 7, 1, 72, '2017-12-15 12:31:33', NULL, NULL, NULL),
  719. (73, '文件信息', 'aoFileLearning.listPage', 'M', '/server/aoFileLearning/listPage', 7, 1, 73, '2017-12-15 12:31:33', NULL, NULL, NULL),
  720. (74, '日志信息查询', 'sysVisitLog.listPage', 'M', '/server/sysVisitLog/listPage', 7, 1, 74, '2017-12-15 12:31:33', NULL, NULL, NULL);
  721. -- --------------------------------------------------------
  722. --
  723. -- 表的结构 `sys_role`
  724. --
  725. CREATE TABLE IF NOT EXISTS `sys_role` (
  726. `id` int(11) NOT NULL AUTO_INCREMENT,
  727. `name` varchar(50) NOT NULL COMMENT '角色名称',
  728. `role_code` varchar(20) DEFAULT NULL COMMENT '角色编号',
  729. `remark` varchar(200) DEFAULT NULL COMMENT '说明',
  730. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  731. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  732. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  733. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  734. `is_default` varchar(1) DEFAULT '0',
  735. PRIMARY KEY (`id`)
  736. ) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8 COMMENT='角色';
  737. --
  738. -- 转存表中的数据 `sys_role`
  739. --
  740. INSERT INTO `sys_role` (`id`, `name`, `role_code`, `remark`, `created_on`, `created_by`, `modified_on`, `modified_by`, `is_default`) VALUES
  741. (1, '系统管理员', 'A001', '系统开发测试保留', '2017-11-17 09:56:23', 'A0001', NULL, NULL, '0'),
  742. (11, '厂长', 'N001', '高管', '2017-11-20 15:33:16', 'A0001', NULL, NULL, '0'),
  743. (12, '管理员', 'N002', '管理添改删', '2017-11-20 15:33:33', 'A0001', NULL, NULL, '0'),
  744. (13, '生产人员', 'AL01', '现场使用,登录', '2017-12-04 03:04:47', 'A0001', NULL, NULL, '0');
  745. -- --------------------------------------------------------
  746. --
  747. -- 表的结构 `sys_role_resource`
  748. --
  749. CREATE TABLE IF NOT EXISTS `sys_role_resource` (
  750. `id` int(11) NOT NULL AUTO_INCREMENT,
  751. `role_id` int(11) NOT NULL,
  752. `resource_id` int(11) NOT NULL,
  753. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  754. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  755. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  756. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  757. PRIMARY KEY (`id`)
  758. ) ENGINE=InnoDB AUTO_INCREMENT=1556 DEFAULT CHARSET=utf8 COMMENT='角色资源权限';
  759. --
  760. -- 转存表中的数据 `sys_role_resource`
  761. --
  762. INSERT INTO `sys_role_resource` (`id`, `role_id`, `resource_id`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  763. (516, 4, 21, '2017-12-04 02:55:19', NULL, NULL, NULL),
  764. (517, 4, 22, '2017-12-04 02:55:19', NULL, NULL, NULL),
  765. (518, 4, 24, '2017-12-04 02:55:19', NULL, NULL, NULL),
  766. (519, 4, 25, '2017-12-04 02:55:19', NULL, NULL, NULL),
  767. (520, 4, 2, '2017-12-04 02:55:19', NULL, NULL, NULL),
  768. (521, 4, -1, '2017-12-04 02:55:19', NULL, NULL, NULL),
  769. (522, 18, -1, '2017-12-04 03:04:47', NULL, NULL, NULL),
  770. (523, 18, 11, '2017-12-04 03:04:47', NULL, NULL, NULL),
  771. (524, 18, 12, '2017-12-04 03:04:47', NULL, NULL, NULL),
  772. (525, 18, 15, '2017-12-04 03:04:47', NULL, NULL, NULL),
  773. (526, 18, 21, '2017-12-04 03:04:47', NULL, NULL, NULL),
  774. (527, 18, 22, '2017-12-04 03:04:47', NULL, NULL, NULL),
  775. (528, 18, 24, '2017-12-04 03:04:47', NULL, NULL, NULL),
  776. (529, 18, 25, '2017-12-04 03:04:47', NULL, NULL, NULL),
  777. (530, 18, 31, '2017-12-04 03:04:47', NULL, NULL, NULL),
  778. (531, 18, 32, '2017-12-04 03:04:47', NULL, NULL, NULL),
  779. (532, 18, 33, '2017-12-04 03:04:47', NULL, NULL, NULL),
  780. (533, 18, 34, '2017-12-04 03:04:47', NULL, NULL, NULL),
  781. (534, 18, 35, '2017-12-04 03:04:47', NULL, NULL, NULL),
  782. (535, 18, 41, '2017-12-04 03:04:47', NULL, NULL, NULL),
  783. (536, 18, 42, '2017-12-04 03:04:47', NULL, NULL, NULL),
  784. (537, 18, 43, '2017-12-04 03:04:47', NULL, NULL, NULL),
  785. (538, 18, 51, '2017-12-04 03:04:47', NULL, NULL, NULL),
  786. (539, 18, 52, '2017-12-04 03:04:47', NULL, NULL, NULL),
  787. (540, 18, 53, '2017-12-04 03:04:47', NULL, NULL, NULL),
  788. (541, 18, 54, '2017-12-04 03:04:47', NULL, NULL, NULL),
  789. (542, 18, 55, '2017-12-04 03:04:47', NULL, NULL, NULL),
  790. (543, 18, 61, '2017-12-04 03:04:47', NULL, NULL, NULL),
  791. (544, 18, 62, '2017-12-04 03:04:47', NULL, NULL, NULL),
  792. (545, 18, 63, '2017-12-04 03:04:47', NULL, NULL, NULL),
  793. (546, 18, 71, '2017-12-04 03:04:47', NULL, NULL, NULL),
  794. (547, 18, 1, '2017-12-04 03:04:47', NULL, NULL, NULL),
  795. (548, 18, 2, '2017-12-04 03:04:47', NULL, NULL, NULL),
  796. (549, 18, 3, '2017-12-04 03:04:47', NULL, NULL, NULL),
  797. (550, 18, 4, '2017-12-04 03:04:47', NULL, NULL, NULL),
  798. (551, 18, 5, '2017-12-04 03:04:47', NULL, NULL, NULL),
  799. (552, 18, 6, '2017-12-04 03:04:47', NULL, NULL, NULL),
  800. (553, 18, 7, '2017-12-04 03:04:47', NULL, NULL, NULL),
  801. (649, 20, 3, '2017-12-04 07:52:38', NULL, NULL, NULL),
  802. (650, 20, 31, '2017-12-04 07:52:38', NULL, NULL, NULL),
  803. (651, 20, 32, '2017-12-04 07:52:38', NULL, NULL, NULL),
  804. (652, 20, 33, '2017-12-04 07:52:38', NULL, NULL, NULL),
  805. (653, 20, 34, '2017-12-04 07:52:38', NULL, NULL, NULL),
  806. (654, 20, 35, '2017-12-04 07:52:38', NULL, NULL, NULL),
  807. (655, 20, -1, '2017-12-04 07:52:38', NULL, NULL, NULL),
  808. (734, 5, 11, '2017-12-08 03:35:57', NULL, NULL, NULL),
  809. (735, 5, 12, '2017-12-08 03:35:57', NULL, NULL, NULL),
  810. (736, 5, 15, '2017-12-08 03:35:57', NULL, NULL, NULL),
  811. (737, 5, 21, '2017-12-08 03:35:57', NULL, NULL, NULL),
  812. (738, 5, 22, '2017-12-08 03:35:57', NULL, NULL, NULL),
  813. (739, 5, 24, '2017-12-08 03:35:57', NULL, NULL, NULL),
  814. (740, 5, 25, '2017-12-08 03:35:57', NULL, NULL, NULL),
  815. (741, 5, 31, '2017-12-08 03:35:57', NULL, NULL, NULL),
  816. (742, 5, 32, '2017-12-08 03:35:57', NULL, NULL, NULL),
  817. (743, 5, 33, '2017-12-08 03:35:57', NULL, NULL, NULL),
  818. (744, 5, 34, '2017-12-08 03:35:57', NULL, NULL, NULL),
  819. (745, 5, 35, '2017-12-08 03:35:57', NULL, NULL, NULL),
  820. (746, 5, 41, '2017-12-08 03:35:57', NULL, NULL, NULL),
  821. (747, 5, 42, '2017-12-08 03:35:57', NULL, NULL, NULL),
  822. (748, 5, 43, '2017-12-08 03:35:57', NULL, NULL, NULL),
  823. (749, 5, 51, '2017-12-08 03:35:57', NULL, NULL, NULL),
  824. (750, 5, 52, '2017-12-08 03:35:57', NULL, NULL, NULL),
  825. (751, 5, 53, '2017-12-08 03:35:57', NULL, NULL, NULL),
  826. (752, 5, 54, '2017-12-08 03:35:57', NULL, NULL, NULL),
  827. (753, 5, 55, '2017-12-08 03:35:57', NULL, NULL, NULL),
  828. (754, 5, 61, '2017-12-08 03:35:57', NULL, NULL, NULL),
  829. (755, 5, 62, '2017-12-08 03:35:57', NULL, NULL, NULL),
  830. (756, 5, 71, '2017-12-08 03:35:57', NULL, NULL, NULL),
  831. (757, 5, 2, '2017-12-08 03:35:57', NULL, NULL, NULL),
  832. (758, 5, 3, '2017-12-08 03:35:57', NULL, NULL, NULL),
  833. (759, 5, 5, '2017-12-08 03:35:57', NULL, NULL, NULL),
  834. (760, 5, 7, '2017-12-08 03:35:57', NULL, NULL, NULL),
  835. (761, 5, -1, '2017-12-08 03:35:57', NULL, NULL, NULL),
  836. (762, 5, 1, '2017-12-08 03:35:57', NULL, NULL, NULL),
  837. (763, 5, 4, '2017-12-08 03:35:57', NULL, NULL, NULL),
  838. (764, 5, 6, '2017-12-08 03:35:57', NULL, NULL, NULL),
  839. (1022, 22, 3, '2017-12-16 13:44:06', NULL, NULL, NULL),
  840. (1023, 22, 31, '2017-12-16 13:44:06', NULL, NULL, NULL),
  841. (1024, 22, 32, '2017-12-16 13:44:06', NULL, NULL, NULL),
  842. (1025, 22, 33, '2017-12-16 13:44:06', NULL, NULL, NULL),
  843. (1026, 22, 34, '2017-12-16 13:44:06', NULL, NULL, NULL),
  844. (1027, 22, 35, '2017-12-16 13:44:06', NULL, NULL, NULL),
  845. (1028, 22, -1, '2017-12-16 13:44:06', NULL, NULL, NULL),
  846. (1040, 3, 11, '2018-01-25 15:14:01', NULL, NULL, NULL),
  847. (1041, 3, 12, '2018-01-25 15:14:01', NULL, NULL, NULL),
  848. (1042, 3, 13, '2018-01-25 15:14:01', NULL, NULL, NULL),
  849. (1043, 3, 1, '2018-01-25 15:14:01', NULL, NULL, NULL),
  850. (1044, 3, -1, '2018-01-25 15:14:01', NULL, NULL, NULL),
  851. (1045, 23, 2, '2018-03-31 12:15:57', NULL, NULL, NULL),
  852. (1046, 23, 3, '2018-03-31 12:15:57', NULL, NULL, NULL),
  853. (1047, 23, 21, '2018-03-31 12:15:57', NULL, NULL, NULL),
  854. (1048, 23, 22, '2018-03-31 12:15:57', NULL, NULL, NULL),
  855. (1049, 23, 23, '2018-03-31 12:15:57', NULL, NULL, NULL),
  856. (1050, 23, 24, '2018-03-31 12:15:57', NULL, NULL, NULL),
  857. (1051, 23, 25, '2018-03-31 12:15:57', NULL, NULL, NULL),
  858. (1052, 23, 31, '2018-03-31 12:15:57', NULL, NULL, NULL),
  859. (1053, 23, 32, '2018-03-31 12:15:57', NULL, NULL, NULL),
  860. (1054, 23, 33, '2018-03-31 12:15:57', NULL, NULL, NULL),
  861. (1055, 23, 34, '2018-03-31 12:15:57', NULL, NULL, NULL),
  862. (1056, 23, 35, '2018-03-31 12:15:57', NULL, NULL, NULL),
  863. (1057, 23, 61, '2018-03-31 12:15:57', NULL, NULL, NULL),
  864. (1058, 23, 62, '2018-03-31 12:15:57', NULL, NULL, NULL),
  865. (1059, 23, 63, '2018-03-31 12:15:57', NULL, NULL, NULL),
  866. (1060, 23, -1, '2018-03-31 12:15:57', NULL, NULL, NULL),
  867. (1061, 23, 6, '2018-03-31 12:15:57', NULL, NULL, NULL),
  868. (1095, 11, 1, '2018-03-31 12:32:45', NULL, NULL, NULL),
  869. (1096, 11, 2, '2018-03-31 12:32:45', NULL, NULL, NULL),
  870. (1097, 11, 3, '2018-03-31 12:32:45', NULL, NULL, NULL),
  871. (1098, 11, 5, '2018-03-31 12:32:45', NULL, NULL, NULL),
  872. (1099, 11, 6, '2018-03-31 12:32:45', NULL, NULL, NULL),
  873. (1100, 11, 7, '2018-03-31 12:32:45', NULL, NULL, NULL),
  874. (1101, 11, 11, '2018-03-31 12:32:45', NULL, NULL, NULL),
  875. (1102, 11, 12, '2018-03-31 12:32:45', NULL, NULL, NULL),
  876. (1103, 11, 14, '2018-03-31 12:32:45', NULL, NULL, NULL),
  877. (1104, 11, 15, '2018-03-31 12:32:45', NULL, NULL, NULL),
  878. (1105, 11, 21, '2018-03-31 12:32:45', NULL, NULL, NULL),
  879. (1106, 11, 22, '2018-03-31 12:32:45', NULL, NULL, NULL),
  880. (1107, 11, 23, '2018-03-31 12:32:45', NULL, NULL, NULL),
  881. (1108, 11, 24, '2018-03-31 12:32:45', NULL, NULL, NULL),
  882. (1109, 11, 25, '2018-03-31 12:32:45', NULL, NULL, NULL),
  883. (1110, 11, 31, '2018-03-31 12:32:45', NULL, NULL, NULL),
  884. (1111, 11, 32, '2018-03-31 12:32:45', NULL, NULL, NULL),
  885. (1112, 11, 33, '2018-03-31 12:32:45', NULL, NULL, NULL),
  886. (1113, 11, 34, '2018-03-31 12:32:45', NULL, NULL, NULL),
  887. (1114, 11, 35, '2018-03-31 12:32:45', NULL, NULL, NULL),
  888. (1115, 11, 51, '2018-03-31 12:32:45', NULL, NULL, NULL),
  889. (1116, 11, 52, '2018-03-31 12:32:45', NULL, NULL, NULL),
  890. (1117, 11, 53, '2018-03-31 12:32:45', NULL, NULL, NULL),
  891. (1118, 11, 54, '2018-03-31 12:32:45', NULL, NULL, NULL),
  892. (1119, 11, 55, '2018-03-31 12:32:45', NULL, NULL, NULL),
  893. (1120, 11, 56, '2018-03-31 12:32:45', NULL, NULL, NULL),
  894. (1121, 11, 61, '2018-03-31 12:32:45', NULL, NULL, NULL),
  895. (1122, 11, 62, '2018-03-31 12:32:45', NULL, NULL, NULL),
  896. (1123, 11, 63, '2018-03-31 12:32:45', NULL, NULL, NULL),
  897. (1124, 11, 64, '2018-03-31 12:32:45', NULL, NULL, NULL),
  898. (1125, 11, 65, '2018-03-31 12:32:45', NULL, NULL, NULL),
  899. (1126, 11, 71, '2018-03-31 12:32:45', NULL, NULL, NULL),
  900. (1127, 11, -1, '2018-03-31 12:32:45', NULL, NULL, NULL),
  901. (1128, 52, 2, '2018-03-31 12:37:17', NULL, NULL, NULL),
  902. (1129, 52, 3, '2018-03-31 12:37:17', NULL, NULL, NULL),
  903. (1130, 52, 6, '2018-03-31 12:37:17', NULL, NULL, NULL),
  904. (1131, 52, 21, '2018-03-31 12:37:17', NULL, NULL, NULL),
  905. (1132, 52, 22, '2018-03-31 12:37:17', NULL, NULL, NULL),
  906. (1133, 52, 23, '2018-03-31 12:37:17', NULL, NULL, NULL),
  907. (1134, 52, 24, '2018-03-31 12:37:17', NULL, NULL, NULL),
  908. (1135, 52, 25, '2018-03-31 12:37:17', NULL, NULL, NULL),
  909. (1136, 52, 31, '2018-03-31 12:37:17', NULL, NULL, NULL),
  910. (1137, 52, 32, '2018-03-31 12:37:17', NULL, NULL, NULL),
  911. (1138, 52, 33, '2018-03-31 12:37:17', NULL, NULL, NULL),
  912. (1139, 52, 34, '2018-03-31 12:37:17', NULL, NULL, NULL),
  913. (1140, 52, 35, '2018-03-31 12:37:17', NULL, NULL, NULL),
  914. (1141, 52, 61, '2018-03-31 12:37:17', NULL, NULL, NULL),
  915. (1142, 52, 62, '2018-03-31 12:37:17', NULL, NULL, NULL),
  916. (1143, 52, 63, '2018-03-31 12:37:17', NULL, NULL, NULL),
  917. (1144, 52, 64, '2018-03-31 12:37:17', NULL, NULL, NULL),
  918. (1145, 52, 65, '2018-03-31 12:37:17', NULL, NULL, NULL),
  919. (1146, 52, -1, '2018-03-31 12:37:17', NULL, NULL, NULL),
  920. (1147, 40, 2, '2018-03-31 12:38:17', NULL, NULL, NULL),
  921. (1148, 40, 3, '2018-03-31 12:38:17', NULL, NULL, NULL),
  922. (1149, 40, 6, '2018-03-31 12:38:17', NULL, NULL, NULL),
  923. (1150, 40, 21, '2018-03-31 12:38:17', NULL, NULL, NULL),
  924. (1151, 40, 22, '2018-03-31 12:38:17', NULL, NULL, NULL),
  925. (1152, 40, 23, '2018-03-31 12:38:17', NULL, NULL, NULL),
  926. (1153, 40, 24, '2018-03-31 12:38:17', NULL, NULL, NULL),
  927. (1154, 40, 25, '2018-03-31 12:38:17', NULL, NULL, NULL),
  928. (1155, 40, 31, '2018-03-31 12:38:17', NULL, NULL, NULL),
  929. (1156, 40, 32, '2018-03-31 12:38:17', NULL, NULL, NULL),
  930. (1157, 40, 33, '2018-03-31 12:38:17', NULL, NULL, NULL),
  931. (1158, 40, 34, '2018-03-31 12:38:17', NULL, NULL, NULL),
  932. (1159, 40, 35, '2018-03-31 12:38:17', NULL, NULL, NULL),
  933. (1160, 40, 61, '2018-03-31 12:38:17', NULL, NULL, NULL),
  934. (1161, 40, 62, '2018-03-31 12:38:17', NULL, NULL, NULL),
  935. (1162, 40, 63, '2018-03-31 12:38:17', NULL, NULL, NULL),
  936. (1163, 40, 64, '2018-03-31 12:38:17', NULL, NULL, NULL),
  937. (1164, 40, 65, '2018-03-31 12:38:17', NULL, NULL, NULL),
  938. (1165, 40, -1, '2018-03-31 12:38:17', NULL, NULL, NULL),
  939. (1185, 71, 2, '2018-03-31 12:39:51', NULL, NULL, NULL),
  940. (1186, 71, 3, '2018-03-31 12:39:51', NULL, NULL, NULL),
  941. (1187, 71, 6, '2018-03-31 12:39:51', NULL, NULL, NULL),
  942. (1188, 71, 21, '2018-03-31 12:39:51', NULL, NULL, NULL),
  943. (1189, 71, 22, '2018-03-31 12:39:51', NULL, NULL, NULL),
  944. (1190, 71, 23, '2018-03-31 12:39:51', NULL, NULL, NULL),
  945. (1191, 71, 24, '2018-03-31 12:39:51', NULL, NULL, NULL),
  946. (1192, 71, 25, '2018-03-31 12:39:51', NULL, NULL, NULL),
  947. (1193, 71, 31, '2018-03-31 12:39:51', NULL, NULL, NULL),
  948. (1194, 71, 32, '2018-03-31 12:39:51', NULL, NULL, NULL),
  949. (1195, 71, 33, '2018-03-31 12:39:51', NULL, NULL, NULL),
  950. (1196, 71, 34, '2018-03-31 12:39:51', NULL, NULL, NULL),
  951. (1197, 71, 35, '2018-03-31 12:39:51', NULL, NULL, NULL),
  952. (1198, 71, 61, '2018-03-31 12:39:51', NULL, NULL, NULL),
  953. (1199, 71, 62, '2018-03-31 12:39:51', NULL, NULL, NULL),
  954. (1200, 71, 63, '2018-03-31 12:39:51', NULL, NULL, NULL),
  955. (1201, 71, 64, '2018-03-31 12:39:51', NULL, NULL, NULL),
  956. (1202, 71, 65, '2018-03-31 12:39:51', NULL, NULL, NULL),
  957. (1203, 71, -1, '2018-03-31 12:39:51', NULL, NULL, NULL),
  958. (1237, 41, 22, '2018-03-31 20:46:28', NULL, NULL, NULL),
  959. (1238, 41, 23, '2018-03-31 20:46:28', NULL, NULL, NULL),
  960. (1239, 41, 24, '2018-03-31 20:46:28', NULL, NULL, NULL),
  961. (1240, 41, 25, '2018-03-31 20:46:28', NULL, NULL, NULL),
  962. (1241, 41, 21, '2018-03-31 20:46:28', NULL, NULL, NULL),
  963. (1242, 41, 31, '2018-03-31 20:46:28', NULL, NULL, NULL),
  964. (1243, 41, 33, '2018-03-31 20:46:28', NULL, NULL, NULL),
  965. (1244, 41, 34, '2018-03-31 20:46:28', NULL, NULL, NULL),
  966. (1245, 41, 35, '2018-03-31 20:46:28', NULL, NULL, NULL),
  967. (1246, 41, 32, '2018-03-31 20:46:28', NULL, NULL, NULL),
  968. (1247, 41, 62, '2018-03-31 20:46:28', NULL, NULL, NULL),
  969. (1248, 41, 63, '2018-03-31 20:46:28', NULL, NULL, NULL),
  970. (1249, 41, 64, '2018-03-31 20:46:28', NULL, NULL, NULL),
  971. (1250, 41, 65, '2018-03-31 20:46:28', NULL, NULL, NULL),
  972. (1251, 41, 61, '2018-03-31 20:46:28', NULL, NULL, NULL),
  973. (1252, 41, 2, '2018-03-31 20:46:28', NULL, NULL, NULL),
  974. (1253, 41, 3, '2018-03-31 20:46:28', NULL, NULL, NULL),
  975. (1254, 41, 6, '2018-03-31 20:46:28', NULL, NULL, NULL),
  976. (1255, 41, -1, '2018-03-31 20:46:28', NULL, NULL, NULL),
  977. (1527, 1, 1, '2018-07-05 09:57:51', NULL, NULL, NULL),
  978. (1528, 1, 2, '2018-07-05 09:57:51', NULL, NULL, NULL),
  979. (1529, 1, 4, '2018-07-05 09:57:51', NULL, NULL, NULL),
  980. (1530, 1, 5, '2018-07-05 09:57:51', NULL, NULL, NULL),
  981. (1531, 1, 6, '2018-07-05 09:57:51', NULL, NULL, NULL),
  982. (1532, 1, 11, '2018-07-05 09:57:51', NULL, NULL, NULL),
  983. (1533, 1, 12, '2018-07-05 09:57:51', NULL, NULL, NULL),
  984. (1534, 1, 14, '2018-07-05 09:57:51', NULL, NULL, NULL),
  985. (1535, 1, 21, '2018-07-05 09:57:51', NULL, NULL, NULL),
  986. (1536, 1, 31, '2018-07-05 09:57:51', NULL, NULL, NULL),
  987. (1537, 1, 32, '2018-07-05 09:57:51', NULL, NULL, NULL),
  988. (1538, 1, 33, '2018-07-05 09:57:51', NULL, NULL, NULL),
  989. (1539, 1, 34, '2018-07-05 09:57:51', NULL, NULL, NULL),
  990. (1540, 1, 35, '2018-07-05 09:57:51', NULL, NULL, NULL),
  991. (1541, 1, 39, '2018-07-05 09:57:51', NULL, NULL, NULL),
  992. (1542, 1, 41, '2018-07-05 09:57:51', NULL, NULL, NULL),
  993. (1543, 1, 42, '2018-07-05 09:57:51', NULL, NULL, NULL),
  994. (1544, 1, 43, '2018-07-05 09:57:51', NULL, NULL, NULL),
  995. (1545, 1, 51, '2018-07-05 09:57:51', NULL, NULL, NULL),
  996. (1546, 1, 52, '2018-07-05 09:57:51', NULL, NULL, NULL),
  997. (1547, 1, 53, '2018-07-05 09:57:51', NULL, NULL, NULL),
  998. (1548, 1, 61, '2018-07-05 09:57:51', NULL, NULL, NULL),
  999. (1549, 1, 62, '2018-07-05 09:57:51', NULL, NULL, NULL),
  1000. (1550, 1, 63, '2018-07-05 09:57:51', NULL, NULL, NULL),
  1001. (1551, 1, 71, '2018-07-05 09:57:51', NULL, NULL, NULL),
  1002. (1552, 1, 74, '2018-07-05 09:57:51', NULL, NULL, NULL),
  1003. (1553, 1, -1, '2018-07-05 09:57:51', NULL, NULL, NULL),
  1004. (1554, 1, 3, '2018-07-05 09:57:51', NULL, NULL, NULL),
  1005. (1555, 1, 7, '2018-07-05 09:57:51', NULL, NULL, NULL);
  1006. -- --------------------------------------------------------
  1007. --
  1008. -- 表的结构 `sys_user`
  1009. --
  1010. CREATE TABLE IF NOT EXISTS `sys_user` (
  1011. `user_no` varchar(20) NOT NULL COMMENT '用户工号',
  1012. `user_login_name` varchar(50) DEFAULT NULL COMMENT '账号',
  1013. `password` varchar(50) DEFAULT NULL COMMENT '密码',
  1014. `user_name` varchar(50) DEFAULT NULL,
  1015. `user_name_en` varchar(50) DEFAULT NULL,
  1016. `mobile_phone` varchar(50) DEFAULT NULL COMMENT '手机',
  1017. `p_code` varchar(20) DEFAULT NULL COMMENT 'FOC代码',
  1018. `dept_id` varchar(50) DEFAULT NULL COMMENT '部门ID',
  1019. `dept_name` varchar(30) DEFAULT NULL COMMENT '部门名称',
  1020. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态1有效,0无效',
  1021. `gender` varchar(1) DEFAULT NULL COMMENT '性别',
  1022. `crew_type` char(1) DEFAULT NULL COMMENT '机组人员类型F飞行,C乘务员,S安全员',
  1023. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  1024. `created_by` varchar(20) DEFAULT NULL COMMENT '创建人工号',
  1025. `modified_on` timestamp NULL DEFAULT NULL COMMENT '修改日期',
  1026. `modified_by` varchar(20) DEFAULT NULL COMMENT '修改人工号',
  1027. PRIMARY KEY (`user_no`),
  1028. KEY `idx_userno` (`user_no`)
  1029. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表';
  1030. --
  1031. -- 转存表中的数据 `sys_user`
  1032. --
  1033. INSERT INTO `sys_user` (`user_no`, `user_login_name`, `password`, `user_name`, `user_name_en`, `mobile_phone`, `p_code`, `dept_id`, `dept_name`, `status`, `gender`, `crew_type`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  1034. ('A0001', 'admin', '3C2C28608BF517CBF83E2345779C804B', '系统管理员', 'admin', '18611825550', '01', '4E732CED3463D06DE0CA9A15B6153677', '222', 1, '1', '', '2017-12-17 15:36:11', NULL, NULL, NULL),
  1035. ('DS001', 'district', 'C1CD346996E502C3CC243BEADD9C0FB5', '领导', 'district', '', '01', '4E732CED3463D06DE0CA9A15B6153677', '333', 1, '1', 'S', '2018-03-31 12:35:50', NULL, NULL, NULL),
  1036. ('UC18611825550', 'uc18611825550', '6F80105604DFF9E6DEEF51DCC4C8B079', '用户_18611825550', '用户_18611825550', '18611825550', NULL, NULL, NULL, 1, NULL, NULL, '2018-03-31 23:58:43', NULL, NULL, NULL),
  1037. ('UC18611825551', 'uc18611825551', 'F4390E2B6C5D583B2CAF2AA4E2008EA6', '用户_18611825551', '用户_18611825551', '18611825551', NULL, NULL, NULL, 1, NULL, NULL, '2018-03-31 23:59:28', NULL, NULL, NULL),
  1038. ('UC18611825552', 'uc18611825552', 'B2B7EE3C6BF4D256C33990137AFFE968', '用户_18611825552', '用户_18611825552', '18611825552', NULL, NULL, NULL, 1, NULL, NULL, '2018-03-31 23:59:48', NULL, NULL, NULL),
  1039. ('UC18611825553', 'uc18611825553', '6DC5CA568C5C299514FCFE44FA964EB3', '用户_18611825553', '用户_18611825553', '18611825553', NULL, NULL, NULL, 1, NULL, NULL, '2018-04-01 00:00:11', NULL, NULL, NULL),
  1040. ('V0001', 'test', '5C5A040319576CCF37774044553B7D77', '教师Test', 'MengD', '', '01', '4E732CED3463D06DE0CA9A15B6153677', 'VMC', 1, '0', 'S', '2017-12-22 07:18:51', NULL, NULL, NULL);
  1041. -- --------------------------------------------------------
  1042. --
  1043. -- 表的结构 `sys_user_device_binding`
  1044. --
  1045. CREATE TABLE IF NOT EXISTS `sys_user_device_binding` (
  1046. `id` int(11) DEFAULT NULL,
  1047. `user_no` tinytext,
  1048. `client_id` tinytext,
  1049. `device_name` tinytext,
  1050. `bind_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1051. `last_login_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  1052. `on_black_list` tinyint(4) DEFAULT NULL,
  1053. `created_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  1054. `created_by` tinytext,
  1055. `modified_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  1056. `modified_by` tinytext
  1057. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='用户绑定设备表';
  1058. -- --------------------------------------------------------
  1059. --
  1060. -- 表的结构 `sys_user_role`
  1061. --
  1062. CREATE TABLE IF NOT EXISTS `sys_user_role` (
  1063. `id` int(11) DEFAULT NULL,
  1064. `user_no` tinytext CHARACTER SET latin1,
  1065. `role_id` int(11) DEFAULT NULL,
  1066. `created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1067. `created_by` tinytext CHARACTER SET latin1,
  1068. `modified_on` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  1069. `modified_by` tinytext CHARACTER SET latin1
  1070. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户角色';
  1071. --
  1072. -- 转存表中的数据 `sys_user_role`
  1073. --
  1074. INSERT INTO `sys_user_role` (`id`, `user_no`, `role_id`, `created_on`, `created_by`, `modified_on`, `modified_by`) VALUES
  1075. (1, 'A0001', 1, '2017-11-27 03:41:57', NULL, '2018-01-12 15:20:37', NULL),
  1076. (7, 'A03076', 20, '2017-12-04 07:56:35', NULL, '2018-01-12 15:20:37', NULL),
  1077. (8, 'A00334', 20, '2017-12-04 10:17:35', NULL, '2018-01-12 15:20:37', NULL),
  1078. (10, 'A01936', 20, '2017-12-04 10:46:25', NULL, '2018-01-12 15:20:37', NULL),
  1079. (11, 'A00060', 20, '2017-12-04 10:46:37', NULL, '2018-01-12 15:20:37', NULL),
  1080. (12, 'A00220', 20, '2017-12-04 11:03:46', NULL, '2018-01-12 15:20:37', NULL),
  1081. (13, 'A00421', 20, '2017-12-04 11:05:01', NULL, '2018-01-12 15:20:37', NULL),
  1082. (14, 'A01626', 20, '2017-12-05 01:47:37', NULL, '2018-01-12 15:20:37', NULL),
  1083. (15, 'A03057', 20, '2017-12-05 02:11:05', NULL, '2018-01-12 15:20:37', NULL),
  1084. (16, 'A02513', 20, '2017-12-05 02:35:31', NULL, '2018-01-12 15:20:37', NULL),
  1085. (17, 'A00186', 20, '2017-12-06 01:49:07', NULL, '2018-01-12 15:20:37', NULL),
  1086. (18, 'A01949', 20, '2017-12-06 01:57:31', NULL, '2018-01-12 15:20:37', NULL),
  1087. (19, 'A02201', 20, '2017-12-06 01:58:59', NULL, '2018-01-12 15:20:37', NULL),
  1088. (20, 'A02287', 20, '2017-12-06 02:06:43', NULL, '2018-01-12 15:20:37', NULL),
  1089. (21, 'A01456', 20, '2017-12-06 02:07:39', NULL, '2018-01-12 15:20:37', NULL),
  1090. (22, 'A02371', 1, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1091. (23, 'A02371', 3, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1092. (24, 'A02371', 4, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1093. (25, 'A02371', 5, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1094. (26, 'A02371', 6, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1095. (27, 'A02371', 16, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1096. (28, 'A02371', 18, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1097. (29, 'A02371', 20, '2017-12-06 03:35:26', NULL, '2018-01-12 15:20:37', NULL),
  1098. (30, 'W88801', 16, '2017-12-08 02:50:45', NULL, '2018-01-12 15:20:37', NULL),
  1099. (31, 'A00056', 4, '2017-12-08 03:53:09', NULL, '2018-01-12 15:20:37', NULL),
  1100. (32, 'A00056', 5, '2017-12-08 03:53:09', NULL, '2018-01-12 15:20:37', NULL),
  1101. (33, 'A00056', 18, '2017-12-08 03:53:09', NULL, '2018-01-12 15:20:37', NULL),
  1102. (34, '00001', 3, '2017-12-16 13:02:31', NULL, '2018-01-12 15:20:37', NULL),
  1103. (36, '000001', 22, '2017-12-16 15:13:11', NULL, '2018-01-12 15:20:37', NULL),
  1104. (NULL, 'A0002', 3, '2018-01-25 15:13:49', NULL, '0000-00-00 00:00:00', NULL),
  1105. (NULL, 'V0001', 41, '2018-03-31 12:42:16', NULL, '0000-00-00 00:00:00', NULL);
  1106. -- --------------------------------------------------------
  1107. --
  1108. -- 表的结构 `sys_visit_log`
  1109. --
  1110. CREATE TABLE IF NOT EXISTS `sys_visit_log` (
  1111. `log_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  1112. `log_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  1113. `call_api` tinytext,
  1114. `api_desc` varchar(200) DEFAULT NULL,
  1115. `user_no` tinytext,
  1116. `device` tinytext,
  1117. `remote_addr` tinytext,
  1118. `remote_host` tinytext,
  1119. `input_params` varchar(200) DEFAULT NULL,
  1120. `error` int(11) DEFAULT NULL,
  1121. `time_consuming` int(11) DEFAULT NULL,
  1122. `bak` varchar(200) DEFAULT NULL,
  1123. PRIMARY KEY (`log_id`)
  1124. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='系统API调用日志表';
  1125. COMMIT;
  1126. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  1127. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  1128. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;