.
This commit is contained in:
@@ -10,6 +10,7 @@ import net.tccn.meta.MetaService;
|
||||
import net.tccn.meta.MetaTable;
|
||||
import net.tccn.plat.DbPlat;
|
||||
import net.tccn.plat.SysPlat;
|
||||
import org.redkale.util.Comment;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.function.BiFunction;
|
||||
@@ -470,6 +471,12 @@ public class MetaKit {
|
||||
return dbAccount.get();
|
||||
}
|
||||
|
||||
@Comment("通过平台token 得到平台id")
|
||||
public static String getPlatId(String platToken) { //
|
||||
Optional<SysPlat> plat = sysPlats.stream().filter(x -> x.getToken().equals(platToken)).findAny();
|
||||
return plat.get().getKey();
|
||||
}
|
||||
|
||||
public String nextAlias(String x) {
|
||||
return next(x, "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user