Browse Source

场站排序排序

wangchangsheng 3 years ago
parent
commit
413bef4ddc

+ 1 - 0
benchmarking-impala/src/main/java/com/gyee/benchmarkingimpala/controller/BenchmarkingController.java

@@ -40,6 +40,7 @@ public class BenchmarkingController {
         List<Windpowerstation> resultList = benchmarkingService.wplist();
 
         if (StringUtils.isNotNull(resultList)) {
+            SortUtils.sort(resultList,"ordernum",SortUtils.ASC);
             return R.ok(resultList.size()).data(resultList);
         }else{
             return R.error().message("访问失败");