Commit 82bc48874c6100ad8cede76cbbf771b9d514b6c0

Authored by 潘钊
1 parent 3f247354

进站表格式

Showing 1 changed file with 33 additions and 9 deletions
README.md
... ... @@ -5,8 +5,8 @@
5 5 ---------
6 6 * [字典表](#怎样使用字典)
7 7 * [车载 gps 相关数据](#gps)
8   - * [实时gps数据接口http](#实时gps接口)
9   - * [进出站数据接口](#进出站数据接口)
  8 + * [实时gps数据接口 http](#实时gps接口)
  9 + * [进出站数据 mysql 表](#进站数据)
10 10  
11 11 ----------
12 12  
... ... @@ -15,16 +15,16 @@
15 15 字典操作全部由前端负责,主要有2种。
16 16  
17 17 1、将字典代码转换为中文 。片段加载完成后,包含 `class="nt-dictionary"` 的标签会被转换,data-group 为所属字典组。
18   -``` html
19   -<!-- 原 -->
  18 +``` javascript
  19 +
20 20 <span class="nt-dictionary" data-group="XianLuXingZhi">GJXL</span>
21 21  
22   -<!-- 转换后 -->
  22 +--转换后
23 23 <span class="dictionary" data-group="XianLuXingZhi" data-code="GJXL" >过江线路</span>
24 24 ```
25 25 2、生成下拉框,当包含`class="nt-dictionary"` 的标签是`select`时。
26   -``` html
27   -<!-- 原 -->
  26 +``` javascript
  27 +<!- 原 -->
28 28 <select class="nt-dictionary" data-group="XianLuXingZhi" data-code="GJXL"></select>
29 29  
30 30 <!-- 转换后 -->
... ... @@ -38,7 +38,7 @@
38 38  
39 39 ## gps
40 40 ----------
41   -### 实时gps接口
  41 +### 实时gps接口 http
42 42  
43 43 地址: [http://192.168.168.2:8888](http://192.168.168.2:8888)
44 44  
... ... @@ -59,4 +59,28 @@
59 59 | timestamp | long | 时间戳 |
60 60 | speed | float | 速度|
61 61 | direction | float | 方向(角度) |
62   -| upDown | int | 上下行(0 上行 , 1 下行 , -1 无效)|
63 62 \ No newline at end of file
  63 +| upDown | int | 上下行(0 上行 , 1 下行 , -1 无效)|
  64 +
  65 +
  66 +### 进站数据
  67 +----------
  68 +mysql:
  69 +表名:
  70 +
  71 +| 字段 | 类型 | 备注 |
  72 +| ---- | ---- | ---- |
  73 +| id | int | ID |
  74 +| deviceId | String | 设备号 |
  75 +| lineId | int | 线路编码 |
  76 +| stopNo | int | 站点编码 |
  77 +| timestamp | long | 时间戳 |
  78 +| upDown | int | 上下行(0 上行 , 1 下行 , -1 无效) |
  79 +| createDate | Date | 创建时间 |
  80 +
  81 +
  82 +
  83 +
  84 +
  85 +
  86 +
  87 +
... ...