| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | public class VciBaseUtil { |
| | | |
| | | private static Logger log = LoggerFactory.getLogger(VciBaseUtil.class); |
| | | public static final String NOTIN = "not in"; |
| | | private static String localIp = null; |
| | |
| | | |
| | | public static String getPk() { |
| | | return UUID.randomUUID().toString(); |
| | | } |
| | | |
| | | public static SessionInfo getCurrentUserSessionInfo() throws VciBaseException { |
| | | SessionInfo si = getCurrentUserSessionInfoNotException(); |
| | | if (si == null) { |
| | | throw new VciBaseException("noLogin", new String[]{"没有当前用户信息"}); |
| | | } else { |
| | | return si; |
| | | } |
| | | } |
| | | |
| | | public static int getIntForBoolean(boolean b) { |
| | |
| | | return listHasList; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |