ZhaoMn 3 лет назад
Родитель
Сommit
740f7eb30b

+ 4 - 2
railway-admin/src/main/java/com/railway/web/controller/business/catenary/BusJcebController.java

@@ -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;

+ 1 - 0
railway-common/src/main/java/com/railway/common/enums/PostTypeEnum.java

@@ -11,6 +11,7 @@ import com.railway.common.utils.SecurityUtils;
 public enum PostTypeEnum {
 
   /** 岗位 */
+  CENTER("staff", "中心领导"),
   LEADER("leader", "领导"),
   STAFF("staff", "职工"),
   INSPECTOR("inspector", "送检员"),