| | |
| | | WHERE cast(#{deptId} as varchar) = any(string_to_array(ancestors,',')) ))
|
| | | </if>
|
| | | <if test="towerId != null ">and c.tower_id = #{towerId}</if>
|
| | | <if test="state != null ">and c.state = #{state}</if>
|
| | | <!-- 数据范围过滤 -->
|
| | | ${params.dataScope}
|
| | | </where>
|
| | |
| | | <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="state != null ">and c.state = #{state}</if>
|
| | | </where>
|
| | | </select>
|
| | | <select id="selectArdCamerasById" parameterType="String" resultMap="ArdCamerasResult">
|
| | |
| | | <if test="createTime != null">create_time,</if>
|
| | | <if test="updateBy != null">update_by,</if>
|
| | | <if test="updateTime != null">update_time,</if>
|
| | | <if test="state != null">state,</if>
|
| | | </trim>
|
| | | <trim prefix="values (" suffix=")" suffixOverrides=",">
|
| | | <if test="id != null">#{id},</if>
|
| | |
| | | <if test="createTime != null">#{createTime},</if>
|
| | | <if test="updateBy != null">#{updateBy},</if>
|
| | | <if test="updateTime != null">#{updateTime},</if>
|
| | | <if test="state != null">#{state},</if>
|
| | | </trim>
|
| | | </insert>
|
| | |
|