| | |
| | | import com.genersoft.iot.vmp.gb28181.bean.GbStream; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.StreamProxyItem; |
| | | import com.genersoft.iot.vmp.media.zlm.dto.StreamPushItem; |
| | | import com.genersoft.iot.vmp.service.bean.GPSMsgInfo; |
| | | import org.apache.ibatis.annotations.*; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | "WHERE pgs.platformId = '${platformId}'") |
| | | List<GbStream> queryGbStreamListInPlatform(String platformId); |
| | | |
| | | |
| | | @Select("SELECT gs.*, pgs.platformId as platformId, pgs.catalogId as catalogId FROM gb_stream gs LEFT JOIN platform_gb_stream pgs " + |
| | | "ON gs.app = pgs.app and gs.stream = pgs.stream WHERE pgs.app is NULL and pgs.stream is NULL") |
| | | List<GbStream> queryStreamNotInPlatform(); |
| | | |
| | | @Update("UPDATE gb_stream " + |
| | | "SET status=${status} " + |
| | | "WHERE app=#{app} AND stream=#{stream}") |
| | |
| | | "</foreach> " + |
| | | "</script>") |
| | | void batchAdd(List<StreamPushItem> subList); |
| | | |
| | | |
| | | @Update({"<script>" + |
| | | "<foreach collection='gpsMsgInfos' item='item' separator=';'>" + |
| | | " UPDATE" + |
| | | " gb_stream" + |
| | | " SET longitude=${item.lng}, latitude=${item.lat} " + |
| | | "WHERE gbId=#{item.id}"+ |
| | | "</foreach>" + |
| | | "</script>"}) |
| | | int updateStreamGPS(List<GPSMsgInfo> gpsMsgInfos); |
| | | } |