@Override public void loadProjGuaranteeMethod(ProjInfo projinfo, Map<String, String> variablesMap) throws Exception { Map<String, String> queryMainObjectMap = new HashMap<String, String>(); queryMainObjectMap.put("proj_id", projinfo.getId()); variablesMap.put( "json_proj_guarantee_detail_str", this.tableService .getJsonArrayData( "eleasing/workflow/proj/proj_common/proj_guarantee_method.xml", queryMainObjectMap) .toString()); }
@Override public void loadProjActualLessees(ProjInfo projinfo, Map<String, String> variablesMap) throws Exception { // 实际承租人 Map<String, String> queryMainObjectMap = new HashMap<String, String>(); queryMainObjectMap.put("proj_id", projinfo.getId()); variablesMap.put( "json_proj_actual_lessee_str", this.tableService .getJsonArrayData( "eleasing/workflow/proj/proj_common/proj_actual_lessees.xml", queryMainObjectMap) .toString()); }
@Override public void loadAmountComputeInfo(ProjInfo projInfo, Map<String, String> variablesMap) throws Exception { Map<String, String> queryMainObjectMap = new HashMap<String, String>(); String cust_id = variablesMap.get("cust_id"); String proj_id = ""; if (projInfo != null) { cust_id = projInfo.getCustInfo() == null ? cust_id : projInfo.getCustInfo().getId(); proj_id = projInfo.getId(); } queryMainObjectMap.put("cust_id", cust_id); queryMainObjectMap.put("proj_id", proj_id); queryMainObjectMap.put("doc_id", variablesMap.get("docId")); // 加载授信状况 JSONObject jsonObj = this.tableService .getJsonArrayData( "eleasing/workflow/limit_manager/proj_limit_compute_info.xml", queryMainObjectMap) .getJSONObject(0); Iterator<String> it = jsonObj.keys(); String key = ""; String value = ""; while (it.hasNext()) { key = (String) it.next(); value = jsonObj.getString(key); variablesMap.put(key, value); } // 加载本案使用额度 JSONArray jsonArray = this.tableService.getJsonArrayData( "eleasing/workflow/limit_manager/proj_amount_info_init.xml", queryMainObjectMap); for (int i = 0; i < jsonArray.length(); i++) { jsonObj = jsonArray.getJSONObject(i); it = jsonObj.keys(); while (it.hasNext()) { key = (String) it.next(); value = jsonObj.getString(key); variablesMap.put(key, value); } if ("limit_type#LL".equals(variablesMap.get("amount_type"))) { break; } } }