Showing
1 changed file
with
2 additions
and
1 deletions
@@ -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 | } |