lyhzzz преди 11 месеца
родител
ревизия
9910d9d124
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/resources/mapper/agent/CameraMapper.xml

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

@@ -12,7 +12,7 @@
         left join t_user_increment ui on d.camera_id = ui.camera_id and ui.rec_status = 'A'
         where c.rec_status = 'A'
         <if test="param.userId !=null ">
-            and d.user_id = #{param.userId}
+            and u.user_id = #{param.userId}
         </if>
         <if test="param.type !=null ">
             and d.type = #{param.type}