소스 검색

修改分页查询

xujie 1 년 전
부모
커밋
0a597b4cfc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      soc-modules/soc-modules-iot/src/main/resources/mapper/IotDeviceInfoMapper.xml

+ 1 - 1
soc-modules/soc-modules-iot/src/main/resources/mapper/IotDeviceInfoMapper.xml

@@ -34,7 +34,7 @@
                     and d.org_path like concat(#{req.orgPath},'%')
                 </otherwise>
             </choose>
-        order by d.device_type asc
+        order by d.device_type asc,d.id desc
 
     </select>
     <select id="getDetailById" resultType="com.xunmei.iot.vo.deviceInfo.DeviceDetailInfoVo">