lyhzzz 8 months ago
parent
commit
73a6862918
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/agent/CameraIncrementLogMapper.xml

+ 1 - 1
src/main/resources/mapper/agent/CameraIncrementLogMapper.xml

@@ -17,7 +17,7 @@
     </select>
     </select>
 
 
     <sql id="commonSql">
     <sql id="commonSql">
-        <if test="param.agentId != null and ( param.authCameraIds == null and param.authCameraIds.size &lt; 0 )">
+        <if test="param.agentId != null and ( param.authCameraIds == null or param.authCameraIds.size &lt; 0 )">
             and d.agent_id = #{param.agentId}
             and d.agent_id = #{param.agentId}
         </if>
         </if>
         <if test="param.authCameraIds != null and param.authCameraIds.size >0">
         <if test="param.authCameraIds != null and param.authCameraIds.size >0">