-
Notifications
You must be signed in to change notification settings - Fork 22
/
SQL
439 lines (411 loc) · 27.6 KB
/
SQL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50629
Source Host : 127.0.0.1:3306
Source Database : bos
Target Server Type : MYSQL
Target Server Version : 50629
File Encoding : 65001
Date: 2018-05-09 22:42:01
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `auth_function`
-- ----------------------------
DROP TABLE IF EXISTS `auth_function`;
CREATE TABLE `auth_function` (
`id` varchar(32) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`page` varchar(255) DEFAULT NULL,
`generatemenu` varchar(255) DEFAULT NULL,
`zindex` int(11) DEFAULT NULL,
`pid` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `AK_Key_2` (`name`),
KEY `FK33r6np87v1p6gge7t6rpcao5h` (`pid`),
CONSTRAINT `FK33r6np87v1p6gge7t6rpcao5h` FOREIGN KEY (`pid`) REFERENCES `auth_function` (`id`),
CONSTRAINT `FK_Reference_1x` FOREIGN KEY (`pid`) REFERENCES `auth_function` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of auth_function
-- ----------------------------
INSERT INTO `auth_function` VALUES ('11', '基础档案', 'jichudangan', null, null, '1', '0', null);
INSERT INTO `auth_function` VALUES ('112', '收派标准', 'standard', null, 'page_base_standard.action', '1', '1', '11');
INSERT INTO `auth_function` VALUES ('113', '取派员设置', 'staff', null, 'page_base_staff.action', '1', '2', '11');
INSERT INTO `auth_function` VALUES ('114', '区域设置', 'region', null, 'page_base_region.action', '1', '3', '11');
INSERT INTO `auth_function` VALUES ('115', '管理分区', 'subarea', null, 'page_base_subarea.action', '1', '4', '11');
INSERT INTO `auth_function` VALUES ('116', '管理定区/调度排班', 'decidedzone', null, 'page_base_decidedzone.action', '1', '5', '11');
INSERT INTO `auth_function` VALUES ('12', '受理', 'shouli', null, null, '1', '1', null);
INSERT INTO `auth_function` VALUES ('121', '业务受理', 'noticebill', null, 'page_qupai_noticebill_add.action', '1', '0', '12');
INSERT INTO `auth_function` VALUES ('122', '工作单快速录入', 'quickworkordermanage', null, 'page_qupai_quickworkorder.action', '1', '1', '12');
INSERT INTO `auth_function` VALUES ('124', '工作单导入', 'workordermanageimport', null, 'page_qupai_workorderimport.action', '1', '3', '12');
INSERT INTO `auth_function` VALUES ('13', '调度', 'diaodu', null, null, '1', '2', null);
INSERT INTO `auth_function` VALUES ('131', '查台转单', 'changestaff', null, null, '1', '0', '13');
INSERT INTO `auth_function` VALUES ('132', '人工调度', 'personalassign', null, 'page_qupai_diaodu.action', '1', '1', '13');
INSERT INTO `auth_function` VALUES ('14', '物流配送流程管理', 'zhongzhuan', null, null, '1', '3', null);
INSERT INTO `auth_function` VALUES ('141', '启动配送流程', 'start', null, 'workOrderManageAction_list.action', '1', '0', '14');
INSERT INTO `auth_function` VALUES ('142', '查看个人任务', 'personaltask', null, 'taskAction_findPersonalTask.action', '1', '1', '14');
INSERT INTO `auth_function` VALUES ('143', '查看我的组任务', 'grouptask', null, 'taskAction_findGroupTask.action', '1', '2', '14');
INSERT INTO `auth_function` VALUES ('402840815c4a4a10015c4a4c1f6f0000', '修改取派员权限', 'staff-edit', '111', '/staffAction_edit.action', '0', '2', '113');
INSERT INTO `auth_function` VALUES ('402840815c531695015c5317ee3a0000', '取派员列表查询权限', 'staff-list', 'xx', '/staffAction_pageQuery.action', '0', '2', '113');
INSERT INTO `auth_function` VALUES ('8a7e843355a4392d0155a43aa7150000', '删除取派员', 'staff.delete', 'xxx', 'staffAction_delete.action', '0', '1', '113');
-- ----------------------------
-- Table structure for `auth_role`
-- ----------------------------
DROP TABLE IF EXISTS `auth_role`;
CREATE TABLE `auth_role` (
`id` varchar(32) NOT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `AK_Key_2` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of auth_role
-- ----------------------------
INSERT INTO `auth_role` VALUES ('402840815c51fa86015c51fb9f3a0000', 'test', 'test', 'test');
INSERT INTO `auth_role` VALUES ('402840815c5208a7015c52095e860000', '超级管理员', 'admin', '超级管理员');
INSERT INTO `auth_role` VALUES ('402840815c5208a7015c520bfcd30001', '普通人员角色', 'common_user', '普通人员角色');
-- ----------------------------
-- Table structure for `bc_decidedzone`
-- ----------------------------
DROP TABLE IF EXISTS `bc_decidedzone`;
CREATE TABLE `bc_decidedzone` (
`id` varchar(32) NOT NULL,
`name` varchar(30) DEFAULT NULL,
`staff_id` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKh0xplk12o52a6eryw4hcqnfwt` (`staff_id`),
CONSTRAINT `FK_decidedzone_staff` FOREIGN KEY (`staff_id`) REFERENCES `bc_staff` (`id`),
CONSTRAINT `FKh0xplk12o52a6eryw4hcqnfwt` FOREIGN KEY (`staff_id`) REFERENCES `bc_staff` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of bc_decidedzone
-- ----------------------------
INSERT INTO `bc_decidedzone` VALUES ('123', '朝阳', '402840815c01bcaf015c01be0f540000');
-- ----------------------------
-- Table structure for `bc_region`
-- ----------------------------
DROP TABLE IF EXISTS `bc_region`;
CREATE TABLE `bc_region` (
`id` varchar(32) NOT NULL,
`province` varchar(50) DEFAULT NULL,
`city` varchar(50) DEFAULT NULL,
`district` varchar(50) DEFAULT NULL,
`postcode` varchar(50) DEFAULT NULL,
`shortcode` varchar(30) DEFAULT NULL,
`citycode` varchar(30) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of bc_region
-- ----------------------------
INSERT INTO `bc_region` VALUES ('QY001', '北京市', '北京市', '东城区', '110101', 'BJBJDC', 'beijing');
INSERT INTO `bc_region` VALUES ('QY002', '北京市', '北京市', '西城区', '110102', 'BJBJXC', 'beijing');
INSERT INTO `bc_region` VALUES ('QY003', '北京市', '北京市', '朝阳区', '110105', 'BJBJCY', 'beijing');
INSERT INTO `bc_region` VALUES ('QY004', '北京市', '北京市', '丰台区', '110106', 'BJBJFT', 'beijing');
INSERT INTO `bc_region` VALUES ('QY005', '北京市', '北京市', '石景山区', '110107', 'BJBJSJS', 'beijing');
INSERT INTO `bc_region` VALUES ('QY006', '北京市', '北京市', '海淀区', '110108', 'BJBJHD', 'beijing');
INSERT INTO `bc_region` VALUES ('QY007', '北京市', '北京市', '门头沟区', '110109', 'BJBJMTG', 'beijing');
INSERT INTO `bc_region` VALUES ('QY008', '北京市', '北京市', '房山区', '110111', 'BJBJFS', 'beijing');
INSERT INTO `bc_region` VALUES ('QY009', '北京市', '北京市', '通州区', '110112', 'BJBJTZ', 'beijing');
INSERT INTO `bc_region` VALUES ('QY010', '北京市', '北京市', '顺义区', '110113', 'BJBJSY', 'beijing');
INSERT INTO `bc_region` VALUES ('QY011', '北京市', '北京市', '昌平区', '110114', 'BJBJCP', 'beijing');
INSERT INTO `bc_region` VALUES ('QY012', '北京市', '北京市', '大兴区', '110115', 'BJBJDX', 'beijing');
INSERT INTO `bc_region` VALUES ('QY013', '北京市', '北京市', '怀柔区', '110116', 'BJBJHR', 'beijing');
INSERT INTO `bc_region` VALUES ('QY014', '北京市', '北京市', '平谷区', '110117', 'BJBJPG', 'beijing');
INSERT INTO `bc_region` VALUES ('QY015', '北京市', '北京市', '密云县', '110228', 'BJBJMY', 'beijing');
INSERT INTO `bc_region` VALUES ('QY016', '北京市', '北京市', '延庆县', '110229', 'BJBJYQ', 'beijing');
INSERT INTO `bc_region` VALUES ('QY017', '河北省', '石家庄市', '长安区', '130102', 'HBSJZZA', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY018', '河北省', '石家庄市', '桥东区', '130103', 'HBSJZQD', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY019', '河北省', '石家庄市', '桥西区', '130104', 'HBSJZQX', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY020', '河北省', '石家庄市', '新华区', '130105', 'HBSJZXH', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY021', '河北省', '石家庄市', '井陉矿区', '130107', 'HBSJZJXK', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY022', '河北省', '石家庄市', '裕华区', '130108', 'HBSJZYH', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY023', '河北省', '石家庄市', '井陉县', '130121', 'HBSJZJX', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY024', '河北省', '石家庄市', '正定县', '130123', 'HBSJZZD', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY025', '河北省', '石家庄市', '栾城县', '130124', 'HBSJZLC', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY026', '河北省', '石家庄市', '行唐县', '130125', 'HBSJZXT', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY027', '河北省', '石家庄市', '灵寿县', '130126', 'HBSJZLS', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY028', '河北省', '石家庄市', '高邑县', '130127', 'HBSJZGY', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY029', '河北省', '石家庄市', '深泽县', '130128', 'HBSJZSZ', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY030', '河北省', '石家庄市', '赞皇县', '130129', 'HBSJZZH', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY031', '河北省', '石家庄市', '无极县', '130130', 'HBSJZWJ', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY032', '河北省', '石家庄市', '平山县', '130131', 'HBSJZPS', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY033', '河北省', '石家庄市', '元氏县', '130132', 'HBSJZYS', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY034', '河北省', '石家庄市', '赵县', '130133', 'HBSJZZ', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY035', '河北省', '石家庄市', '辛集市', '130181', 'HBSJZXJ', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY036', '河北省', '石家庄市', '藁城市', '130182', 'HBSJZGC', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY037', '河北省', '石家庄市', '晋州市', '130183', 'HBSJZJZ', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY038', '河北省', '石家庄市', '新乐市', '130184', 'HBSJZXL', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY039', '河北省', '石家庄市', '鹿泉市', '130185', 'HBSJZLQ', 'shijiazhuang');
INSERT INTO `bc_region` VALUES ('QY040', '天津市', '天津市', '和平区', '120101', 'TJTJHP', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY041', '天津市', '天津市', '河东区', '120102', 'TJTJHD', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY042', '天津市', '天津市', '河西区', '120103', 'TJTJHX', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY043', '天津市', '天津市', '南开区', '120104', 'TJTJNK', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY044', '天津市', '天津市', '河北区', '120105', 'TJTJHB', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY045', '天津市', '天津市', '红桥区', '120106', 'TJTJHQ', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY046', '天津市', '天津市', '滨海新区', '120116', 'TJTJBHX', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY047', '天津市', '天津市', '东丽区', '120110', 'TJTJDL', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY048', '天津市', '天津市', '西青区', '120111', 'TJTJXQ', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY049', '天津市', '天津市', '津南区', '120112', 'TJTJJN', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY050', '天津市', '天津市', '北辰区', '120113', 'TJTJBC', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY051', '天津市', '天津市', '武清区', '120114', 'TJTJWQ', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY052', '天津市', '天津市', '宝坻区', '120115', 'TJTJBC', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY053', '天津市', '天津市', '宁河县', '120221', 'TJTJNH', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY054', '天津市', '天津市', '静海县', '120223', 'TJTJJH', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY055', '天津市', '天津市', '蓟县', '120225', 'TJTJJ', 'tianjin');
INSERT INTO `bc_region` VALUES ('QY056', '山西省', '太原市', '小店区', '140105', 'SXTYXD', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY057', '山西省', '太原市', '迎泽区', '140106', 'SXTYYZ', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY058', '山西省', '太原市', '杏花岭区', '140107', 'SXTYXHL', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY059', '山西省', '太原市', '尖草坪区', '140108', 'SXTYJCP', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY060', '山西省', '太原市', '万柏林区', '140109', 'SXTYWBL', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY061', '山西省', '太原市', '晋源区', '140110', 'SXTYJY', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY062', '山西省', '太原市', '清徐县', '140121', 'SXTYQX', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY063', '山西省', '太原市', '阳曲县', '140122', 'SXTYYQ', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY064', '山西省', '太原市', '娄烦县', '140123', 'SXTYLF', 'taiyuan');
INSERT INTO `bc_region` VALUES ('QY065', '山西省', '太原市', '古交市', '140181', 'SXTYGJ', 'taiyuan');
-- ----------------------------
-- Table structure for `bc_staff`
-- ----------------------------
DROP TABLE IF EXISTS `bc_staff`;
CREATE TABLE `bc_staff` (
`id` varchar(32) NOT NULL,
`name` varchar(20) DEFAULT NULL,
`telephone` varchar(20) DEFAULT NULL,
`haspda` char(1) DEFAULT NULL,
`deltag` char(1) DEFAULT NULL,
`station` varchar(40) DEFAULT NULL,
`standard` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of bc_staff
-- ----------------------------
INSERT INTO `bc_staff` VALUES ('402840815bf0da5b015bf0db0b370000', '张三', '15705102215', '1', '0', '苏州分部', '10-20公斤');
INSERT INTO `bc_staff` VALUES ('402840815c01bcaf015c01be0f540000', '李四', '15705102215', '1', '0', '北京分部', '10-20公斤');
-- ----------------------------
-- Table structure for `bc_subarea`
-- ----------------------------
DROP TABLE IF EXISTS `bc_subarea`;
CREATE TABLE `bc_subarea` (
`id` varchar(32) NOT NULL,
`decidedzone_id` varchar(32) DEFAULT NULL,
`region_id` varchar(32) DEFAULT NULL,
`addresskey` varchar(100) DEFAULT NULL,
`startnum` varchar(30) DEFAULT NULL,
`endnum` varchar(30) DEFAULT NULL,
`single` char(1) DEFAULT NULL,
`position` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKlndbc8oldgbg3k1x63n3n6t7n` (`decidedzone_id`),
KEY `FKcjwxm19mx5njn3xyqgqp431mb` (`region_id`),
CONSTRAINT `FK_area_decidedzone` FOREIGN KEY (`decidedzone_id`) REFERENCES `bc_decidedzone` (`id`),
CONSTRAINT `FK_area_region` FOREIGN KEY (`region_id`) REFERENCES `bc_region` (`id`),
CONSTRAINT `FKcjwxm19mx5njn3xyqgqp431mb` FOREIGN KEY (`region_id`) REFERENCES `bc_region` (`id`),
CONSTRAINT `FKlndbc8oldgbg3k1x63n3n6t7n` FOREIGN KEY (`decidedzone_id`) REFERENCES `bc_decidedzone` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of bc_subarea
-- ----------------------------
INSERT INTO `bc_subarea` VALUES ('402840815c05a29f015c05a39bd80000', '123', 'QY003', '朝阳区', '1', '100', '0', '朝阳大道');
INSERT INTO `bc_subarea` VALUES ('402840815c14d135015c14d633560000', '123', 'QY004', '丰台区', '1', '100', '0', '丰台区');
-- ----------------------------
-- Table structure for `qp_noticebill`
-- ----------------------------
DROP TABLE IF EXISTS `qp_noticebill`;
CREATE TABLE `qp_noticebill` (
`id` varchar(32) NOT NULL,
`staff_id` varchar(32) DEFAULT NULL,
`customer_id` varchar(32) DEFAULT NULL,
`customer_name` varchar(20) DEFAULT NULL,
`delegater` varchar(20) DEFAULT NULL,
`telephone` varchar(20) DEFAULT NULL,
`pickaddress` varchar(200) DEFAULT NULL,
`arrivecity` varchar(20) DEFAULT NULL,
`product` varchar(20) DEFAULT NULL,
`pickdate` date DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`weight` double DEFAULT NULL,
`volume` varchar(20) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`ordertype` varchar(20) DEFAULT NULL,
`user_id` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKl5j3pm969oy1qdc1318jrmbgt` (`user_id`),
KEY `FKhmbqr6qlg0uets978w5xshler` (`staff_id`),
CONSTRAINT `FK_Reference_3` FOREIGN KEY (`staff_id`) REFERENCES `bc_staff` (`id`),
CONSTRAINT `FKhmbqr6qlg0uets978w5xshler` FOREIGN KEY (`staff_id`) REFERENCES `bc_staff` (`id`),
CONSTRAINT `FKl5j3pm969oy1qdc1318jrmbgt` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`),
CONSTRAINT `test` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of qp_noticebill
-- ----------------------------
INSERT INTO `qp_noticebill` VALUES ('402840815c2630cb015c263193c40000', '402840815c01bcaf015c01be0f540000', '5', '小白', '小白', '18511111111', '内蒙古自治区呼和浩特市和平路100号', '', '', null, null, null, '', '', '自动分单', null);
INSERT INTO `qp_noticebill` VALUES ('402840815c2664f3015c266550380000', '402840815c01bcaf015c01be0f540000', '9', '小张', '小张', '15705102215', 'jsnt', '', '', null, null, null, '', '', '自动分单', null);
INSERT INTO `qp_noticebill` VALUES ('402840815c2b22b8015c2b24f5300000', '402840815c01bcaf015c01be0f540000', '3', '王五', '王五', '13533333333', '天津市河北区中山路30号', '', '', null, null, null, '', '', '自动分单', null);
INSERT INTO `qp_noticebill` VALUES ('402840815c2b3a34015c2b3ac74c0000', '402840815c01bcaf015c01be0f540000', '7', '小花', '小花', '13733333333', '北京市东城区王府井大街20号', '', '', null, null, null, '', '', '自动分单', null);
-- ----------------------------
-- Table structure for `qp_workbill`
-- ----------------------------
DROP TABLE IF EXISTS `qp_workbill`;
CREATE TABLE `qp_workbill` (
`id` varchar(32) NOT NULL,
`noticebill_id` varchar(32) DEFAULT NULL,
`type` varchar(20) DEFAULT NULL,
`pickstate` varchar(20) DEFAULT NULL,
`buildtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`attachbilltimes` int(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`staff_id` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKggojlcovnpimuukxcueb18apt` (`noticebill_id`),
KEY `FK55ckcnjyvwinnnniu5jpelg7y` (`staff_id`),
CONSTRAINT `FK55ckcnjyvwinnnniu5jpelg7y` FOREIGN KEY (`staff_id`) REFERENCES `bc_staff` (`id`),
CONSTRAINT `FK_Reference_4` FOREIGN KEY (`staff_id`) REFERENCES `bc_staff` (`id`),
CONSTRAINT `FK_workbill_noticebill_fk` FOREIGN KEY (`noticebill_id`) REFERENCES `qp_noticebill` (`id`),
CONSTRAINT `FKggojlcovnpimuukxcueb18apt` FOREIGN KEY (`noticebill_id`) REFERENCES `qp_noticebill` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of qp_workbill
-- ----------------------------
INSERT INTO `qp_workbill` VALUES ('402840815c2630cb015c2631940d0001', '402840815c2630cb015c263193c40000', '新单', '未取件', '2017-05-20 22:10:02', '0', '', '402840815c01bcaf015c01be0f540000');
INSERT INTO `qp_workbill` VALUES ('402840815c2664f3015c2665509e0001', '402840815c2664f3015c266550380000', '新单', '未取件', '2017-05-20 23:06:33', '0', '', '402840815c01bcaf015c01be0f540000');
INSERT INTO `qp_workbill` VALUES ('402840815c2b22b8015c2b24f5c30001', '402840815c2b22b8015c2b24f5300000', '新单', '未取件', '2017-05-21 21:14:22', '0', '', '402840815c01bcaf015c01be0f540000');
INSERT INTO `qp_workbill` VALUES ('402840815c2b3a34015c2b3ac7940001', '402840815c2b3a34015c2b3ac74c0000', '新单', '未取件', '2017-05-21 21:38:11', '0', '', '402840815c01bcaf015c01be0f540000');
-- ----------------------------
-- Table structure for `qp_workordermanage`
-- ----------------------------
DROP TABLE IF EXISTS `qp_workordermanage`;
CREATE TABLE `qp_workordermanage` (
`id` varchar(32) NOT NULL,
`arrivecity` varchar(20) DEFAULT NULL,
`product` varchar(20) DEFAULT NULL,
`num` int(11) DEFAULT NULL,
`weight` double DEFAULT NULL,
`floadreqr` varchar(255) DEFAULT NULL,
`prodtimelimit` varchar(40) DEFAULT NULL,
`prodtype` varchar(40) DEFAULT NULL,
`sendername` varchar(20) DEFAULT NULL,
`senderphone` varchar(20) DEFAULT NULL,
`senderaddr` varchar(200) DEFAULT NULL,
`receivername` varchar(20) DEFAULT NULL,
`receiverphone` varchar(20) DEFAULT NULL,
`receiveraddr` varchar(200) DEFAULT NULL,
`feeitemnum` int(11) DEFAULT NULL,
`actlweit` double DEFAULT NULL,
`vol` varchar(20) DEFAULT NULL,
`managerCheck` varchar(1) DEFAULT NULL,
`updatetime` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of qp_workordermanage
-- ----------------------------
INSERT INTO `qp_workordermanage` VALUES ('1', '1', '1', '1', '1', '1', null, null, null, null, null, null, null, null, null, null, null, null, null);
-- ----------------------------
-- Table structure for `role_function`
-- ----------------------------
DROP TABLE IF EXISTS `role_function`;
CREATE TABLE `role_function` (
`role_id` varchar(32) NOT NULL,
`function_id` varchar(32) NOT NULL,
PRIMARY KEY (`role_id`,`function_id`),
KEY `FK5f8riddotqjpm9vly0b8c5nmf` (`function_id`),
CONSTRAINT `FK10qo908yd9evkyb40vf88og85` FOREIGN KEY (`role_id`) REFERENCES `auth_role` (`id`),
CONSTRAINT `FK5f8riddotqjpm9vly0b8c5nmf` FOREIGN KEY (`function_id`) REFERENCES `auth_function` (`id`),
CONSTRAINT `FK_Reference_2x` FOREIGN KEY (`function_id`) REFERENCES `auth_function` (`id`),
CONSTRAINT `FK_Reference_3x` FOREIGN KEY (`role_id`) REFERENCES `auth_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of role_function
-- ----------------------------
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '11');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '11');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '11');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '112');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '112');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '112');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '113');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '113');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '113');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '114');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '114');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '114');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '115');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '115');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '115');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '116');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '116');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '116');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '12');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '12');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '121');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '121');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '122');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '122');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '124');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '124');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '13');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '131');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '132');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '14');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '141');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '142');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '143');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '402840815c4a4a10015c4a4c1f6f0000');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '402840815c4a4a10015c4a4c1f6f0000');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '402840815c4a4a10015c4a4c1f6f0000');
INSERT INTO `role_function` VALUES ('402840815c51fa86015c51fb9f3a0000', '8a7e843355a4392d0155a43aa7150000');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '8a7e843355a4392d0155a43aa7150000');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '8a7e843355a4392d0155a43aa7150000');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c52095e860000', '8a7e843355a442460155a442bcfc0000');
INSERT INTO `role_function` VALUES ('402840815c5208a7015c520bfcd30001', '8a7e843355a442460155a442bcfc0000');
-- ----------------------------
-- Table structure for `t_user`
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` varchar(32) NOT NULL,
`username` varchar(20) DEFAULT NULL,
`password` varchar(32) DEFAULT NULL,
`salary` double DEFAULT NULL,
`birthday` date DEFAULT NULL,
`gender` varchar(10) DEFAULT NULL,
`station` varchar(40) DEFAULT NULL,
`telephone` varchar(11) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES ('1', 'admin', '81dc9bdb52d04dc20036dbd8313ed055', null, null, null, null, null, null);
INSERT INTO `t_user` VALUES ('402840815c5266b5015c5267a19d0000', 'xiaoli', '81dc9bdb52d04dc20036dbd8313ed055', '1111', '2017-05-02', '男', '总公司', '18511111111', null);
INSERT INTO `t_user` VALUES ('402840815c5269dc015c526a780f0000', 'xiaoxi', '81dc9bdb52d04dc20036dbd8313ed055', '1111', '2017-05-02', '男', '总公司', '15705102215', null);
-- ----------------------------
-- Table structure for `user_role`
-- ----------------------------
DROP TABLE IF EXISTS `user_role`;
CREATE TABLE `user_role` (
`user_id` varchar(32) NOT NULL,
`role_id` varchar(32) NOT NULL,
PRIMARY KEY (`user_id`,`role_id`),
KEY `FKqqlqhas35obkljn18mrh6mmms` (`role_id`),
CONSTRAINT `FK_Reference_4x` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`),
CONSTRAINT `FK_Reference_5x` FOREIGN KEY (`role_id`) REFERENCES `auth_role` (`id`),
CONSTRAINT `FKeqon9sx5vssprq67dxm3s7ump` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`),
CONSTRAINT `FKqqlqhas35obkljn18mrh6mmms` FOREIGN KEY (`role_id`) REFERENCES `auth_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user_role
-- ----------------------------
INSERT INTO `user_role` VALUES ('402840815c5266b5015c5267a19d0000', '402840815c5208a7015c52095e860000');
INSERT INTO `user_role` VALUES ('402840815c5269dc015c526a780f0000', '402840815c5208a7015c52095e860000');
INSERT INTO `user_role` VALUES ('402840815c5266b5015c5267a19d0000', '402840815c5208a7015c520bfcd30001');
INSERT INTO `user_role` VALUES ('402840815c5269dc015c526a780f0000', '402840815c5208a7015c520bfcd30001');