コード例 #1
0
 /**
  * 获取在线用户数量
  *
  * @author lzx
  * @date 创建时间 2012-5-18
  * @since V1.0
  */
 public ModelAndView getOnlineCount(
     HttpServletRequest request, HttpServletResponse response, DataObject para) {
   String onlineCount;
   try {
     para.put("getOnlineCount", "true");
     onlineCount = BusinessCustomHandler.getPersonalizeInfo(para).getString("onlineCount");
   } catch (Exception e) {
     e.printStackTrace();
     ActionUtil.writeMessageToResponse(response, "");
     return null;
   }
   ActionUtil.writeMessageToResponse(response, onlineCount);
   return null;
 }
コード例 #2
0
 /**
  * 获取用户上次登录时间
  *
  * @author oyzc
  * @date 创建时间 2012-5-7
  * @since V1.0
  */
 public ModelAndView getLastLogonTime(
     HttpServletRequest request, HttpServletResponse response, DataObject para) {
   String lastLogonTime;
   try {
     para.put("getLastLogonTime", "true");
     lastLogonTime = BusinessCustomHandler.getPersonalizeInfo(para).getString("lastLogonTime");
   } catch (Exception e) {
     e.printStackTrace();
     ActionUtil.writeMessageToResponse(response, "");
     return null;
   }
   ActionUtil.writeMessageToResponse(response, lastLogonTime);
   return null;
 }