Commit 226693a6 authored by shiyu's avatar shiyu

数据看板

parent 9de94ac9
...@@ -119,13 +119,12 @@ public final class TimeUtil { ...@@ -119,13 +119,12 @@ public final class TimeUtil {
public static Pair getAccessDate(int type) { public static Pair getAccessDate(int type) {
Supplier<Pair> supplier = DashbordEnum.TypeEnum.getFunctionByCode(type); return DashbordEnum.TypeEnum.getEnumByCode(type).getData();
return supplier.get();
} }
public static void main(String[] args) { public static void main(String[] args) {
Pair<String, String> pair = getAccessDate(5); Pair<String, String> pair = getAccessDate(4);
System.out.println(pair.getKey()); System.out.println(pair.getKey());
System.out.println(pair.getValue()); System.out.println(pair.getValue());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment