@SuppressWarnings("unchecked")
  public void tranLogon(Context context) throws ServiceException {

    // 登录服务
    ILogonTransService logonTransService =
        (ILogonTransService) Context.getBean("corporLogonTransServiceImpl");
    Map<String, Object> lo = logonTransService.tranLogon(context);

    // 单用户登录
    Map<String, Object> cst = (Map<String, Object>) lo.get("cstInf");
    String spoMode = ContextUtil.getProperties("spoMode");
    if ("true".equals(spoMode)) {
      //			更新单用户控制表
      String cstNo = (String) cst.get("cstNo");
      String mac = (String) lo.get("macAddress");
      context.put("cstNo", cstNo);
      context.put("userNo", lo.get("userId"));
      context.put("mac", mac);
      ILogonSpoUpdateTransService logonSpoUpdateTransService =
          (ILogonSpoUpdateTransService) Context.getBean("logonSpoUpdateTransService");
      String lastSessionId = logonSpoUpdateTransService.tranPbSpoUpdateSubmit(context);
      if (null != lastSessionId) {
        lo.put("lastSessionId", lastSessionId);
      }
    }

    context.put("LogonUserMap", lo);
  }
 /**
  * @Title: tranQueryLastSessionId @Description: TODO(查询客户最后登录sessionId)
  *
  * @param head
  * @return
  * @throws ServiceException
  */
 public Map<String, Object> tranQueryLastSessionId(Context context) throws ServiceException {
   ILogonSpoUpdateTransService logonSpoUpdateTransService =
       (ILogonSpoUpdateTransService) Context.getBean("logonSpoUpdateTransService");
   return logonSpoUpdateTransService.tranPbSpoQuery(context);
 }