lyhzzz hace 8 meses
padre
commit
73a6862918
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/resources/mapper/agent/CameraIncrementLogMapper.xml

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

@@ -17,7 +17,7 @@
     </select>
 
     <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}
         </if>
         <if test="param.authCameraIds != null and param.authCameraIds.size >0">