| | |
| | | return 0; |
| | | } |
| | | } |
| | | |
| | | public static SessionInfo getCurrentUserSessionInfo() throws VciBaseException { |
| | | SessionInfo si = getCurrentUserSessionInfoNotException(); |
| | | if (si == null) { |
| | | throw new VciBaseException("noLogin", new String[]{"没有当前用户信息"}); |
| | | } else { |
| | | return si; |
| | | } |
| | | } |
| | | /** |
| | | * 设置当前线程中的用户对象 |
| | | * @param sessionInfo 用户对象 |
| | | */ |
| | | public static void setCurrentUserSessionInfo(SessionInfo sessionInfo){ |
| | | WebThreadLocalUtil.getCurrentUserSessionInfoInThread().set(sessionInfo); |
| | | } |
| | | public static long getLong(String s) { |
| | | long l = 0L; |
| | | if (s == null) { |