Commit a18f11f6fcefa58a6993f5747fea45a7e9b6a410

Authored by panzhao
1 parent cb6a0a7f

修改表名前缀

src/main/java/com/bsth/entity/Line.java 0 → 100644
  1 +package com.bsth.entity;
  2 +
  3 +import javax.persistence.Entity;
  4 +import javax.persistence.Table;
  5 +
  6 +/**
  7 + *
  8 + * @ClassName: Line
  9 + * @Description: TODO(线路)
  10 + * @author PanZhao
  11 + * @date 2016年4月11日 下午4:06:17
  12 + *
  13 + */
  14 +@Entity
  15 +@Table(name = "bsth_c_line")
  16 +public class Line {
  17 +
  18 +}
src/main/java/com/bsth/entity/sys/Dictionary.java
@@ -11,7 +11,7 @@ import javax.persistence.Table; @@ -11,7 +11,7 @@ import javax.persistence.Table;
11 import javax.persistence.UniqueConstraint; 11 import javax.persistence.UniqueConstraint;
12 12
13 @Entity 13 @Entity
14 -@Table(name = "t_sys_dictionary", 14 +@Table(name = "bsth_c_sys_dictionary",
15 uniqueConstraints = { @UniqueConstraint(columnNames = {"dCode"}) }) 15 uniqueConstraints = { @UniqueConstraint(columnNames = {"dCode"}) })
16 public class Dictionary { 16 public class Dictionary {
17 17
src/main/java/com/bsth/entity/sys/Module.java
@@ -14,7 +14,7 @@ import javax.persistence.ManyToMany; @@ -14,7 +14,7 @@ import javax.persistence.ManyToMany;
14 import javax.persistence.Table; 14 import javax.persistence.Table;
15 15
16 @Entity 16 @Entity
17 -@Table(name = "t_sys_module") 17 +@Table(name = "bsth_c_sys_module")
18 public class Module { 18 public class Module {
19 19
20 @Id 20 @Id
src/main/java/com/bsth/entity/sys/Resource.java
@@ -17,7 +17,7 @@ import javax.persistence.Table; @@ -17,7 +17,7 @@ import javax.persistence.Table;
17 import com.fasterxml.jackson.annotation.JsonIgnore; 17 import com.fasterxml.jackson.annotation.JsonIgnore;
18 18
19 @Entity 19 @Entity
20 -@Table(name = "t_sys_resource") 20 +@Table(name = "bsth_c_sys_resource")
21 public class Resource { 21 public class Resource {
22 22
23 @Id 23 @Id
src/main/java/com/bsth/entity/sys/Role.java
@@ -16,7 +16,7 @@ import javax.persistence.Table; @@ -16,7 +16,7 @@ import javax.persistence.Table;
16 import com.fasterxml.jackson.annotation.JsonIgnore; 16 import com.fasterxml.jackson.annotation.JsonIgnore;
17 17
18 @Entity 18 @Entity
19 -@Table(name = "t_sys_role") 19 +@Table(name = "bsth_c_sys_role")
20 public class Role { 20 public class Role {
21 21
22 @Id 22 @Id
src/main/java/com/bsth/entity/sys/SysUser.java
@@ -14,7 +14,7 @@ import javax.persistence.ManyToMany; @@ -14,7 +14,7 @@ import javax.persistence.ManyToMany;
14 import javax.persistence.Table; 14 import javax.persistence.Table;
15 15
16 @Entity 16 @Entity
17 -@Table(name = "t_sys_user") 17 +@Table(name = "bsth_c_sys_user")
18 public class SysUser { 18 public class SysUser {
19 19
20 @Id 20 @Id
src/main/resources/init.sql
1 ##初始的角色 1 ##初始的角色
2 -insert into t_sys_role(id, code_name, role_name, pic, enable, create_date, update_date, is_super_admin,descriptions) 2 +insert into bsth_c_sys_role(id, code_name, role_name, pic, enable, create_date, update_date, is_super_admin,descriptions)
3 values(1, 'ROLE_ADMIN', '管理员', 1, 1, now(), now(), 0, ''); 3 values(1, 'ROLE_ADMIN', '管理员', 1, 1, now(), now(), 0, '');
4 4
5 ##默认的模块 5 ##默认的模块
6 -insert into t_sys_module(id,p_id, name, group_type, enable, path, create_date, update_date, mapp_symbol) 6 +insert into bsth_c_sys_module(id,p_id, name, group_type, enable, path, create_date, update_date, mapp_symbol)
7 values (1,null , '系统管理', 1, 1, null, now(), now(), null) 7 values (1,null , '系统管理', 1, 1, null, now(), now(), null)
8 ,(2, 1, '权限管理', 2, 1, null, now(), now(), null) 8 ,(2, 1, '权限管理', 2, 1, null, now(), now(), null)
9 ,(3, 2, '资源管理', 3, 1, 'permission/resource/list.html', now(), now(), '/resource') 9 ,(3, 2, '资源管理', 3, 1, 'permission/resource/list.html', now(), now(), '/resource')
@@ -13,7 +13,7 @@ values (1,null , '系统管理', 1, 1, null, now(), now(), null) @@ -13,7 +13,7 @@ values (1,null , '系统管理', 1, 1, null, now(), now(), null)
13 ,(7, 2, '字典管理', 3, 1, 'permission/dictionary/list.html', now(), now(), '/dictionary'); 13 ,(7, 2, '字典管理', 3, 1, 'permission/dictionary/list.html', now(), now(), '/dictionary');
14 14
15 ##管理员角色和模块关联 15 ##管理员角色和模块关联
16 -insert into t_sys_role_modules(roles, modules) 16 +insert into bsth_c_sys_role_modules(roles, modules)
17 values (1, 3) 17 values (1, 3)
18 ,(1, 4) 18 ,(1, 4)
19 ,(1, 5) 19 ,(1, 5)
@@ -21,7 +21,32 @@ values (1, 3) @@ -21,7 +21,32 @@ values (1, 3)
21 ,(1, 7); 21 ,(1, 7);
22 22
23 ##管理员用户 admin/admin 23 ##管理员用户 admin/admin
24 -insert into t_sys_user(id, name, user_name, password, create_date, enabled) 24 +insert into bsth_c_sys_user(id, name, user_name, password, create_date, enabled)
25 values(1, '系统管理员', 'admin', '$2a$04$4C6Xdjbfsqrbn3oFvmUl3eOm4.31FmzV3gEhzMIJuM7Gni4DQ8xQe', now(), 1); 25 values(1, '系统管理员', 'admin', '$2a$04$4C6Xdjbfsqrbn3oFvmUl3eOm4.31FmzV3gEhzMIJuM7Gni4DQ8xQe', now(), 1);
26 -insert into t_sys_user_roles(users, roles) 26 +insert into bsth_c_sys_user_roles(users, roles)
27 values(1, 1); 27 values(1, 1);
  28 +
  29 +##字典
  30 +INSERT INTO `bsth_c_sys_dictionary` VALUES (12, 'XianLuXingZhi', '0', '线路性质', '', '\0', '2016-4-11 12:07:58');
  31 +INSERT INTO `bsth_c_sys_dictionary` VALUES (13, 'GJXL', 'XianLuXingZhi', '过江线路', '', '\0', '2016-4-11 12:08:08');
  32 +INSERT INTO `bsth_c_sys_dictionary` VALUES (14, 'CCTXL', 'XianLuXingZhi', '村村通线路', '', '\0', '2016-4-11 12:08:19');
  33 +INSERT INTO `bsth_c_sys_dictionary` VALUES (15, 'YXXL', 'XianLuXingZhi', '夜宵线路', '', '\0', '2016-4-11 12:08:30');
  34 +INSERT INTO `bsth_c_sys_dictionary` VALUES (16, 'CSBS', 'XianLuXingZhi', '穿梭巴士', '', '\0', '2016-4-11 13:06:02');
  35 +INSERT INTO `bsth_c_sys_dictionary` VALUES (17, 'ShangXiaXingDingYi', '0', '上下行定义', '', '\0', '2016-4-11 13:07:00');
  36 +INSERT INTO `bsth_c_sys_dictionary` VALUES (18, 'SH1', 'ShangXiaXingDingYi', '上行1', '', '\0', '2016-4-11 13:14:42');
  37 +INSERT INTO `bsth_c_sys_dictionary` VALUES (20, 'XH', 'ShangXiaXingDingYi', '下行', '', '\0', '2016-4-11 13:15:12');
  38 +INSERT INTO `bsth_c_sys_dictionary` VALUES (21, 'HH', 'ShangXiaXingDingYi', '环行', '', '\0', '2016-4-11 13:15:22');
  39 +INSERT INTO `bsth_c_sys_dictionary` VALUES (22, 'FaCheBanCi', '0', '发车班次', '', '\0', '2016-4-11 13:16:54');
  40 +INSERT INTO `bsth_c_sys_dictionary` VALUES (23, 'ZCBC', 'FaCheBanCi', '正常班次', '', '\0', '2016-4-11 13:17:07');
  41 +INSERT INTO `bsth_c_sys_dictionary` VALUES (24, 'CC1', 'FaCheBanCi', '出场1', '', '\0', '2016-4-11 13:17:18');
  42 +INSERT INTO `bsth_c_sys_dictionary` VALUES (25, 'JC', 'FaCheBanCi', '进场', '', '\0', '2016-4-11 13:17:35');
  43 +INSERT INTO `bsth_c_sys_dictionary` VALUES (26, 'JY', 'FaCheBanCi', '加油', '', '\0', '2016-4-11 13:17:40');
  44 +INSERT INTO `bsth_c_sys_dictionary` VALUES (27, 'TPBC', 'FaCheBanCi', '套跑班次', '', '\0', '2016-4-11 13:17:44');
  45 +INSERT INTO `bsth_c_sys_dictionary` VALUES (28, 'LJBC', 'FaCheBanCi', '临加班次', '', '\0', '2016-4-11 13:17:49');
  46 +INSERT INTO `bsth_c_sys_dictionary` VALUES (29, 'QJBC', 'FaCheBanCi', '区间班次', '', '\0', '2016-4-11 13:17:54');
  47 +INSERT INTO `bsth_c_sys_dictionary` VALUES (30, 'FKBC', 'FaCheBanCi', '放空班次', '', '\0', '2016-4-11 13:17:58');
  48 +INSERT INTO `bsth_c_sys_dictionary` VALUES (31, 'FDZBC', 'FaCheBanCi', '放大站班次', '', '\0', '2016-4-11 13:18:01');
  49 +INSERT INTO `bsth_c_sys_dictionary` VALUES (32, 'LDJKS', 'FaCheBanCi', '两点间空驶', '', '\0', '2016-4-11 13:18:05');
  50 +INSERT INTO `bsth_c_sys_dictionary` VALUES (33, 'XianLuLeiXing', '0', '线路类型', '', '\0', '2016-4-11 13:21:50');
  51 +INSERT INTO `bsth_c_sys_dictionary` VALUES (34, 'CGXL', 'XianLuLeiXing', '常规线路', '', '\0', '2016-4-11 13:22:08');
  52 +INSERT INTO `bsth_c_sys_dictionary` VALUES (35, 'ZX', 'XianLuLeiXing', '专线', '', '\0', '2016-4-11 13:22:14');