修复国标级联注册失败
This commit is contained in:
@@ -2,6 +2,7 @@ package com.genersoft.iot.vmp.gb28181.dao;
|
||||
|
||||
import com.genersoft.iot.vmp.gb28181.bean.*;
|
||||
import com.genersoft.iot.vmp.gb28181.dao.provider.ChannelProvider;
|
||||
import com.genersoft.iot.vmp.service.bean.GPSMsgInfo;
|
||||
import com.genersoft.iot.vmp.streamPush.bean.StreamPush;
|
||||
import org.apache.ibatis.annotations.*;
|
||||
import org.springframework.stereotype.Repository;
|
||||
@@ -451,13 +452,18 @@ public interface CommonGBChannelMapper {
|
||||
List<CommonGBChannel> queryListByStreamPushList(@Param("dataType") Integer dataType, List<StreamPush> streamPushList);
|
||||
|
||||
@Update(value = {" <script>" +
|
||||
" <foreach collection='channels' item='item' separator=';' >" +
|
||||
" <foreach collection='gpsMsgInfoList' item='item' separator=';' >" +
|
||||
" UPDATE wvp_device_channel " +
|
||||
" SET gb_longitude=#{item.gbLongitude}, gb_latitude=#{item.gbLatitude} " +
|
||||
" WHERE data_type = #{dataType} AND gb_device_id=#{item.gbDeviceId} "+
|
||||
" SET gb_longitude=#{item.lng}" +
|
||||
", gb_latitude=#{item.lat} " +
|
||||
", gps_speed=#{item.speed} " +
|
||||
", gps_altitude=#{item.altitude} " +
|
||||
", gps_direction=#{item.direction} " +
|
||||
", gps_time=#{item.time} " +
|
||||
" WHERE gb_device_id=#{item.id} "+
|
||||
"</foreach>"+
|
||||
" </script>"})
|
||||
void updateGpsByDeviceIdForStreamPush(@Param("dataType") Integer dataType, List<CommonGBChannel> channels);
|
||||
void updateGpsByDeviceId(List<GPSMsgInfo> gpsMsgInfoList);
|
||||
|
||||
@SelectProvider(type = ChannelProvider.class, method = "queryList")
|
||||
List<CommonGBChannel> queryList(@Param("query") String query, @Param("online") Boolean online,
|
||||
|
||||
Reference in New Issue
Block a user