| | |
| | | "wvp_device_channel dc " + |
| | | "WHERE " + |
| | | "dc.device_id = #{deviceId} " + |
| | | " <if test='query != null'> AND (dc.channel_id LIKE concat('%',#{query},'%') OR dc.name LIKE concat('%',#{query},'%') OR dc.name LIKE concat('%',#{query},'%'))</if> " + |
| | | " <if test='query != null'> AND (" + |
| | | "dc.channel_id LIKE concat('%',#{query},'%') " + |
| | | "OR dc.name LIKE concat('%',#{query},'%') " + |
| | | "OR dc.custom_name LIKE concat('%',#{query},'%')" + |
| | | ")</if> " + |
| | | " <if test='parentChannelId != null'> AND (dc.parent_id=#{parentChannelId} OR dc.civil_code = #{parentChannelId}) </if> " + |
| | | " <if test='online == true' > AND dc.status= true</if>" + |
| | | " <if test='online == false' > AND dc.status= false</if>" + |
| | |
| | | void clearPlay(String deviceId); |
| | | // 设备主子码流逻辑END |
| | | @Select(value = {" <script>" + |
| | | "select * " + |
| | | "SELECT id,\n" + |
| | | " channel_id,\n" + |
| | | " COALESCE(custom_name, name) AS name,\n" + |
| | | " custom_name,\n" + |
| | | " manufacture,\n" + |
| | | " model,\n" + |
| | | " owner,\n" + |
| | | " civil_code,\n" + |
| | | " block,\n" + |
| | | " address,\n" + |
| | | " parent_id,\n" + |
| | | " safety_way,\n" + |
| | | " register_way,\n" + |
| | | " cert_num,\n" + |
| | | " certifiable,\n" + |
| | | " err_code,\n" + |
| | | " end_time,\n" + |
| | | " secrecy,\n" + |
| | | " ip_address,\n" + |
| | | " port,\n" + |
| | | " password,\n" + |
| | | " COALESCE(custom_ptz_type, ptz_type) AS ptz_type,\n" + |
| | | " status,\n" + |
| | | " COALESCE(custom_longitude, longitude) AS longitude,\n" + |
| | | " COALESCE(custom_latitude, latitude) AS latitude,\n" + |
| | | " stream_id,\n" + |
| | | " device_id,\n" + |
| | | " parental,\n" + |
| | | " has_audio,\n" + |
| | | " create_time,\n" + |
| | | " update_time,\n" + |
| | | " sub_count,\n" + |
| | | " longitude_gcj02,\n" + |
| | | " latitude_gcj02,\n" + |
| | | " longitude_wgs84,\n" + |
| | | " latitude_wgs84,\n" + |
| | | " business_group_id,\n" + |
| | | " gps_time\n" + |
| | | "from wvp_device_channel " + |
| | | "where device_id=#{deviceId}" + |
| | | " <if test='parentId != null and parentId != deviceId'> and parent_id = #{parentId} </if>" + |