예제 #1
0
 void printSendData(byte[] sendData, SopIntf sendSop, int res) {
   sendSop.clear();
   sendSop.convertSopToPool(sendData, res);
   // 输出数据
   String[] accountS = sendSop.getStrs(getFileSent(), getFileTable(), "ZHANGH");
   getLogger().info("result size:" + accountS.length);
   getLogger().info("个人中文名:" + sendSop.getStr(getFileSent(), "GERZWM"));
   getLogger().info("客户号:" + sendSop.getStr(getFileSent(), "KEHHAO"));
   getLogger().info("笔数:" + sendSop.getStr(getFileSent(), "BISHUU"));
   getLogger().info("客户帐号:" + sendSop.getStr(getFileSent(), "KEHUZH"));
   for (int i = 0; i < accountS.length; i++) {
     getLogger().info("帐号:" + sendSop.getStrs(getFileSent(), getFileTable(), "ZHANGH")[i]);
     getLogger().info("交易日期:" + sendSop.getStrs(getFileSent(), getFileTable(), "JIOYRQ")[i]);
     getLogger().info("交易时间:" + sendSop.getStrs(getFileSent(), getFileTable(), "JIOYSJ")[i]);
     getLogger().info("交易金额:" + sendSop.getStrs(getFileSent(), getFileTable(), "JIO1JE")[i]);
     getLogger().info("帐户余额:" + sendSop.getStrs(getFileSent(), getFileTable(), "ZHHUYE")[i]);
     getLogger().info("交易码:" + sendSop.getStrs(getFileSent(), getFileTable(), "JIAOYM")[i]);
     getLogger().info("借贷标记:" + sendSop.getStrs(getFileSent(), getFileTable(), "JIEDBZ")[i]);
     getLogger().info("交易柜员:" + sendSop.getStrs(getFileSent(), getFileTable(), "JIO1GY")[i]);
     getLogger().info("授权柜员:" + sendSop.getStrs(getFileSent(), getFileTable(), "SHOQGY")[i]);
     getLogger().info("冲补标志:" + sendSop.getStrs(getFileSent(), getFileTable(), "CHBUBZ")[i]);
     getLogger().info("柜员流水号:" + sendSop.getStrs(getFileSent(), getFileTable(), "GUIYLS")[i]);
     getLogger().info("摘要代码:" + sendSop.getStrs(getFileSent(), getFileTable(), "ZHYODM")[i]);
     getLogger().info("营业机构号:" + sendSop.getStrs(getFileSent(), getFileTable(), "YNGYJG")[i]);
     getLogger().info("客户帐号类型:" + sendSop.getStrs(getFileSent(), getFileTable(), "KHZHLX")[i]);
     getLogger().info("凭证号:" + sendSop.getStrs(getFileSent(), getFileTable(), "PNGZHH")[i]);
     getLogger().info("对方帐号:" + sendSop.getStrs(getFileSent(), getFileTable(), "DUIFZH")[i]);
     getLogger().info("对方名称:" + sendSop.getStrs(getFileSent(), getFileTable(), "DUIFMC")[i]);
     getLogger().info("单位名称:" + sendSop.getStrs(getFileSent(), getFileTable(), "DANWMC")[i]);
   }
 }
예제 #2
0
  /**
   * 将查询结果转换sop对象
   *
   * @param sendSop
   * @param startNum
   * @param result
   * @param corporateQueryItemList
   * @param queryNumber
   */
  private void setNormalMessageForSop(
      SopIntf sendSop, PybjyEO record, List<Item0781> list, C0781RowkeyItem item) {
    sendSop.put(null, "JIAOYM", this.getExCode());
    long currentT = System.currentTimeMillis();
    sendSop.put(null, "JIOYRQ", DateTimeFormatUtils.formatDate(currentT, "yyyymmdd"));
    sendSop.put(
        null, "JIOYSJ", Integer.valueOf(DateTimeFormatUtils.formatDate(currentT, "HHmmss")));
    sendSop.put(null, "GUIYLS", record.getGuiyls());
    Short FDCWJYXH = 0;
    sendSop.put(null, "CWJYXH", FDCWJYXH);
    sendSop.put(null, SopIntf.TPU_RETCODE, SopIntf.SOP_SUCC);

    sendSop.put(getFileSent(), "KEHHAO", item.getKehhao());
    sendSop.put(getFileSent(), "KEHUZH", record.getKehuzh());
    sendSop.put(getFileSent(), "GERZWM", item.getGerzwm());
    sendSop.put(getFileSent(), "BISHUU", item.getBishuu() + "");
    Map<String, List<String>> map = convertResultToMap(list);
    sendSop.put(getFileSent(), getFileTable(), "ZHANGH", getStrArrayFromList(map.get("0")));
    sendSop.put(getFileSent(), getFileTable(), "JIOYRQ", getStrArrayFromList(map.get("1")));
    sendSop.put(getFileSent(), getFileTable(), "JIOYSJ", getStrArrayFromList(map.get("2")));
    sendSop.put(getFileSent(), getFileTable(), "HUOBDH", getStrArrayFromList(map.get("3")));
    sendSop.put(getFileSent(), getFileTable(), "CHUIBZ", getStrArrayFromList(map.get("4")));
    sendSop.put(getFileSent(), getFileTable(), "JIO1JE", getStrArrayFromList(map.get("5")));
    sendSop.put(getFileSent(), getFileTable(), "ZHHUYE", getStrArrayFromList(map.get("6")));
    sendSop.put(getFileSent(), getFileTable(), "JIAOYM", getStrArrayFromList(map.get("7")));
    sendSop.put(getFileSent(), getFileTable(), "JIEDBZ", getStrArrayFromList(map.get("8")));
    sendSop.put(getFileSent(), getFileTable(), "JIO1GY", getStrArrayFromList(map.get("9")));
    sendSop.put(getFileSent(), getFileTable(), "SHOQGY", getStrArrayFromList(map.get("10")));
    sendSop.put(getFileSent(), getFileTable(), "CHBUBZ", getStrArrayFromList(map.get("11")));
    sendSop.put(getFileSent(), getFileTable(), "GUIYLS", getStrArrayFromList(map.get("12")));
    sendSop.put(getFileSent(), getFileTable(), "ZHYODM", getStrArrayFromList(map.get("13")));
    sendSop.put(getFileSent(), getFileTable(), "YNGYJG", getStrArrayFromList(map.get("14")));
    sendSop.put(getFileSent(), getFileTable(), "KHZHLX", getStrArrayFromList(map.get("15")));
    sendSop.put(getFileSent(), getFileTable(), "PNGZHH", getStrArrayFromList(map.get("16")));
    sendSop.put(getFileSent(), getFileTable(), "DUIFZH", getStrArrayFromList(map.get("17")));
    sendSop.put(getFileSent(), getFileTable(), "DUIFMC", getStrArrayFromList(map.get("18")));
    sendSop.put(getFileSent(), getFileTable(), "DANWMC", getStrArrayFromList(map.get("19")));
    sendSop.put(getFileSent(), getFileTable(), "ZHUJRQ", getStrArrayFromList(map.get("20")));
    if (!record.getShfobz().equals(HdqsConstants.SHFOBZ_NONE)) {
      String filePath = getFilePathForSyn(record, item);
      setPrintFilePath(sendSop, filePath != null ? filePath : "");
      // setFileDownLoadDir(sendSop);
    }
  }