| | |
| | | package com.genersoft.iot.vmp.policeBodyCamera.mapper; |
| | | |
| | | import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel; |
| | | import com.genersoft.iot.vmp.gb28181.bean.MobilePosition; |
| | | import com.genersoft.iot.vmp.policeBodyCamera.entity.DeviceChannelPoliceCamera; |
| | | import com.genersoft.iot.vmp.vmanager.bean.DeviceChannelTree; |
| | | import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce; |
| | |
| | | " <if test='hasSubChannel == false' > AND dc.subCount = 0 </if>" + |
| | | "GROUP BY dc.channelId " + |
| | | " </script>"}) |
| | | List<DeviceChannel> queryChannelsCar(String deviceId, String parentChannelId, String query,String type, Boolean hasSubChannel, Boolean online); |
| | | List<DeviceChannel> queryChannelsCar(String deviceId, String parentChannelId, String query, String type, Boolean hasSubChannel, Boolean online); |
| | | @Select(value = {" <script>" + |
| | | "SELECT " + |
| | | "dc.id,\n" + |
| | |
| | | List<ChannelReduce> queryChannelListInAll(String query, Boolean online, Boolean hasSubChannel, String platformId, String catalogId); |
| | | |
| | | @Select("SELECT * FROM device_channel_police_camera WHERE channelId=#{channelId}") |
| | | List<DeviceChannel> queryChannelByChannelId( String channelId); |
| | | List<DeviceChannel> queryChannelByChannelId(String channelId); |
| | | |
| | | @Update(value = {"UPDATE device_channel_police_camera SET status=0 WHERE deviceId=#{deviceId} AND channelId=#{channelId}"}) |
| | | void offline(String deviceId, String channelId); |
| | |
| | | " where deviceId = #{deviceId} " + |
| | | " and channelId = #{channelId}") |
| | | int updateChannelSubCount(String deviceId, String channelId); |
| | | |
| | | /** |
| | | * 添加执法记录仪移动位置信息 |
| | | * @param mobilePosition |
| | | * @return |
| | | */ |
| | | @Insert("INSERT INTO device_mobile_position_police_camera (deviceId,channelId, deviceName, time, longitude, latitude, altitude, speed, direction, reportSource) " + |
| | | "VALUES ('${deviceId}','${channelId}', '${deviceName}', '${time}', ${longitude}, ${latitude}, ${altitude}, ${speed}, ${direction}, '${reportSource}')") |
| | | int insertNewPositionPoliceCamera(MobilePosition mobilePosition); |
| | | } |