Commit 64d50c5540224ce4e9bca8f1abfc852be47bb515
1 parent
31219f0c
根据车辆编号查询设备通道信息
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java
| ... | ... | @@ -162,7 +162,7 @@ public interface DeviceMapper { |
| 162 | 162 | "geo_coord_sys,"+ |
| 163 | 163 | "on_line,"+ |
| 164 | 164 | "media_server_id,"+ |
| 165 | - "(SELECT count(0) FROM wvp_device_channel WHERE device_id=de.device_id) as channel_count " + | |
| 165 | + "(SELECT count(0) FROM wvp_device_channel WHERE device_id=de.device_id) as channel_count,car_No " + | |
| 166 | 166 | "FROM wvp_device de" + |
| 167 | 167 | "<if test=\"onLine != null\"> where on_line=${onLine}</if>"+ |
| 168 | 168 | " order by create_time desc "+ | ... | ... |
web_src/src/components/DeviceList.vue
| ... | ... | @@ -15,6 +15,8 @@ |
| 15 | 15 | </el-table-column> |
| 16 | 16 | <el-table-column prop="deviceId" label="设备编号" min-width="200" > |
| 17 | 17 | </el-table-column> |
| 18 | + <el-table-column prop="carNo" label="车辆编号" min-width="200" > | |
| 19 | + </el-table-column> | |
| 18 | 20 | <el-table-column label="地址" min-width="160" > |
| 19 | 21 | <template slot-scope="scope"> |
| 20 | 22 | <div slot="reference" class="name-wrapper"> | ... | ... |