@SuppressWarnings("unchecked")
  public String execute() {
    Context context = getContext();
    /** 获取渠道流水号** */
    Context parentContext = context.getParent();
    Map<String, Object> map = parentContext.getDataMap();
    flowNo = (String) map.get("flowNo");
    context.put("flowNo", flowNo);
    // 操作人员信息
    tellerMap = new HashMap<String, String>();
    Context sessionContext = getSessionContext();
    Map<String, Object> dataMap = sessionContext.getDataMap();
    Map<String, Object> tellerInfoMap = (Map<String, Object>) dataMap.get("imUserMap");
    String tellerCode = (String) tellerInfoMap.get("tellerCode");
    String branchId = (String) tellerInfoMap.get("branchId");
    String serverDate = IMJspBeanUtil.getServerDate(null);
    tellerMap.put("tellerCode", tellerCode);
    tellerMap.put("branchId", branchId);
    tellerMap.put("serverDate", serverDate);
    tellerMap.put("authCode", authCode);

    try {
      if ("3".equals(safeToolSelect)) {
        context.put("cstNo", cstNo);
        context.put("custIdentiType", "1");
        /*context.put("safeToolSelect", safeToolSelect);*/
        context.put("newTokenNo", newTokenNo);
        context.put("tellerCode", tellerCode);
        context.put("branchId", branchId);
        context.put("AUTH_NO_NEED", "1");

        IcopClientManager.callChannelService(context, "PSVR000128"); // 安全工具换发
        activeCode = context.getDataAsStr("activeCode");
        tokenName = IMJspBeanUtil.getAprShowMsg("IM_SAFE_TOOL", safeToolSelect);
      } else if ("4".equals(safeToolSelect)) {
        context.put("appCode", "301");
        context.put("cstNo", cstNo);
        context.put("custIdentiType", "1");
        context.put("originalCertOrderNo", serialNo);
        context.put("originalIssuer", issUer);
        context.put("keyId", usbNo);
        context.put("tellerCode", tellerCode);
        context.put("branchId", branchId);
        context.put("AUTH_NO_NEED", "1");
        IcopClientManager.callChannelService(context, "PSVR000165"); // 换Key
        usbNoName = IMJspBeanUtil.getAprShowMsg("IM_SAFE_TOOL", safeToolSelect);
        certDN = context.getDataAsStr("certDN");
      }
      // 转义,用于打印
      cstInfo.put("certTypeTxt", IMJspBeanUtil.getAprShowMsg("PB_CERT_TYPE", certType));
    } catch (Exception e) {
      hostErrorMessage = context.getDataAsStr("hostErrorMessage");
      return ERROR;
    }
    return SUCCESS;
  }
 @SuppressWarnings("unchecked")
 public String execute() {
   Context context = getContext();
   try {
     Context parentContext = context.getParent();
     String flowNo = parentContext.getDataAsStr("flowNo");
     context.put("flowNo", flowNo);
     context.put("tellerCode", tellerCode);
     // 柜员信息查询
     IcopClientManager.callChannelService(context, "CSVRIM000002");
     tellerInfoMap = (Map<String, Object>) context.getDataElement("tellerInfoMap");
     roleList = (List<Map<String, Object>>) tellerInfoMap.get("roleList");
     tellerInfoMap.put(
         "stt",
         ((String) IMJspBeanUtil.getAprShowMsg("IM_USER_STT", (String) tellerInfoMap.get("stt"))));
     tellerInfoMap.put(
         "certType",
         ((String)
             IMJspBeanUtil.getAprShowMsg("PB_CERT_TYPE", (String) tellerInfoMap.get("certType"))));
     roleName = "";
     for (int i = 0; i < roleList.size(); i++) {
       roleName = roleName + (String) roleList.get(i).get("roleName") + "、";
     }
     if (!roleName.equals("")) {
       roleName = roleName.substring(0, roleName.length() - 1);
     }
     return SUCCESS;
   } catch (Exception e) {
     hostErrorMessage = context.getDataAsStr("hostErrorMessage");
     this.handleError(e);
     return ERROR;
   }
 }
  @SuppressWarnings("unchecked")
  public String execute() throws Exception {
    Context context = getContext();
    Context sessionContext = this.getSessionContext();
    String cstNo = sessionContext.getDataAsStr("cstNo");
    String operChannel = sessionContext.getDataAsStr("operChannel");
    Context parentContext = context.getParent();
    String flowNo = parentContext.getDataAsStr("flowNo");
    context.put("accountNo", accNo);
    context.put("beginDate", fromDate);
    context.put("flowNo", flowNo);
    context.put("endDate", toDate);
    context.put("cashFlag", "1");
    context.put("currency", "01");
    context.put("sortType", "1");
    context.put("pageNo", pageNo);
    context.put("pageSize", PersonConstants.APP_PAGE_SIZE + "");

    context.put("operChannel", operChannel);
    context.put("cstNo", cstNo);

    IcopClientManager.callChannelService(context, "PSVR000003");
    detailList2 = (List<Map<String, Object>>) context.getDataElement("accountDetailList");

    if (detailList2 != null && detailList2.size() > 0) {
      for (int i = 0; i < detailList2.size(); i++) {
        Map<String, Object> map = detailList2.get(i);
        BigDecimal creditamt = new BigDecimal((String) map.get("creditamt"));
        creditamtSum = creditamtSum.add(creditamt);
        BigDecimal debitamt = new BigDecimal((String) map.get("debitamt"));
        debitamtSum = debitamtSum.add(debitamt);

        map.put(
            "currency",
            EBWebContextUtil.getAprShowMsg("CURRENCY_TYPE", (String) map.get("currency")));
        map.put(
            "loanFlagTxt",
            EBWebContextUtil.getAprShowMsg("LOANFLAG_TYPE", (String) map.get("loanFlag")));
        map.put("accountName", cstNameHost);

        map.put("accountNo", accNo);
        detailList.add(map);
      }
    }
    if (!StringUtil.isEmpty(type)) {
      if ("txt".equals(type)) {
        inputStream = generateTxt(detailList);
        contentType = MimeType.TXT.toString();
      } else if ("xls".equals(type)) {
        inputStream = generateExcel(detailList);
        contentType = MimeType.XLS.toString();
      } else if ("pdf".equals(type)) {
        inputStream = generatePdf(detailList);
        contentType = MimeType.PDF.toString();
      }
    }
    filename = fromDate + "-" + toDate + "." + type;

    return SUCCESS;
  }
  public String execute() throws Exception {
    cstInfo = new HashMap<String, String>();
    Context context = getContext();
    try {
      opType = "1";
      // context.put("verificationCode", "");
      /** 获取渠道流水号** */
      Context parentContext = context.getParent();
      flowNo = parentContext.getDataAsStr("flowNo");
      context.put("flowNo", flowNo);
      context.put("opType", opType);

      // 调用服务

      context.put("cstNo", autoAcc.get("cstNo"));
      context.put("accountNo", autoAcc.get("accountNo"));
      IcopClientManager.callChannelService(context, "CSVRPB000139"); // 修改默认账户
      //			cstInfo.put("certTypeTxt", IMJspBeanUtil.getAprShowMsg("PB_CERT_TYPE", certType));
      //			cstInfo.put("custLevelTxt", IMJspBeanUtil.getAprShowMsg("CUST_LEVEL", custLevel));
      // action公共部分,opType、targetSvrCode要根据不同交易,手动赋指定值
      // opType="0";//操作类型,要传给授权完成任务操作:0:添加/更新 1:删除
      taskId = context.getDataAsStr("taskId");
      authType = context.getDataAsStr("authType");
      authMode = context.getDataAsStr("authMode");
      authFlag = context.getDataAsStr("authFlag");
      authDetailUrl = context.getDataAsStr("authDetailUrl");
      targetSvrCode = "CSVRPB000139";
    } catch (Exception e) {
      this.handleError(e);
      hostErrorMessage = context.getDataAsStr("hostErrorMessage");
      return ERROR;
    }
    return SUCCESS;
  }
  @SuppressWarnings("unchecked")
  public String execute() throws Exception {
    try {
      // IServiceHandle serviceHandleService =
      // (IServiceHandle)AppContextUtil.getBean("serviceHandleService");
      // ICstFreezeUpTransService cstFreezeUpTranServiceImpl =
      // (ICstFreezeUpTransService)serviceHandleService.service("cstFreezeUpTransServiceImpl","innerPbCstChannelSttManageService");
      // cstChannelVO=cstFreezeUpTranServiceImpl.queryPbCstDetailInfoByCst(getChannelHead(), id);
      Context context = getContext();
      context.put("channelId", id);

      IcopClientManager.callChannelService(context, "CSVRIM000032");
      // cstChannelVO=(Map<String, Object>) context.getDataElement("cstChannelVO");
      Context sessionContext = (Context) Context.getBean("sessionContext");
      cstChannelVO = sessionContext.getDataMap();
      cstChannelVO.put("id", "099c0fdb-115d-4ba6-b657-cb15b4bd8241");
      cstChannelVO.put("nameCn", "poc1008097");
      cstChannelVO.put("sex", "M");
      cstChannelVO.put("level", "专业版");
      cstChannelVO.put("ctfType", "Key");
      cstChannelVO.put("ctfNo", "420431198803080001");
      cstChannelVO.put("mobile1", "13254522516");
      cstChannelVO.put("phone", "010-88566666");
      cstChannelVO.put("email", "*****@*****.**");
      cstChannelVO.put("stt", "4");
      cstChannelVO.put("channel", "0");
      // context.put("cstChannelVO", cstChannelVO);
    } catch (Exception ex) {
      this.handleError(ex);
    }
    return SUCCESS;
  }
  public String execute() throws Exception {
    Context context = getContext();
    try {
      opType = "1";
      // context.put("verificationCode", "");
      /** 获取渠道流水号 ** */
      Context parentContext = context.getParent();
      flowNo = parentContext.getDataAsStr("flowNo");
      context.put("flowNo", flowNo);
      context.put("opType", opType);

      // 调用服务
      context.put("infTitle", infTitle);
      context.put("infContent", infContent);
      context.put("infClass", infClass);
      context.put("infRelStatus", infRelStatus);
      context.put("uuid", uuid);
      //			context.getDataMap().remove("AUTH_NO_NEED");
      IcopClientManager.callChannelService(context, "CSVRPB000141");

      taskId = context.getDataAsStr("taskId");
      authType = context.getDataAsStr("authType");
      authMode = context.getDataAsStr("authMode");
      authFlag = context.getDataAsStr("authFlag");
      authDetailUrl = context.getDataAsStr("authDetailUrl");
      targetSvrCode = "CSVRPB000141";
    } catch (Exception e) {
      this.handleError(e);
      hostErrorMessage = context.getDataAsStr("hostErrorMessage");
      return ERROR;
    }
    return SUCCESS;
  }
  public String execute() throws Exception {

    try {
      Context context = getContext();
      Context parentContext = context.getParent();

      Map<String, Object> dataMap = parentContext.getDataMap();
      Context sessionContext = this.getSessionContext();

      String cstNo = sessionContext.getDataAsStr("cstNo");
      String flowNo = (String) dataMap.get("flowNo");

      context.put("cstNo", cstNo);
      context.put("flowNo", flowNo);
      context.put("treName", treName);
      context.put("treClassify", treClassify);

      // 电子协议查询
      IcopClientManager.callChannelService(context, "CSVRPB000165");

      treNo = context.getDataAsStr("treNo"); // 电子协议编号
      treClassify = context.getDataAsStr("treClassify"); // 电子协议类型
      treName = context.getDataAsStr("treName"); // 电子协议名称
      treTime = context.getDataAsStr("treTime"); // 电子协议创建时间
      treUser = context.getDataAsStr("treUser"); // 电子协议创建人
      treContent = context.getDataAsStr("treContent"); // 电子协议内容

    } catch (Exception e) {

    }
    return SUCCESS;
  }
  @SuppressWarnings("unchecked")
  public String execute() throws Exception {
    try {

      Context context = getContext();
      // Context sessionContext = this.getSessionContext();
      // Map<String, Object> dataMap = sessionContext.getDataMap();
      // String cstNo = (String) dataMap.get("cstNo");
      // String channel=(String)dataMap.get("channel");
      Context parentContext = context.getParent();

      Map<String, Object> map = parentContext.getDataMap();
      flowNo = (String) map.get("flowNo");

      context.put("flowNo", flowNo);
      context.put("transNo", transNo);
      context.put("pageNo", pageNo);
      context.put("pageSize", "10");
      IcopClientManager.callChannelService(context, "CSVRPB000234");
      // CallVirtualSerService.callVirtualServer(context, "CSVRPB000234");

      totalPage = context.getDataAsStr("totalPage");

      // pageNo = context.getDataAsStr("totalNo");

      transOperList = (List<Map<String, Object>>) context.getDataElement("parseTransOperList");

    } catch (Exception e) {
      handleError(e);
      return ERROR;
    }
    return SUCCESS;
  }
  @SuppressWarnings("unchecked")
  public String execute() throws Exception {

    Context context = getContext();
    Context sessionContext = this.getSessionContext();
    String cstNo = sessionContext.getDataAsStr("cstNo");
    Context parentContext = context.getParent();
    Map<String, Object> dataMap = parentContext.getDataMap();
    String flowNo = (String) dataMap.get("flowNo");
    String operChannel = sessionContext.getDataAsStr("operChannel");
    context.put("operChannel", operChannel);
    context.put("cstNo", cstNo);
    context.put("flowNo", flowNo);
    context.put("accountType", "01"); // 借记卡
    IcopClientManager.callChannelService(context, "CSVRPB000013");
    accList = (List<Map<String, String>>) context.getDataElement("accList");

    return SUCCESS;
  }
  public String execute() throws Exception {

    String[] split = role.split("-");
    for (int i = 0; i < split.length; i++) {
      String[] split2 = split[i].split("_");
      Map<String, Object> hmap = new HashMap<String, Object>();
      hmap.put("functionId", split2[0]);
      hmap.put("functionName", split2[1]);
      hmap.put("isFunction", split2[2]);
      hmap.put("authModeId", split2[3]);
      functionList.add(hmap);
    }

    // 操作人员信息
    tellerMap = new HashMap<String, String>();
    Context sessionContext = getSessionContext();
    Map<String, Object> dataMap = sessionContext.getDataMap();
    Map<String, Object> tellerInfoMap = (Map<String, Object>) dataMap.get("imUserMap");
    String tellerCode = (String) tellerInfoMap.get("tellerCode");
    String branchId = (String) tellerInfoMap.get("branchId");
    String serverDate = IMJspBeanUtil.getServerDate(null);
    tellerMap.put("tellerCode", tellerCode);
    tellerMap.put("branchId", branchId);
    tellerMap.put("serverDate", serverDate);

    Context context = getContext();

    try {
      Context parent = context.getParent();
      flowNo = parent.getDataAsStr("flowNo");
      context.put("flowNo", flowNo);
      context.put("cstNo", cstNo);
      context.put("functionList", functionList);
      IcopClientManager.callChannelService(context, "CSVRIM0000211"); // 企业网银开通功能列表维护

    } catch (Exception e) {
      this.handleError(e);
      hostErrorMessage = context.getDataAsStr("hostErrorMessage");
      return ERROR;
    }
    return SUCCESS;
  }
  public String execute() throws Exception {
    try {
      Context context = getContext();
      Context sessionContext = this.getSessionContext(); // sessio
      Map<String, Object> dataMap = sessionContext.getDataMap();
      String cstNo = (String) dataMap.get("cstNo"); // 客户号
      Context parentContext = context.getParent();
      Map<String, Object> map = parentContext.getDataMap();
      String flowNo = (String) map.get("flowNo");
      context.put("flowNo", flowNo);
      context.put("cstNo", cstNo);
      context.put("channel", "302");
      IcopClientManager.callChannelService(context, "CSVRPB000072"); // 查询预留信息

      pretentInfo = context.getDataAsStr("pretentInfo");
    } catch (Exception ex) {
      // 清空会话信息
      this.clearSession();
      handleError(ex);
      return ERROR;
    }
    return SUCCESS;
  }
 public String execute() {
   Context context = getContext();
   Context parentContext = context.getParent();
   String flowNo = parentContext.getDataAsStr("flowNo");
   context.put("flowNo", flowNo);
   try {
     context.put("feeChannel", feeChannel);
     context.put("cstLevel", cstLevel);
     context.put("pageNo", pageNo);
     context.put("pageSize", AppConstants.PAGESIZE_TEN);
     IcopClientManager.callChannelService(context, "CSVRIM000230");
     feeItemList = (List<Map<String, Object>>) context.getDataElement("feeItemList");
     if (null != feeItemList && feeItemList.size() > 0) {
       for (int i = 0; i < feeItemList.size(); i++) {
         feeItemList
             .get(i)
             .put(
                 "feeChannelText",
                 IMJspBeanUtil.getAprShowMsg(
                     "GATHERING_CHANNEL", (String) feeItemList.get(i).get("feeChannel")));
         feeItemList
             .get(i)
             .put(
                 "cstLevelText",
                 IMJspBeanUtil.getAprShowMsg(
                     "PBCST_TYPE", (String) feeItemList.get(i).get("cstLevel")));
       }
     }
     totalNo = context.getDataAsStr("totalNo");
     totalPage = Integer.decode(context.getDataAsStr("totalPage"));
   } catch (Exception ex) {
     this.handleError(ex);
     hostErrorMessage = context.getDataAsStr("hostErrorMessage");
   }
   return SUCCESS;
 }
  @SuppressWarnings("unchecked")
  public String execute() throws Exception {
    try {
      Context context = getContext();
      Context sessionContext = this.getSessionContext();

      Map<String, Object> dataMap = sessionContext.getDataMap();

      Map<String, Object> userInfo = (Map<String, Object>) dataMap.get("userInfo");
      String cstNo = (String) userInfo.get("cstNo"); // 企业客户号
      // String operatorNo = (String)userInfo.get("operatorNo");	//操作员编号

      Context parentContext = context.getParent();
      String flowNo = parentContext.getDataAsStr("flowNo");
      context.put("flowNo", flowNo);

      String transType = transMap.get("transType");
      // 传入参数
      context.put("cstNo", cstNo);
      context.put("payAccount", transMap.get("payAccount"));
      context.put("payAccountName", transMap.get("payAccountName"));
      context.put("currency", transMap.get("currency"));
      context.put("subPayAccount", transMap.get("subPayAccount"));
      context.put("subPayAccountName", transMap.get("subPayAccountName"));
      context.put("payAmount", transMap.get("payAmount"));
      context.put("transType", transType);

      if ("01".equals(transType)) {
        context.put("unionBankName", transMap.get("unionOrCnapsBankName"));
        context.put("unionBankNo", transMap.get("unionOrCnapsBankNo"));

      } else {
        context.put("cnaps2BankName", transMap.get("unionOrCnapsBankName"));
        context.put("cnaps2BankNo", transMap.get("unionOrCnapsBankNo"));
      }

      String expense2 = transMap.get("expense");
      if (null == expense2 || "".equals(expense2)) {
        expense2 = "0.00";
      }
      context.put("expense", expense2);

      context.put("randomNumber", transMap.get("randomNumber"));

      context.put("currency", "01");
      context.put("randomNumber", transMap.get("randomNumber"));

      IcopClientManager.callChannelService(context, "CSVRPB000225");

      // authResult = context.getDataAsStr("authResult");		授权结果
      // orderState = context.getDataAsStr("orderState");		指令状态

      subPayAccountName = context.getDataAsStr("subPayAccountName");
      payAmount = context.getDataAsStr("payAmount");
      expense = context.getDataAsStr("expense");
      balance = context.getDataAsStr("balance");
      resultFlag = context.getDataAsStr("resultFlag");
      current_trans_flowno = context.getDataAsStr("CURRENT_TRANS_FLOWNO");

    } catch (Exception e) {
      this.handleError(e);
      return ERROR;
    }
    return SUCCESS;
  }
  @SuppressWarnings("unchecked")
  public String execute() throws Exception {
    try {
      Context context = getContext();
      Context sessionContext = this.getSessionContext(); // sessio
      Map<String, Object> dataMap = sessionContext.getDataMap();
      String cstNo = (String) dataMap.get("cstNo"); // 客户号
      String cstName = (String) dataMap.get("userName"); // 客户名称

      Context parentContext = context.getParent();
      Map<String, Object> map = parentContext.getDataMap();
      String flowNo = (String) map.get("flowNo");

      context.put("flowNo", flowNo);
      context.put("cstNo", cstNo);
      context.put("channel", "302");

      context.put("receiveOrgno", URLMap.get("rcverId")); // 接收参与机构
      context.put("oldIBPSMsgId", URLMap.get("orgnlIBPSMsgId")); // 原报文标识号
      context.put("authenticationResult", "00"); // 认证结果00表示认证通过			99表示认证失败
      context.put("protocalNo", "0"); // 账户信息查询协议号 签署时填写0,撤销时填写正确的协议号
      context.put("custNo", URLMap.get("cstmrId")); // 客户号(第三方)
      context.put("payAccount", URLMap.get("payAcctNo")); // 付款人账号
      context.put("payAccountName", cstName); // 付款人户名
      context.put("paymentAccType", URLMap.get("payAcctType")); // 付款人账户类型01:借记卡;04:信用卡;05:对公账户
      context.put("payOpenBranchName", AppConstants.SELF_BANK_NAME); // 付款人开户行名称 (所属网银互联行名,常量)
      String fromDate = URLMap.get("fromDate"); // 生效日期
      String toDate = URLMap.get("toDate"); // 失效日期
      if ("".equals(fromDate)) {
        // 生效日期为空,默认当天生效
        fromDate = DateUtil.getServerTime("yyyyMMdd");
      }
      context.put("ptcFctvData", fromDate); // 协议生效日期
      context.put("ptcIfctvData", toDate); // 协议失效日期
      context.put("currency", "01"); // 币种
      context.put("singleQuota", URLMap.get("sigleLimit")); // 单笔金额上限
      context.put("dayBizNumQuota", URLMap.get("dayNumTop")); // 日累计业务笔数上限
      context.put("dayQuota", URLMap.get("dayLimit")); // 日累计金额上限
      context.put("monthBizNumQuota", URLMap.get("monthNumTop")); // 月累计业务笔数上限
      context.put("monthQuota", URLMap.get("monthLimit")); // 月累计金额上限
      context.put("remark", ""); // 备注

      context.put("randomNumber", URLMap.get("randomNumber")); // 随机数
      context.put("transTime", URLMap.get("transTime")); // 挑战码生成时间
      context.put("password", URLMap.get("password")); // 交易密码
      String safetool = URLMap.get("safetool");

      if ("3".equals(safetool)) {
        // 安全工具为令牌
        ActionContext acco = ActionContext.getContext();
        HttpServletRequest httpRequest = (HttpServletRequest) acco.get(HTTP_REQUEST);
        HttpSession cSession = httpRequest.getSession();
        context.put("safetool", safetool);
        context.put("tokenCode", URLMap.get("challengeCodeid"));
        context.put("custIdentiType", "1"); // 客户识别类型
        context.put("challengeCode", cSession.getAttribute("challengeCode"));
        context.put("transTime", URLMap.get("transTime"));
      } else if ("4".equals(safetool)) {
        context.put("safetool", safetool);
        context.put("singOrigInal", URLMap.get("singOrigInal")); // 签名原文
        context.put("singData", URLMap.get("signature")); // 签名后数据
      }

      IcopClientManager.callChannelService(context, "PSVR000067"); // 他行账户支付协议应答
    } catch (Exception e) {
      this.handleError(e);
      return ERROR;
    }
    return SUCCESS;
  }
  public String execute() throws Exception {
    Context context = getContext();
    Context parent = context.getParent();
    String flowNo = parent.getDataAsStr("flowNo");

    try {
      context.put("pageNo", pageNo);
      context.put("custType", clientType);
      context.put("branchId", branchIds);
      context.put("branchLevel", branchLevel);
      listBranch = new ArrayList<Map<String, Object>>();
      if (!("").equals(branchIds) && branchIds.length() > 1) {
        String[] a1 = branchIds.split(";");
        for (int i = 0; i < a1.length; i++) {
          Map<String, Object> m = new HashMap<String, Object>();
          m.put("branchIds", a1[i].split(",")[0]);
          m.put("branchLevel", a1[i].split(",")[1]);
          listBranch.add(m);
        }
      }
      String s1 = "";
      String s2 = "";
      if (null != listBranch && listBranch.size() > 0) {
        for (int i = 0; i < listBranch.size(); i++) {
          Map<String, Object> map = listBranch.get(i);
          if ("2".equals(map.get("branchLevel"))) {
            if (!("").equals(s1)) {
              s1 += "," + map.get("branchIds");
            } else {
              s1 = (String) map.get("branchIds");
            }
          } else if ("3".equals(map.get("branchLevel"))) {
            if (!("").equals(s2)) {
              s2 += "," + map.get("branchIds");
            } else {
              s2 = (String) map.get("branchIds");
            }
          }
        }
      }
      Map<String, Object> m = new HashMap<String, Object>();
      m.put("branchIds", s1);
      m.put("branchLevel", "2");
      List<Map<String, Object>> listBranch2 = new ArrayList<Map<String, Object>>();
      listBranch2.add(m);
      Map<String, Object> m2 = new HashMap<String, Object>();
      m2.put("branchIds", s2);
      m2.put("branchLevel", "3");
      listBranch2.add(m2);
      context.put("branchList", listBranch2);
      context.put("openAnAccountStartDate", kstartDate.replace("-", ""));
      context.put("deadineForOpeningAnAccount", kendDate.replace("-", ""));
      context.put("cstNo", clientNumber);
      context.put("tradingStartDate", jstartDate.replace("-", ""));
      context.put("transactionEndDate", jendDate.replace("-", ""));
      context.put("flowNo", flowNo);
      context.put("pageSize", InnerConstants.APP_PAGE_SIZE);
      IcopClientManager.callChannelService(context, "SYSSVR000012");
      custNumberOfTransactionsList =
          (List<Map<String, Object>>) context.getDataElement("custNumberOfTransactionsList");
      totalPage = context.getDataAsStr("totalNo");
      // 获取分页列表
    } catch (Exception e) {
      this.handleError(e);
      hostErrorMessage = context.getDataAsStr("hostErrorMessage");
      return ERROR;
    }

    return SUCCESS;
  }
  public String execute() throws Exception {
    Context context = getContext();
    try {
      opType = "1";
      // context.put("verificationCode", "");
      /** 获取渠道流水号** */
      Context parentContext = context.getParent();
      flowNo = parentContext.getDataAsStr("flowNo");
      context.put("flowNo", flowNo);
      context.put("opType", opType);
      // 操作人员信息
      tellerMap = new HashMap<String, String>();
      Context sessionContext = getSessionContext();
      Map<String, Object> dataMap = sessionContext.getDataMap();
      Map<String, Object> tellerInfoMap = (Map<String, Object>) dataMap.get("imUserMap");
      String tellerCode = (String) tellerInfoMap.get("tellerCode");
      String branchId = (String) tellerInfoMap.get("branchId");
      String serverDate = IMJspBeanUtil.getServerDate(null);
      tellerMap.put("tellerCode", tellerCode);
      tellerMap.put("branchId", branchId);
      tellerMap.put("serverDate", serverDate);

      // 调用服务
      context.put("custIdentiType", "1"); // 客户类型
      context.put("cstNo", cstNo); // 客户号
      if (pwdType.equals("EB")) {
        pwdType = "30201";
      } else if (pwdType.equals("MB")) {
        pwdType = "30501";
      }
      context.put("passwordType", pwdType); // 密码类型
      context.put("passwordValue", logonPwd); // 新登录密码
      context.put("randomNumber", random16); // 16位随机数
      context.put("isNeedModify", "1"); // 第一次验证后是否修改密码
      IcopClientManager.callChannelService(context, "PSVR000118");
      // 查询客户信息
      IcopClientManager.callChannelService(context, "CSVRIM000022");
      cstInfo = (Map<String, Object>) context.getDataElement("customerMap");
      cstInfo.put(
          "certTypeTxt",
          IMJspBeanUtil.getAprShowMsg("PB_CERT_TYPE", (String) cstInfo.get("certType")));
      cstInfo.put(
          "custLevelTxt",
          IMJspBeanUtil.getAprShowMsg("CUST_LEVEL", (String) cstInfo.get("custLevel")));
      if (pwdType.equals("30201")) {
        pwdType = "个人网银登录密码";
      } else if (pwdType.equals("30501")) {
        pwdType = "手机银行登录密码";
      }
      cstInfo.put("pwdType", pwdType);

      //			cstInfo.put("certTypeTxt", IMJspBeanUtil.getAprShowMsg("PB_CERT_TYPE", certType));
      //			cstInfo.put("custLevelTxt", IMJspBeanUtil.getAprShowMsg("CUST_LEVEL", custLevel));
      // action公共部分,opType、targetSvrCode要根据不同交易,手动赋指定值
      // opType="0";//操作类型,要传给授权完成任务操作:0:添加/更新 1:删除
      taskId = context.getDataAsStr("taskId");
      authType = context.getDataAsStr("authType");
      authMode = context.getDataAsStr("authMode");
      authFlag = context.getDataAsStr("authFlag");
      authDetailUrl = context.getDataAsStr("authDetailUrl");
      targetSvrCode = "PSVR000118";
    } catch (Exception e) {
      this.handleError(e);
      hostErrorMessage = context.getDataAsStr("hostErrorMessage");
      return ERROR;
    }
    return SUCCESS;
  }