上饶市公安局wvp平台
zhongrj
2025-01-16 f1d079f9c0b3d384090477ca54e0548373d62b57
src/main/java/com/genersoft/iot/vmp/policeBodyCamera/mapper/DeviceChannelPoliceCameraMapper.java
@@ -106,7 +106,7 @@
            " <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" +
@@ -199,7 +199,7 @@
    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);
@@ -354,7 +354,7 @@
     * @param mobilePosition
     * @return
     */
    @Insert("INSERT INTO device_mobile_position_police_camera (deviceId,channelId, deviceName, time, longitude, latitude, altitude, speed, direction, reportSource, geodeticSystem, cnLng, cnLat) " +
            "VALUES ('${deviceId}','${channelId}', '${deviceName}', '${time}', ${longitude}, ${latitude}, ${altitude}, ${speed}, ${direction}, '${reportSource}', '${geodeticSystem}', '${cnLng}', '${cnLat}')")
    @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);
}