lyhzzz 5 kuukautta sitten
vanhempi
commit
3fd1fb03aa
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 u.user_id = #{param.userId}
+            and d.user_id = #{param.userId}
         </if>
         <if test="param.type !=null ">
             and d.type = #{param.type}