瀏覽代碼

修复相机列表第二页出现第一页数据重复问题

lyhzzz 2 年之前
父節點
當前提交
b47d5cd481
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/manage/CameraMapper.xml

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

@@ -50,7 +50,7 @@
         <if test="param.bindStatus !=null and param.bindStatus ==1 ">
             and u.user_name is not null
         </if>
-        order by c.activated_time desc
+        order by  c.activated_time desc ,c.id desc
     </select>
     <select id="getByOutSnCodes" resultType="com.fdkankan.manage.entity.Camera">
         select * from t_camera c left join t_camera_detail d on c.id = d.camera_id