|
|
@@ -61,7 +61,6 @@ public class BusJcebController extends BaseController {
|
|
|
private final IBusJcbWjcxcService wjcxcService;
|
|
|
|
|
|
private final IBaseStationService stationService;
|
|
|
-
|
|
|
private final ISysFileService fileService;
|
|
|
|
|
|
public BusJcebController(
|
|
|
@@ -280,7 +279,7 @@ public class BusJcebController extends BaseController {
|
|
|
list.add(jcebRecordVo);
|
|
|
}
|
|
|
}
|
|
|
- // 汇总结果按日期排序
|
|
|
+ // 汇总结果按日期(最新的操作日期)排序
|
|
|
SortTypeEnum sortType = SortTypeEnum.ofValue(query.getIsAsc());
|
|
|
JcebCountComparator comparator = new JcebCountComparator();
|
|
|
if (null == sortType || sortType == SortTypeEnum.DESC) {
|
|
|
@@ -295,6 +294,9 @@ public class BusJcebController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 按最后操作时间排序策略
|
|
|
+ */
|
|
|
static class JcebCountComparator implements Comparator<JcebCountVo> {
|
|
|
|
|
|
private SortTypeEnum isAsc;
|