Commit 151e98c2f4c6deb0ebc10e7f7fa0a168c2ba9331

Authored by chenjunyu_1481036421
1 parent 5ee5ce59

fix:设备查询物模型增加排序

@@ -208,7 +208,8 @@ public class ThingsModelServiceImpl @@ -208,7 +208,8 @@ public class ThingsModelServiceImpl
208 .eq(TkThingsModelEntity::getTenantId, tenantId) 208 .eq(TkThingsModelEntity::getTenantId, tenantId)
209 .eq(TkThingsModelEntity::getDeviceProfileId, deviceProfileId) 209 .eq(TkThingsModelEntity::getDeviceProfileId, deviceProfileId)
210 .eq(!typeEnum.equals(FunctionTypeEnum.all), TkThingsModelEntity::getFunctionType, typeEnum) 210 .eq(!typeEnum.equals(FunctionTypeEnum.all), TkThingsModelEntity::getFunctionType, typeEnum)
211 - .eq(TkThingsModelEntity::getStatus, StatusEnum.ENABLE.getIndex())); 211 + .eq(TkThingsModelEntity::getStatus, StatusEnum.ENABLE.getIndex())
  212 + .orderBy(true, true, TkThingsModelEntity::getSort));
212 if (entityList.isEmpty()) { 213 if (entityList.isEmpty()) {
213 return null; 214 return null;
214 } 215 }