|  |  |  | 
|---|
|  |  |  | <result property="username" column="username"/> | 
|---|
|  |  |  | <result property="password" column="password"/> | 
|---|
|  |  |  | <result property="gdtype" column="gdtype"/> | 
|---|
|  |  |  | <result property="channel" column="channel"/> | 
|---|
|  |  |  | <result property="chanNum" column="channel"/> | 
|---|
|  |  |  | <result property="longitude" column="longitude"/> | 
|---|
|  |  |  | <result property="latitude" column="latitude"/> | 
|---|
|  |  |  | <result property="altitude" column="altitude"/> | 
|---|
|  |  |  | 
|---|
|  |  |  | c.altitude, | 
|---|
|  |  |  | c.user_id, | 
|---|
|  |  |  | c.dept_id, | 
|---|
|  |  |  | c.login_id, | 
|---|
|  |  |  | c.cam_heading, | 
|---|
|  |  |  | c.cam_pitch, | 
|---|
|  |  |  | c.cam_roll, | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="username != null  and username != ''">and c.username like '%'||#{username}||'%'</if> | 
|---|
|  |  |  | <if test="password != null  and password != ''">and c.password = #{password}</if> | 
|---|
|  |  |  | <if test="gdtype != null  and gdtype != ''">and c.gdtype = #{gdtype}</if> | 
|---|
|  |  |  | <if test="channel != null ">and c.channel = #{channel}</if> | 
|---|
|  |  |  | <if test="chanNum != null ">and c.channel = #{chanNum}</if> | 
|---|
|  |  |  | <if test="longitude != null ">and c.longitude = #{longitude}</if> | 
|---|
|  |  |  | <if test="latitude != null ">and c.latitude = #{latitude}</if> | 
|---|
|  |  |  | <if test="altitude != null ">and c.altitude = #{altitude}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="camMaxVisibleDistance != null ">and c.cam_max_visible_distance = #{camMaxVisibleDistance}</if> | 
|---|
|  |  |  | <if test="camAlarmGuideEnable != null ">and c.cam_alarm_guide_enable = #{camAlarmGuideEnable}</if> | 
|---|
|  |  |  | <if test="loginId != null ">and c.login_id = #{loginId}</if> | 
|---|
|  |  |  | <if test="deptId != null ">and (d.dept_id = #{deptId} OR d.dept_id IN ( SELECT t.dept_id FROM sys_dept t | 
|---|
|  |  |  | WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) )) | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <!-- 数据范围过滤 --> | 
|---|
|  |  |  | ${params.dataScope} | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="username != null  and username != ''">and c.username like '%'||#{username}||'%'</if> | 
|---|
|  |  |  | <if test="password != null  and password != ''">and c.password = #{password}</if> | 
|---|
|  |  |  | <if test="gdtype != null  and gdtype != ''">and c.gdtype = #{gdtype}</if> | 
|---|
|  |  |  | <if test="channel != null ">and c.channel = #{channel}</if> | 
|---|
|  |  |  | <if test="chanNum != null ">and c.channel = #{chanNum}</if> | 
|---|
|  |  |  | <if test="longitude != null ">and c.longitude = #{longitude}</if> | 
|---|
|  |  |  | <if test="latitude != null ">and c.latitude = #{latitude}</if> | 
|---|
|  |  |  | <if test="altitude != null ">and c.altitude = #{altitude}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="username != null">username,</if> | 
|---|
|  |  |  | <if test="password != null">password,</if> | 
|---|
|  |  |  | <if test="gdtype != null">gdtype,</if> | 
|---|
|  |  |  | <if test="channel != null">channel,</if> | 
|---|
|  |  |  | <if test="chanNum != null">channel,</if> | 
|---|
|  |  |  | <if test="longitude != null">longitude,</if> | 
|---|
|  |  |  | <if test="latitude != null">latitude,</if> | 
|---|
|  |  |  | <if test="altitude != null">altitude,</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="username != null">#{username},</if> | 
|---|
|  |  |  | <if test="password != null">#{password},</if> | 
|---|
|  |  |  | <if test="gdtype != null">#{gdtype},</if> | 
|---|
|  |  |  | <if test="channel != null">#{channel},</if> | 
|---|
|  |  |  | <if test="chanNum != null">#{chanNum},</if> | 
|---|
|  |  |  | <if test="longitude != null">#{longitude},</if> | 
|---|
|  |  |  | <if test="latitude != null">#{latitude},</if> | 
|---|
|  |  |  | <if test="altitude != null">#{altitude},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="username != null">username = #{username},</if> | 
|---|
|  |  |  | <if test="password != null">password = #{password},</if> | 
|---|
|  |  |  | <if test="gdtype != null">gdtype = #{gdtype},</if> | 
|---|
|  |  |  | <if test="channel != null">channel = #{channel},</if> | 
|---|
|  |  |  | <if test="chanNum != null">channel = #{chanNum},</if> | 
|---|
|  |  |  | <if test="longitude != null">longitude = #{longitude},</if> | 
|---|
|  |  |  | <if test="latitude != null">latitude = #{latitude},</if> | 
|---|
|  |  |  | <if test="altitude != null">altitude = #{altitude},</if> | 
|---|