| | |
| | | |
| | | @Insert("INSERT INTO parent_platform (enable, name, serverGBId, serverGBDomain, serverIP, serverPort, deviceGBId, deviceIp, " + |
| | | " devicePort, username, password, expires, keepTimeout, transport, characterSet, ptz, rtcp, " + |
| | | " status, shareAllLiveStream) " + |
| | | " status, shareAllLiveStream, catalogId) " + |
| | | " VALUES (${enable}, '${name}', '${serverGBId}', '${serverGBDomain}', '${serverIP}', ${serverPort}, '${deviceGBId}', '${deviceIp}', " + |
| | | " '${devicePort}', '${username}', '${password}', '${expires}', '${keepTimeout}', '${transport}', '${characterSet}', ${ptz}, ${rtcp}, " + |
| | | " ${status}, ${shareAllLiveStream})") |
| | | " ${status}, ${shareAllLiveStream}, #{catalogId})") |
| | | int addParentPlatform(ParentPlatform parentPlatform); |
| | | |
| | | @Update("UPDATE parent_platform " + |
| | |
| | | "ptz=#{ptz}, " + |
| | | "rtcp=#{rtcp}, " + |
| | | "status=#{status}, " + |
| | | "shareAllLiveStream=#{shareAllLiveStream} " + |
| | | "shareAllLiveStream=#{shareAllLiveStream}, " + |
| | | "catalogId=#{catalogId} " + |
| | | "WHERE id=#{id}") |
| | | int updateParentPlatform(ParentPlatform parentPlatform); |
| | | |
| | |
| | | " +\n" + |
| | | " (SELECT count(0)\n" + |
| | | " FROM platform_gb_stream pgs\n" + |
| | | " WHERE pgs.platformId = pp.serverGBId)) as channelCount\n" + |
| | | " WHERE pgs.platformId = pp.serverGBId)\n" + |
| | | " +\n" + |
| | | " (SELECT count(0)\n" + |
| | | " FROM platform_catalog pgc\n" + |
| | | " WHERE pgc.platformId = pp.serverGBId)) as channelCount\n" + |
| | | "FROM parent_platform pp ") |
| | | List<ParentPlatform> getParentPlatformList(); |
| | | |
| | |
| | | |
| | | @Select("SELECT * FROM parent_platform WHERE shareAllLiveStream=true") |
| | | List<ParentPlatform> selectAllAhareAllLiveStream(); |
| | | |
| | | @Update(value = {" <script>" + |
| | | "UPDATE parent_platform " + |
| | | "SET catalogId=#{catalogId}" + |
| | | "WHERE serverGBId=#{platformId}"+ |
| | | "</script>"}) |
| | | int setDefaultCatalog(String platformId, String catalogId); |
| | | } |