添加百融征信接口
This commit is contained in:
parent
72c80ad906
commit
ba5033e685
@ -0,0 +1,54 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
/*
|
||||
Author: undefined 2020-04-30
|
||||
Content:
|
||||
History Log:
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String ProjectId = CurPage.getParameter("ProjectId");//流程编号
|
||||
String SubjectId = CurPage.getParameter("SubjectId");//主体编号
|
||||
String userId = CurUser.getUserID();
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("BigdataBairongList");
|
||||
doTemp.setHtmlEvent("file_name","onclick","openfile");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","获取百融数据","获取百融数据","getBaironginfo()","","","","btn_icon_add",""}
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function getBaironginfo(){
|
||||
var name = getItemValue(0,getRow(0),'fullName');
|
||||
var certid = getItemValue(0,getRow(0),'certId');
|
||||
var phone = getItemValue(0,getRow(0),'phone');
|
||||
var result = RunJavaMethodTrans("com.tenwa.flow.Bigdata.BaiRongVerification","getData","name="+name+",certid="+certid+",phone="+phone+",projectId=<%=ProjectId%>,flowUnid=<%=sFlowUnid%>,userId=<%=userId%>,subjectId=<%=SubjectId%>");
|
||||
if(result=="success"){
|
||||
alert("获取成功!");
|
||||
}else{
|
||||
alert(result);
|
||||
}
|
||||
location.reload();
|
||||
}
|
||||
|
||||
function openfile(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/BigdataBairong/examinePDF.jsp";
|
||||
var dStatus = getItemValue(0,getRow(0),'dcode_status');
|
||||
var yStatus = getItemValue(0,getRow(0),'dcode_statusv');
|
||||
if("00" != dStatus || "00" != yStatus){
|
||||
alert("数据为获取,请先获取数据!");
|
||||
return;
|
||||
}
|
||||
var dFilePath = getItemValue(0,getRow(0),'file_path');
|
||||
var yFilePath = getItemValue(0,getRow(0),'file_pathv');
|
||||
var param="dFilePath="+dFilePath+"&yFilePath="+yFilePath;
|
||||
AsControl.OpenPage(sUrl,param,"","");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,13 @@
|
||||
<%@page import="com.tenwa.doc.action.WordAction"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%
|
||||
|
||||
String dFilePath=CurPage.getAttribute("dFilePath");
|
||||
String yFilePath=CurPage.getAttribute("yFilePath");
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
|
||||
%>
|
||||
<iframe src="<%=sWebRootPath%>/servlet/view/topathpdf?CompClientID=<%=compClientID%>&filePath=<%=dFilePath%>" width="100%" height="800"></iframe>
|
||||
<iframe src="<%=sWebRootPath%>/servlet/view/topathpdf?CompClientID=<%=compClientID%>&filePath=<%=yFilePath%>" width="100%" height="800"></iframe>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -5370,6 +5370,102 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_BAIRONG_BEFORELOAN" label="贷前请求记录" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
|
||||
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
|
||||
<attribute name="swift_number" label="操作流水号 " type="STRING" length="100"/>
|
||||
<attribute name="status_name" label="状态" type="STRING" length="200"/>
|
||||
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
|
||||
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
|
||||
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
|
||||
<attribute name="dcode_status" label="下载状态码" type="STRING" length="32"/>
|
||||
<attribute name="dlog_id" label="下载日志id" type="STRING" length="32"/>
|
||||
<attribute name="file_path" label="路径" type="STRING" length="200"/>
|
||||
<attribute name="file_name" label="文件名称" type="STRING" length="200"/>
|
||||
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
|
||||
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
|
||||
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_bairong_beforeloan" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_BAIRONG_LOG" label="百融征信接口日志" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
|
||||
<attribute name="request_content" label="请求内容" type="STRING" length="65535"/>
|
||||
<attribute name="content_type" label="请求数据类型" type="STRING" length="64"/>
|
||||
<attribute name="request_url" label="请求地址" type="STRING" length="300"/>
|
||||
<attribute name="response_content" label="返回内容" type="STRING" length="65535"/>
|
||||
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
|
||||
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
|
||||
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
|
||||
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
|
||||
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_bairong_log" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_BAIRONG_LOGIN" label="百融登录信息" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
|
||||
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
|
||||
<attribute name="tokenid" label="tokenid值" type="STRING" length="100"/>
|
||||
<attribute name="status_name" label="状态" type="STRING" length="200"/>
|
||||
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
|
||||
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
|
||||
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
|
||||
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
|
||||
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
|
||||
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_bairong_login" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_BAIRONG_VERIFICATION" label="贷前验证请求记录" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
|
||||
<attribute name="code_status" label="状态码" type="STRING" length="32"/>
|
||||
<attribute name="swift_number" label="操作流水号 " type="STRING" length="100"/>
|
||||
<attribute name="status_name" label="状态" type="STRING" length="200"/>
|
||||
<attribute name="log_id" label="日志id" type="STRING" length="32"/>
|
||||
<attribute name="project_id" label="项目id" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同id" type="STRING" length="32"/>
|
||||
<attribute name="flow_unid" label="流程id" type="STRING" length="32"/>
|
||||
<attribute name="dcode_status" label="下载状态码" type="STRING" length="32"/>
|
||||
<attribute name="dlog_id" label="下载日志id" type="STRING" length="32"/>
|
||||
<attribute name="file_path" label="路径" type="STRING" length="200"/>
|
||||
<attribute name="file_name" label="文件名称" type="STRING" length="200"/>
|
||||
<attribute name="subjectId" label="主体id" type="STRING" length="32"/>
|
||||
<attribute name="inputuserid" label="登记人" type="STRING" length="100"/>
|
||||
<attribute name="inputorgid" label="登记部门" type="STRING" length="100"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="100"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_bairong_verification" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
<package name="jbo.com.tenwa.lease.carbrand" >
|
||||
<class name="LB_CLAIMS_BOOK_DETAIL" label="索赔申请书详情表" keyAttributes="ID">
|
||||
|
||||
BIN
WebContent/WEB-INF/lib/bsApi-3.6.2-shaded.jar
Normal file
BIN
WebContent/WEB-INF/lib/bsApi-3.6.2-shaded.jar
Normal file
Binary file not shown.
@ -214,6 +214,12 @@
|
||||
<servlet-name>ShowPDFServlet</servlet-name>
|
||||
<servlet-class>com.tenwa.doc.servlet.ShowPDFServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ToPathShowPDFServlet</servlet-name>
|
||||
<servlet-class>com.tenwa.doc.servlet.ToPathShowPDFServlet</servlet-class>
|
||||
</servlet>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>StreamViewServlet</servlet-name>
|
||||
<servlet-class>com.amarsoft.awe.common.attachment.StreamViewServlet</servlet-class>
|
||||
@ -312,6 +318,13 @@
|
||||
<servlet-name>ShowPDFServlet</servlet-name>
|
||||
<url-pattern>/servlet/view/pdf</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ToPathShowPDFServlet</servlet-name>
|
||||
<url-pattern>/servlet/view/topathpdf</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>FileViewServlet</servlet-name>
|
||||
<url-pattern>/servlet/viewpic</url-pattern>
|
||||
|
||||
28
config/bairong.properties
Normal file
28
config/bairong.properties
Normal file
@ -0,0 +1,28 @@
|
||||
#深圳
|
||||
sz_userName=anpStr
|
||||
sz_password=anpStr
|
||||
sz_apiCode=3005268
|
||||
#可以使用正式环境接口地址 LoginApi(正式环境) SandboxLoginApi(测试环境)
|
||||
sz_loginName=SandboxLoginApi
|
||||
#贷前策略地址:strategyApi(正式环境) SandboxstrategyApi(测试环境)
|
||||
sz_apiName=SandboxstrategyApi
|
||||
#验证策略地址:verificationApi (正式地址) SandboxverApi(测试地址)
|
||||
sz_verification=SandboxverApi
|
||||
sz_downloadUrl=https://api.100credit.cn/query_api/v1/download_approval_report
|
||||
sz_downloadPath=/data/files/bairong/
|
||||
|
||||
|
||||
#tianjin canshu
|
||||
tj_userName=anpStr
|
||||
tj_password=anpStr
|
||||
tj_apiCode=3005268
|
||||
#可以使用正式环境接口地址 LoginApi(正式环境) SandboxLoginApi(测试环境)
|
||||
tj_loginName=SandboxLoginApi
|
||||
#贷前策略地址:strategyApi(正式环境) SandboxstrategyApi(测试环境)
|
||||
tj_apiName=SandboxstrategyApi
|
||||
#验证策略地址:verificationApi (正式地址) SandboxverApi(测试地址)
|
||||
tj_verification=SandboxverApi
|
||||
tj_downloadUrl=https://api.100credit.cn/query_api/v1/download_approval_report
|
||||
tj_downloadPath=/data/files/bairong/
|
||||
|
||||
|
||||
61
src_core/com/tenwa/doc/servlet/ToPathShowPDFServlet.java
Normal file
61
src_core/com/tenwa/doc/servlet/ToPathShowPDFServlet.java
Normal file
@ -0,0 +1,61 @@
|
||||
package com.tenwa.doc.servlet;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import jbo.app.tenwa.doc.LB_DOCATTRIBUTE;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
|
||||
/**
|
||||
* Servlet implementation class ShowImage
|
||||
*/
|
||||
public class ToPathShowPDFServlet extends HttpServlet {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Override
|
||||
protected void service(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
|
||||
String filePath =request.getParameter("filePath");
|
||||
/*BizObject attr;
|
||||
String absolutePath="";
|
||||
try {
|
||||
attr = JBOFactory.createBizObjectQuery(LB_DOCATTRIBUTE.CLASS_NAME,"id=:id").setParameter("id", attrid).getSingleResult(false);
|
||||
absolutePath =attr.getAttribute("FULLPATH").getString();
|
||||
} catch (JBOException e1) {
|
||||
// TODO Auto-generated catch block
|
||||
e1.printStackTrace();
|
||||
}*/
|
||||
FileInputStream fis = new FileInputStream(filePath);
|
||||
OutputStream os = response.getOutputStream();
|
||||
try
|
||||
{
|
||||
byte[] buffer = new byte[fis.available()];
|
||||
fis.read(buffer);
|
||||
response.getOutputStream().write(buffer);
|
||||
fis.close();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (os != null)
|
||||
os.close();
|
||||
if (fis != null)
|
||||
fis.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
80
src_jbo/jbo/com/tenwa/lease/comm/LB_BAIRONG_BEFORELOAN.java
Normal file
80
src_jbo/jbo/com/tenwa/lease/comm/LB_BAIRONG_BEFORELOAN.java
Normal file
@ -0,0 +1,80 @@
|
||||
package jbo.com.tenwa.lease.comm;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 贷前请求记录 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_BAIRONG_BEFORELOAN{
|
||||
/**
|
||||
* 贷前请求记录<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.lease.comm.LB_BAIRONG_BEFORELOAN";
|
||||
/**
|
||||
* 唯一标识 STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 状态码 STRING(32)<br>
|
||||
*/
|
||||
public static final String code_status = "code_status";
|
||||
/**
|
||||
* 操作流水号 STRING(100)<br>
|
||||
*/
|
||||
public static final String swift_number = "swift_number";
|
||||
/**
|
||||
* 状态 STRING(200)<br>
|
||||
*/
|
||||
public static final String status_name = "status_name";
|
||||
/**
|
||||
* 日志id STRING(32)<br>
|
||||
*/
|
||||
public static final String log_id = "log_id";
|
||||
/**
|
||||
* 项目id STRING(32)<br>
|
||||
*/
|
||||
public static final String project_id = "project_id";
|
||||
/**
|
||||
* 合同id STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 流程id STRING(32)<br>
|
||||
*/
|
||||
public static final String flow_unid = "flow_unid";
|
||||
/**
|
||||
* 下载状态码 STRING(32)<br>
|
||||
*/
|
||||
public static final String dcode_status = "dcode_status";
|
||||
/**
|
||||
* 下载日志id STRING(32)<br>
|
||||
*/
|
||||
public static final String dlog_id = "dlog_id";
|
||||
/**
|
||||
* 路径 STRING(200)<br>
|
||||
*/
|
||||
public static final String file_path = "file_path";
|
||||
/**
|
||||
* 文件名称 STRING(200)<br>
|
||||
*/
|
||||
public static final String file_name = "file_name";
|
||||
/**
|
||||
* 主体id STRING(32)<br>
|
||||
*/
|
||||
public static final String subjectId = "subjectId";
|
||||
/**
|
||||
* 登记人 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 登记部门 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
}
|
||||
64
src_jbo/jbo/com/tenwa/lease/comm/LB_BAIRONG_LOG.java
Normal file
64
src_jbo/jbo/com/tenwa/lease/comm/LB_BAIRONG_LOG.java
Normal file
@ -0,0 +1,64 @@
|
||||
package jbo.com.tenwa.lease.comm;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 百融征信接口日志 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_BAIRONG_LOG{
|
||||
/**
|
||||
* 百融征信接口日志<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.lease.comm.LB_BAIRONG_LOG";
|
||||
/**
|
||||
* 唯一标识 STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 请求内容 STRING(65535)<br>
|
||||
*/
|
||||
public static final String request_content = "request_content";
|
||||
/**
|
||||
* 请求数据类型 STRING(64)<br>
|
||||
*/
|
||||
public static final String content_type = "content_type";
|
||||
/**
|
||||
* 请求地址 STRING(300)<br>
|
||||
*/
|
||||
public static final String request_url = "request_url";
|
||||
/**
|
||||
* 返回内容 STRING(65535)<br>
|
||||
*/
|
||||
public static final String response_content = "response_content";
|
||||
/**
|
||||
* 项目id STRING(32)<br>
|
||||
*/
|
||||
public static final String project_id = "project_id";
|
||||
/**
|
||||
* 合同id STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 流程id STRING(32)<br>
|
||||
*/
|
||||
public static final String flow_unid = "flow_unid";
|
||||
/**
|
||||
* 主体id STRING(32)<br>
|
||||
*/
|
||||
public static final String subjectId = "subjectId";
|
||||
/**
|
||||
* 登记人 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 登记部门 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
}
|
||||
64
src_jbo/jbo/com/tenwa/lease/comm/LB_BAIRONG_LOGIN.java
Normal file
64
src_jbo/jbo/com/tenwa/lease/comm/LB_BAIRONG_LOGIN.java
Normal file
@ -0,0 +1,64 @@
|
||||
package jbo.com.tenwa.lease.comm;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 百融登录信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_BAIRONG_LOGIN{
|
||||
/**
|
||||
* 百融登录信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.lease.comm.LB_BAIRONG_LOGIN";
|
||||
/**
|
||||
* 唯一标识 STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 状态码 STRING(32)<br>
|
||||
*/
|
||||
public static final String code_status = "code_status";
|
||||
/**
|
||||
* tokenid值 STRING(100)<br>
|
||||
*/
|
||||
public static final String tokenid = "tokenid";
|
||||
/**
|
||||
* 状态 STRING(200)<br>
|
||||
*/
|
||||
public static final String status_name = "status_name";
|
||||
/**
|
||||
* 日志id STRING(32)<br>
|
||||
*/
|
||||
public static final String log_id = "log_id";
|
||||
/**
|
||||
* 项目id STRING(32)<br>
|
||||
*/
|
||||
public static final String project_id = "project_id";
|
||||
/**
|
||||
* 合同id STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 流程id STRING(32)<br>
|
||||
*/
|
||||
public static final String flow_unid = "flow_unid";
|
||||
/**
|
||||
* 主体id STRING(32)<br>
|
||||
*/
|
||||
public static final String subjectId = "subjectId";
|
||||
/**
|
||||
* 登记人 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 登记部门 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
package jbo.com.tenwa.lease.comm;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 贷前验证请求记录 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_BAIRONG_VERIFICATION{
|
||||
/**
|
||||
* 贷前验证请求记录<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.lease.comm.LB_BAIRONG_VERIFICATION";
|
||||
/**
|
||||
* 唯一标识 STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 状态码 STRING(32)<br>
|
||||
*/
|
||||
public static final String code_status = "code_status";
|
||||
/**
|
||||
* 操作流水号 STRING(100)<br>
|
||||
*/
|
||||
public static final String swift_number = "swift_number";
|
||||
/**
|
||||
* 状态 STRING(200)<br>
|
||||
*/
|
||||
public static final String status_name = "status_name";
|
||||
/**
|
||||
* 日志id STRING(32)<br>
|
||||
*/
|
||||
public static final String log_id = "log_id";
|
||||
/**
|
||||
* 项目id STRING(32)<br>
|
||||
*/
|
||||
public static final String project_id = "project_id";
|
||||
/**
|
||||
* 合同id STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 流程id STRING(32)<br>
|
||||
*/
|
||||
public static final String flow_unid = "flow_unid";
|
||||
/**
|
||||
* 下载状态码 STRING(32)<br>
|
||||
*/
|
||||
public static final String dcode_status = "dcode_status";
|
||||
/**
|
||||
* 下载日志id STRING(32)<br>
|
||||
*/
|
||||
public static final String dlog_id = "dlog_id";
|
||||
/**
|
||||
* 路径 STRING(200)<br>
|
||||
*/
|
||||
public static final String file_path = "file_path";
|
||||
/**
|
||||
* 文件名称 STRING(200)<br>
|
||||
*/
|
||||
public static final String file_name = "file_name";
|
||||
/**
|
||||
* 主体id STRING(32)<br>
|
||||
*/
|
||||
public static final String subjectId = "subjectId";
|
||||
/**
|
||||
* 登记人 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 登记部门 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(100)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
}
|
||||
@ -12,6 +12,126 @@ Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualn
|
||||
delete from SCENARIO_MODEL where scenarioid='付款申请(汽车)' and modelid='0040';
|
||||
Insert Into SCENARIO_MODEL (scenarioid,modelid,sortno,modelname,modeldescribe,modeltype,subtypeno,runcondition,status,nopassdeal,passdeal,passmessage,nopassmessage,executescript,remark,inputuser,inputorg,inputtime,updateuser,updatetime,groupid,modelkind,bizviewer) Values ('付款申请(汽车)','0040','0040','发票信息是否填写','','20','','','1','20',null,'发票信息已填写','发票信息未填写!','SELECT CASE WHEN id IS NOT NULL THEN ''true'' ELSE ''false'' END FROM lb_Invoice_info_temp WHERE flow_unid=''#{ObjectNo}''','',null,null,null,null,null,null,null,null);
|
||||
|
||||
-- -----------百融征信-------------------------
|
||||
-- 创建登录信息
|
||||
CREATE TABLE lb_Bairong_Login (
|
||||
id VARCHAR(32) NOT NULL COMMENT '唯一标识',
|
||||
code_status VARCHAR(32) DEFAULT NULL COMMENT '状态码',
|
||||
tokenid VARCHAR(100) DEFAULT NULL COMMENT 'tokenid值',
|
||||
status_name VARCHAR(200) DEFAULT NULL COMMENT '状态',
|
||||
log_id VARCHAR(32) DEFAULT NULL COMMENT '日志id',
|
||||
project_id VARCHAR(32) DEFAULT NULL COMMENT '项目id',
|
||||
contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同id',
|
||||
flow_unid VARCHAR(32) DEFAULT NULL COMMENT '流程id',
|
||||
subjectId VARCHAR(32) DEFAULT NULL COMMENT '主体id',
|
||||
inputuserid VARCHAR(100) DEFAULT NULL COMMENT '登记人',
|
||||
inputorgid VARCHAR(100) DEFAULT NULL COMMENT '登记部门',
|
||||
inputtime VARCHAR(100) DEFAULT NULL COMMENT '登记时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=INNODB DEFAULT CHARSET=gbk;
|
||||
|
||||
|
||||
-- 创建贷前请求记录
|
||||
CREATE TABLE lb_bairong_beforeloan (
|
||||
id VARCHAR(32) NOT NULL COMMENT '唯一标识',
|
||||
code_status VARCHAR(32) DEFAULT NULL COMMENT '状态码',
|
||||
swift_number VARCHAR(100) DEFAULT NULL COMMENT '操作流水号 ',
|
||||
status_name VARCHAR(200) DEFAULT NULL COMMENT '状态',
|
||||
log_id VARCHAR(32) DEFAULT NULL COMMENT '日志id',
|
||||
project_id VARCHAR(32) DEFAULT NULL COMMENT '项目id',
|
||||
contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同id',
|
||||
flow_unid VARCHAR(32) DEFAULT NULL COMMENT '流程id',
|
||||
dcode_status VARCHAR(32) DEFAULT NULL COMMENT '下载状态码',
|
||||
dlog_id VARCHAR(32) DEFAULT NULL COMMENT '下载日志id',
|
||||
file_path VARCHAR(200) DEFAULT NULL COMMENT '路径',
|
||||
file_name VARCHAR(200) DEFAULT NULL COMMENT '文件名称',
|
||||
subjectId VARCHAR(32) DEFAULT NULL COMMENT '主体id',
|
||||
inputuserid VARCHAR(100) DEFAULT NULL COMMENT '登记人',
|
||||
inputorgid VARCHAR(100) DEFAULT NULL COMMENT '登记部门',
|
||||
inputtime VARCHAR(100) DEFAULT NULL COMMENT '登记时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=INNODB DEFAULT CHARSET=gbk;
|
||||
|
||||
-- 创建贷前验证请求记录
|
||||
CREATE TABLE lb_bairong_verification (
|
||||
id VARCHAR(32) NOT NULL COMMENT '唯一标识',
|
||||
code_status VARCHAR(32) DEFAULT NULL COMMENT '状态码',
|
||||
swift_number VARCHAR(100) DEFAULT NULL COMMENT '操作流水号 ',
|
||||
status_name VARCHAR(200) DEFAULT NULL COMMENT '状态',
|
||||
log_id VARCHAR(32) DEFAULT NULL COMMENT '日志id',
|
||||
project_id VARCHAR(32) DEFAULT NULL COMMENT '项目id',
|
||||
contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同id',
|
||||
flow_unid VARCHAR(32) DEFAULT NULL COMMENT '流程id',
|
||||
dcode_status VARCHAR(32) DEFAULT NULL COMMENT '下载状态码',
|
||||
dlog_id VARCHAR(32) DEFAULT NULL COMMENT '下载日志id',
|
||||
file_path VARCHAR(200) DEFAULT NULL COMMENT '路径',
|
||||
file_name VARCHAR(200) DEFAULT NULL COMMENT '文件名称',
|
||||
subjectId VARCHAR(32) DEFAULT NULL COMMENT '主体id',
|
||||
inputuserid VARCHAR(100) DEFAULT NULL COMMENT '登记人',
|
||||
inputorgid VARCHAR(100) DEFAULT NULL COMMENT '登记部门',
|
||||
inputtime VARCHAR(100) DEFAULT NULL COMMENT '登记时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=INNODB DEFAULT CHARSET=gbk;
|
||||
|
||||
|
||||
-- 创建百融征信接口日志
|
||||
CREATE TABLE lb_bairong_log (
|
||||
id varchar(32) NOT NULL COMMENT '唯一标识',
|
||||
request_content text COMMENT '请求内容',
|
||||
content_type varchar(64) DEFAULT NULL COMMENT '请求数据类型',
|
||||
request_url varchar(300) DEFAULT NULL COMMENT '请求地址',
|
||||
response_content text COMMENT '返回内容',
|
||||
project_id VARCHAR(32) DEFAULT NULL COMMENT '项目id',
|
||||
contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同id',
|
||||
flow_unid VARCHAR(32) DEFAULT NULL COMMENT '流程id',
|
||||
subjectId VARCHAR(32) DEFAULT NULL COMMENT '主体id',
|
||||
inputuserid VARCHAR(100) DEFAULT NULL COMMENT '登记人',
|
||||
inputorgid VARCHAR(100) DEFAULT NULL COMMENT '登记部门',
|
||||
inputtime VARCHAR(100) DEFAULT NULL COMMENT '登记时间',
|
||||
PRIMARY KEY (ID)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=gbk
|
||||
-- 添加页面模板
|
||||
Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('BigdataBairongList','百融征信列表',null,'30',null,'1','1','default','jbo.app.tenwa.customer.VI_LB_IDENTITY_CHECK','O left join jbo.com.tenwa.lease.comm.LB_BAIRONG_BEFORELOAN lbb on lbb.flow_unid=O.flowunid and lbb.code_status=''00'' left join jbo.com.tenwa.lease.comm.LB_BAIRONG_VERIFICATION lbv on lbv.flow_unid=O.flowunid and lbv.code_status=''00''','O.FLOWUNID=:FlowUnid','','','',null,'SYS_Designer','2020/04/30 16:45:39','SYS_Designer','2020/04/30 17:00:21','','1','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1000','1000','1','O','fullName','fullName','String','','姓名','','1','Text','1','1','','','style={width:300px}','20','1','0','0','1','1',1,'0','','','SYS_Designer','2020/04/30 16:45:39','SYS_Designer','2020/04/30 17:00:21','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1010','1010','1','O','certId','certId','String','','身份证编号','','1','Text','1','1','','','style={width:300px}','20','1','0','0','1','1',1,'0','','','SYS_Designer','2020/04/30 16:45:39','SYS_Designer','2020/04/30 17:00:21','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1020','1020','1','O','relation','relation','String','','身份','','1','Text','1','1','','','style={width:300px}','20','1','0','0','1','1',1,'0','','','SYS_Designer','2020/04/30 16:45:39','SYS_Designer','2020/04/30 17:00:21','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1030','1030','1','O','flowunid','flowunid','String','','流程编号','','1','Text','1','1','','','','20','0','0','0','1','1',1,'0','','','SYS_Designer','2020/04/30 16:45:39','SYS_Designer','2020/04/30 17:00:21','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1040','1040','1','O','phone','phone','String','','电话号','','1','Text','1','1','','','','20','1','0','0','1','0',0,'','','','SYS_Designer','2020/04/30 16:45:39','SYS_Designer','2020/04/30 17:00:21','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1050','1050','1','lbb','file_name','file_name','String','','贷前文件名称','','1','Text','1','1','','','','200','1','0','0','1','0',0,'','','','SYS_Designer','2020/04/30 17:01:32','SYS_Designer','2020/04/30 17:01:32','','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1060','1060','1','lbb','file_path','file_path','String','','贷前路径','','1','Text','1','1','','','','200','0','0','0','1','0',0,'','','','SYS_Designer','2020/04/30 17:01:32','SYS_Designer','2020/04/30 17:01:44','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1070','1070','1','','lbv.file_name','file_namev','String','','验证文件名称','','1','Text','1','1','','','','200','0','0','0','1','0',0,'','','','SYS_Designer','2020/04/30 17:23:02','SYS_Designer','2020/05/09 10:25:42','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1080','1080','1','','lbv.file_path','file_pathv','String','','验证文件路径','','1','Text','1','1','','','','200','0','0','0','1','0',0,'','','','SYS_Designer','2020/04/30 17:24:20','SYS_Designer','2020/04/30 17:25:11','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1090','1090','1','lbb','dcode_status','dcode_status','String','','下载状态码','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2020/05/09 10:26:43','SYS_Designer','2020/05/09 10:36:09','0','','1','','','','');
|
||||
Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('BigdataBairongList','1100','1100','1','','lbv.dcode_status','dcode_statusv','String','','下载状态码','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2020/05/09 10:26:43','SYS_Designer','2020/05/09 10:36:15','0','','1','','','','');
|
||||
|
||||
-- 添加基础节点
|
||||
insert into `PRD_NODEINFO` (`nodeid`, `nodename`, `sortno`, `isinuse`, `itemdescribe`, `inputuserid`, `inputorgid`, `inputtime`, `updateuserid`, `updatetime`, `initscript`, `exportscript`, `phasescript`, `deletescript`, `remark`, `formalClass`, `querycondition`) values('80001','百融征信','80001','1','/Tenwa/Lease/Flow/Comm/BigdataBairong/BigdataBairongList.jsp','administrator','8009001','2020/04/30','administrator','2020/04/30','','','','','','','');
|
||||
|
||||
-- 业务申请流程中添加百融征信页面
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessApplyFlow' AND phaseno='0030';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessApplyFlow','0030','1020','信审初审',NULL,NULL,'!基础操作.保存项目进度表审批中(#ObjectNo)+!基础操作.新增贴息占用(#ObjectNo)+!基础操作.业务申请阶段接口平台数据拷入临时表(#ObjectNo)','toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'conditionroute',NULL,'[{usertype:\"选择指定任务池角色\",userinfo:\"800R00000013,信审初审\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessApplyFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'389','347','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nparamMap.put(\"isDistributor\", \"true\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.AddNodeUrlParamByNode(\"11050\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"商务条件\", \"ReadOnly\");\r\nTreeView.updateNodeSetReadOnly(\"租赁车辆基本信息\", \"ReadOnly\");\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0039\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\r\nTreeView.deleteCheckItemByCode(\"0031\");\r\nTreeView.deleteCheckItemByCode(\"0032\");\rTreeView.deleteCheckItemByCode(\"0283\");','backnextperson',NULL,'!基础操作.删除贴息占用(#ObjectNo)+!基础操作.保存项目进度表退回(#ObjectNo)+!基础操作.接口平台业务退回审批意见推送入表(#ObjectNo)',NULL,NULL,'Y','[{stepno:\"信审复审(0040)\",stepcondition:\"!基础操作.判断业务申请融资额小于20万(#ObjectNo)\"},{stepno:\"信审复审(0050)\",stepcondition:\"!基础操作.判断业务申请融资额大于20万(#ObjectNo)\"}]',NULL,NULL,NULL,NULL,NULL);
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessApplyFlow' AND phaseno='0040';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessApplyFlow','0040','1020','信审复审',NULL,NULL,'!审批流程.记录业务申请初审信息(#ObjectNo)','toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'selectroute',NULL,'[{usertype:\"根据SQL语句\",userinfo:\"SELECT O.userid, O.username FROM USER_INFO O WHERE O.UserID IN (SELECT CASE WHEN ft.userid = \'8009011U00000003\' OR ft.userid = \'8009011U00000004\' OR ft.userid = \'800901U00000003\' THEN \'800U00090004\' WHEN ft.userid = \'8009011U00000005\' OR ft.userid = \'8009011U00000006\' OR ft.userid = \'8009011U00000007\' THEN \'8009011U00000002\' ELSE \'800U00090004\' END FROM flow_task ft WHERE ft.phaseno = \'0030\' AND ft.taskstate=0 AND ft.OBJECTNO =:{ObjectNo})\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion,circulate',NULL,'all_except','BusinessApplyFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'262','556','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"商务条件\", \"ReadOnly\");\r\nTreeView.updateNodeSetReadOnly(\"租赁车辆基本信息\", \"ReadOnly\");\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0039\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\r\nTreeView.deleteCheckItemByCode(\"0031\");\r\nTreeView.deleteCheckItemByCode(\"0032\");\rTreeView.deleteCheckItemByCode(\"0283\");','backnextstep',NULL,NULL,NULL,NULL,'Y','[{stepno:\"否决(8000)\",stepcondition:\"提交给否决\"},{stepno:\"结束(1000)\",stepcondition:\"提交给结束\"}]',NULL,NULL,NULL,NULL,NULL);
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessApplyFlow' AND phaseno='0050';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessApplyFlow','0050','1020','信审复审',NULL,NULL,'!审批流程.记录业务申请初审信息(#ObjectNo)','toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'commroute',NULL,'[{usertype:\"根据SQL语句\",userinfo:\"SELECT O.userid, O.username FROM USER_INFO O WHERE O.UserID IN (SELECT CASE WHEN ft.userid = \'8009011U00000003\' OR ft.userid = \'8009011U00000004\' OR ft.userid = \'800901U00000003\' THEN \'800U00090004\' WHEN ft.userid = \'8009011U00000005\' OR ft.userid = \'8009011U00000006\' OR ft.userid = \'8009011U00000007\' THEN \'8009011U00000002\' ELSE \'800U00090004\' END FROM flow_task ft WHERE ft.phaseno = \'0030\' AND ft.taskstate=0 AND ft.OBJECTNO =:{ObjectNo})\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessApplyFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'597','550','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"商务条件\", \"ReadOnly\");\r\nTreeView.updateNodeSetReadOnly(\"租赁车辆基本信息\", \"ReadOnly\");\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0039\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\r\nTreeView.deleteCheckItemByCode(\"0031\");\r\nTreeView.deleteCheckItemByCode(\"0032\");\rTreeView.deleteCheckItemByCode(\"0283\");','backnextstep',NULL,NULL,NULL,NULL,'Y','信审负责人(0060)',NULL,NULL,NULL,NULL,NULL);
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessApplyFlow' AND phaseno='0060';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessApplyFlow','0060','1020','信审负责人',NULL,NULL,NULL,'toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'selectroute',NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000015,信审负责人\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessApplyFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'598','686','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"商务条件\", \"ReadOnly\");\r\nTreeView.updateNodeSetReadOnly(\"租赁车辆基本信息\", \"ReadOnly\");\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0039\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\r\nTreeView.deleteCheckItemByCode(\"0031\");\r\nTreeView.deleteCheckItemByCode(\"0032\");\rTreeView.deleteCheckItemByCode(\"0283\");','backnextstep','信审复审(0050)',NULL,NULL,NULL,'Y','[{stepno:\"否决(8000)\",stepcondition:\"提交给否决\"},{stepno:\"结束(1000)\",stepcondition:\"提交给结束\"}]',NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
-- 业务变更添加百融征信页面
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessChangeFlow' AND phaseno='0030';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessChangeFlow','0030','1020','信审专员初审',NULL,NULL,'!基础操作.接口平台业务变更流程租金测算(#ObjectNo)','toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'conditionroute',NULL,'[{usertype:\"根据SQL语句\",userinfo:\"SELECT userid,username FROM business_apply_userinfo O WHERE O.project_id =(SELECT fbo.proj_id FROM flow_bussiness_object fbo WHERE fbo.flow_unid=:{ObjectNo}) \"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessChangeFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'406','402','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.addFirstNodeByCode(\"11080\");\r\nTreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\nTreeView.addLastNodeByCode(\"11800\");\r\n};\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0015\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\r\nTreeView.deleteCheckItemByCode(\"0283\");','backnextstep',NULL,'!基础操作.接口平台业务退回审批意见推送入表(#ObjectNo)',NULL,NULL,'Y','[{stepno:\"信审经理终审(0040)\",stepcondition:\"!基础操作.判断业务申请融资额小于20万(#ObjectNo)\"},{stepno:\"信审经理终审(0050)\",stepcondition:\"!基础操作.判断业务申请融资额大于20万(#ObjectNo)\"}]',NULL,NULL,NULL,NULL,NULL);
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessChangeFlow' AND phaseno='0040';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessChangeFlow','0040','1020','信审经理终审',NULL,NULL,NULL,'toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'selectroute',NULL,'[{usertype:\"根据SQL语句\",userinfo:\"SELECT O.userid, O.username FROM USER_INFO O WHERE O.UserID IN (SELECT CASE WHEN ft.userid = \'8009011U00000003\' OR ft.userid = \'8009011U00000004\' OR ft.userid = \'800901U00000003\' THEN \'800U00090004\' WHEN ft.userid = \'8009011U00000005\' OR ft.userid = \'8009011U00000006\' OR ft.userid = \'8009011U00000007\' THEN \'8009011U00000002\' ELSE \'800U00090004\' END FROM flow_task ft WHERE ft.phaseno = \'0030\' AND ft.OBJECTNO =:{ObjectNo})\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessChangeFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'265','619','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.addFirstNodeByCode(\"11080\");\r\nTreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\nTreeView.addLastNodeByCode(\"11800\");\r\n};\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0015\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\r\nTreeView.deleteCheckItemByCode(\"0283\");','backnextstep',NULL,NULL,NULL,NULL,'Y','[{stepno:\"结束(1000)\",stepcondition:\"提交给结束\"},{stepno:\"否决(8000)\",stepcondition:\"提交给否决\"}]',NULL,NULL,NULL,NULL,NULL);
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessChangeFlow' AND phaseno='0050';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessChangeFlow','0050','1020','信审经理终审',NULL,NULL,NULL,'toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'commroute',NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000015,信审负责人\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessChangeFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'557','614','100','50','1',NULL,'TASK',NULL,'Y','Y',NULL,'TreeView.addFirstNodeByCode(\"11080\");\r\nTreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\nTreeView.addLastNodeByCode(\"11800\");\r\n};\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0015\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\rTreeView.deleteCheckItemByCode(\"0283\");','backnextstep','',NULL,NULL,NULL,NULL,'信审负责人(0060)',NULL,NULL,NULL,NULL,NULL);
|
||||
DELETE FROM FLOW_MODEL WHERE FlowNo='BusinessChangeFlow' AND phaseno='0060';
|
||||
insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('BusinessChangeFlow','0060','1020','信审负责人',NULL,NULL,NULL,'toStringArray(\"#PhaseAction\",\",\",\" \",1)',NULL,'selectroute',NULL,'[{usertype:\"根据SQL语句\",userinfo:\"SELECT O.userid, O.username FROM USER_INFO O WHERE O.UserID IN (SELECT CASE WHEN ft.userid = \'8009011U00000003\' OR ft.userid = \'8009011U00000004\' OR ft.userid = \'800901U00000003\' THEN \'800U00090004\' WHEN ft.userid = \'8009011U00000005\' OR ft.userid = \'8009011U00000006\' OR ft.userid = \'8009011U00000007\' THEN \'8009011U00000002\' ELSE \'800U00090004\' END FROM flow_task ft WHERE ft.phaseno = \'0030\' AND ft.OBJECTNO =:{ObjectNo})\"}]','#PhaseOpinion1','closePage,doSubmit,backStep,signOpinion',NULL,'all_except','BusinessChangeFlow',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'555','804','100','50','1',NULL,'TASK',NULL,'Y','N',NULL,'TreeView.addFirstNodeByCode(\"11080\");\r\nTreeView.moveTreeItem(\"租赁车辆基本信息\", \"商务条件\");\r\nTreeView.moveTreeItemToLast(\"资料清单\");\r\nMap<String,String> paramMap=new HashMap<String, String>();\r\nparamMap.put(\"calType\", \"proj_process\");\r\nTreeView.AddNodeUrlParamByNode(\"11060\", paramMap);\r\nTreeView.addBeforeNodeByCode(\"租赁车辆基本信息\", \"11042\");\r\nif(!\"401\".equals(fixedParam.get(\"RoleId\"))){\r\nif(\"used_car\".equals(fixedParam.get(\"carAttributes\"))){\r\nTreeView.addLastNodeByCode(\"11620\");\r\n}\r\nTreeView.addFirstNodeByCode(\"11541\");\r\nTreeView.addLastNodeByCode(\"900001\");\r\nTreeView.addLastNodeByCode(\"900002\");\r\nTreeView.addLastNodeByCode(\"11640\");\r\nTreeView.addLastNodeByCode(\"11630\");\r\nTreeView.addLastNodeByCode(\"11645\");\r\nTreeView.addLastNodeByCode(\"80001\");\r\nTreeView.addLastNodeByCode(\"01301\");\r\nTreeView.addLastNodeByCode(\"11800\");\r\n};\r\nif(\"BAIC_MOTOR\".equals(fixedParam.get(\"operationType\"))){\r\nTreeView.addFirstNodeByCode(\"21000\");\r\nTreeView.addChildrenNodeByCode(\"北汽财务意见\", \"21100\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"北汽财务意见\", \"ReadOnly\");\r\nTreeView.addBeforeNodeByCode(\"经销商信息\", \"00160\");','TreeView.deleteCheckItemByCode(\"0015\");\r\nTreeView.deleteCheckItemByCode(\"0034\");\rTreeView.deleteCheckItemByCode(\"0283\");','backnextstep','信审经理终审(0050)',NULL,NULL,NULL,'Y','[{stepno:\"否决(8000)\",stepcondition:\"提交给否决\"},{stepno:\"结束(1000)\",stepcondition:\"提交给结束\"}]',NULL,NULL,NULL,NULL,NULL);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
409
src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java
Normal file
409
src_tenwa/com/tenwa/flow/Bigdata/BaiRongVerification.java
Normal file
@ -0,0 +1,409 @@
|
||||
package com.tenwa.flow.Bigdata;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.LB_BAIRONG_BEFORELOAN;
|
||||
import jbo.com.tenwa.lease.comm.LB_BAIRONG_LOG;
|
||||
import jbo.com.tenwa.lease.comm.LB_BAIRONG_LOGIN;
|
||||
import jbo.com.tenwa.lease.comm.LB_BAIRONG_VERIFICATION;
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
import com.base.util.DateUtil;
|
||||
import com.bfd.facade.MerchantServer;
|
||||
import com.bfd.util.HttpConnectionManager4;
|
||||
import com.bfd.util.MD5Utils;
|
||||
import com.tenwa.comm.util.date.DateAssistant;
|
||||
import com.tenwa.httpclient.resources.BaiRongPropertiesUtil;
|
||||
import com.tenwa.reckon.util.UUIDUtil;
|
||||
import com.tenwa.util.MultiSubjectUtil;
|
||||
|
||||
public class BaiRongVerification {
|
||||
//深圳主体信息
|
||||
private static String sz_userName=BaiRongPropertiesUtil.get("sz_userName");
|
||||
private static String sz_password=BaiRongPropertiesUtil.get("sz_password");
|
||||
private static String sz_apiCode=BaiRongPropertiesUtil.get("sz_apiCode");
|
||||
private static String sz_loginName=BaiRongPropertiesUtil.get("sz_loginName");
|
||||
private static String sz_apiName=BaiRongPropertiesUtil.get("sz_apiName");
|
||||
private static String sz_verification=BaiRongPropertiesUtil.get("sz_verification");
|
||||
private static String sz_downloadUrl=BaiRongPropertiesUtil.get("sz_downloadUrl");
|
||||
private static String sz_downloadPath=BaiRongPropertiesUtil.get("sz_downloadPath");
|
||||
|
||||
//天津主体信息
|
||||
private static String tj_userName=BaiRongPropertiesUtil.get("tj_userName");
|
||||
private static String tj_password=BaiRongPropertiesUtil.get("tj_password");
|
||||
private static String tj_apiCode=BaiRongPropertiesUtil.get("tj_apiCode");
|
||||
private static String tj_loginName=BaiRongPropertiesUtil.get("tj_loginName");
|
||||
private static String tj_apiName=BaiRongPropertiesUtil.get("tj_apiName");
|
||||
private static String tj_verification=BaiRongPropertiesUtil.get("tj_verification");
|
||||
private static String tj_downloadUrl=BaiRongPropertiesUtil.get("tj_downloadUrl");
|
||||
private static String tj_downloadPath=BaiRongPropertiesUtil.get("tj_downloadPath");
|
||||
|
||||
private String subjectId;
|
||||
private String flowUnid;
|
||||
private String projectId;
|
||||
private String contractId;
|
||||
private String name;
|
||||
private String certid;
|
||||
private String phone;
|
||||
private String userId;
|
||||
|
||||
private static MerchantServer ms = new MerchantServer();
|
||||
|
||||
public String getData(JBOTransaction tx){
|
||||
String datePath = DateUtil.getSystemTimeByFormat("yyyy/MM/dd");
|
||||
String apiCode = "";
|
||||
String url = "";
|
||||
String filePath = "";
|
||||
String apiName = "";
|
||||
String verification = "";
|
||||
if(MultiSubjectUtil.SZSUBJECTID.equals(subjectId)){//深圳主体
|
||||
apiName= sz_apiName ;
|
||||
apiCode= sz_apiCode ;
|
||||
url = sz_downloadUrl;
|
||||
filePath = sz_downloadPath+datePath+"/";
|
||||
verification = sz_verification;
|
||||
}else if(MultiSubjectUtil.TJSUBJECTID.equals(subjectId)){//天津主体
|
||||
apiName= tj_apiName ;
|
||||
apiCode=tj_apiCode;
|
||||
url = tj_downloadUrl;
|
||||
filePath = tj_downloadPath+datePath+"/";
|
||||
verification = tj_verification;
|
||||
}else{
|
||||
System.out.println("主体id="+subjectId);
|
||||
return "为找到对应的主体信息!!!";
|
||||
}
|
||||
String dMessage = this.doIdentityVerification(tx, apiName, apiCode, url, filePath,"0");
|
||||
System.out.println("贷前信用数据:"+dMessage);
|
||||
String yMessage = this.doIdentityVerification(tx, verification, apiCode, url, filePath,"1");
|
||||
System.out.println("验证信用数据:"+yMessage);
|
||||
if(dMessage.equals("success") && yMessage.equals("success") ){
|
||||
return "success";
|
||||
}else {
|
||||
return "获取数据失败!";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//获取贷前校验
|
||||
public String doIdentityVerification(JBOTransaction tx,String apiName,String apiCode,String url,String filePath,String sign){
|
||||
String swiftNumber = "";
|
||||
String fileName = "";
|
||||
String code = "" ;
|
||||
String messge= "" ;
|
||||
String res = "";
|
||||
ASUser user = new ASUser(userId);
|
||||
|
||||
try {
|
||||
BizObjectManager manage = null ;
|
||||
String logid = UUIDUtil.getUUID();
|
||||
JSONObject jsonData = new JSONObject();
|
||||
JSONObject reqData = new JSONObject();
|
||||
jsonData.put("apiName",apiName);
|
||||
//贷前的策略编号(请查看策略配置表)
|
||||
if("0".equals(sign)){
|
||||
manage = JBOFactory.getBizObjectManager(LB_BAIRONG_BEFORELOAN.CLASS_NAME,tx);
|
||||
fileName = name+"的贷前校验";
|
||||
reqData.put("strategy_id","STR0030820");
|
||||
}else if ("1".equals(sign)){
|
||||
manage = JBOFactory.getBizObjectManager(LB_BAIRONG_VERIFICATION.CLASS_NAME,tx);
|
||||
fileName = name+"的验证报告";
|
||||
reqData.put("conf_id","MCP0030821");
|
||||
}
|
||||
BizObject bj= manage.createQuery(" flow_unid=:flow_unid ").setParameter("flow_unid", flowUnid).getSingleResult(true);
|
||||
String codeStatus = bj == null ? "" : bj.getAttribute("code_status").toString();
|
||||
if(!(codeStatus.equals("00")||codeStatus.equals("100002 "))){
|
||||
if(bj == null){
|
||||
bj = manage.newObject();
|
||||
}
|
||||
String tokenid = this.getTokenid(tx , user);
|
||||
if(tokenid.isEmpty()){
|
||||
return "获取tokenid失败!!!";
|
||||
}
|
||||
jsonData.put("tokenid",tokenid);
|
||||
//请求参数 id cell name (如产品文档有其他必传参数按照文档为主)
|
||||
reqData.put("id",certid);
|
||||
reqData.put("cell",phone);
|
||||
reqData.put("name",name);
|
||||
jsonData.put("reqData",reqData);
|
||||
System.out.println("请求参数:"+jsonData.toString());
|
||||
res = ms.getApiData(jsonData.toString(),apiCode);
|
||||
if(StringUtils.isNotBlank(res)){
|
||||
JSONObject json = JSONObject.fromObject(res);
|
||||
code = json.containsKey("code") ? json.getString("code") : "" ;
|
||||
if(code.equals("100007")){
|
||||
tokenid = this.getTokenid(tx, user);
|
||||
jsonData = JSONObject.fromObject(jsonData.toString());
|
||||
jsonData.put("tokenid",tokenid);
|
||||
res = ms.getApiData(jsonData.toString(),apiCode);
|
||||
json = JSONObject.fromObject(res);
|
||||
}else if(code.equals("00") || code.equals("100002 ")){
|
||||
swiftNumber = JSONObject.fromObject(res).getString("swift_number");
|
||||
String download = this.download(tx, user, swiftNumber, apiCode, tokenid, url, filePath, bj ,fileName);
|
||||
if(download.indexOf("下载成功")>=0){
|
||||
messge = "success";
|
||||
}else{
|
||||
messge = "下载失败!";
|
||||
System.out.println(sign+"类型下载pdf失败!");
|
||||
}
|
||||
}else{
|
||||
System.out.println("返回参数:"+res);
|
||||
}
|
||||
}
|
||||
bj.setAttributeValue("code_status", code);
|
||||
bj.setAttributeValue("swift_number", swiftNumber);
|
||||
bj.setAttributeValue("log_id", logid);
|
||||
bj.setAttributeValue("project_id", projectId);
|
||||
bj.setAttributeValue("flow_unid", flowUnid);
|
||||
bj.setAttributeValue("subjectId", subjectId);
|
||||
bj.setAttributeValue("inputuserid", user.getUserID());
|
||||
bj.setAttributeValue("inputorgid", user.getOrgID());
|
||||
bj.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
manage.saveObject(bj);
|
||||
|
||||
}else if (!(bj.getAttribute("dcode_status").toString().equals("00"))){
|
||||
String tokenid = this.getTokenid(tx , user);
|
||||
if(tokenid.isEmpty()){
|
||||
return "获取tokenid失败!!!";
|
||||
}
|
||||
swiftNumber = bj.getAttribute("swift_number").toString();
|
||||
String download = this.download(tx, user, swiftNumber, apiCode, tokenid, url, filePath, bj ,fileName);
|
||||
manage.saveObject(bj);
|
||||
if(download.indexOf("下载成功")>=0){
|
||||
messge = "success";
|
||||
}else{
|
||||
messge = "下载失败!";
|
||||
System.out.println(sign+"类型下载pdf失败!");
|
||||
}
|
||||
}else{
|
||||
return "success";
|
||||
}
|
||||
//保存日志信息
|
||||
BizObjectManager lblManage = JBOFactory.getBizObjectManager(LB_BAIRONG_LOG.CLASS_NAME,tx);
|
||||
BizObject lbl = lblManage.newObject();
|
||||
lbl.setAttributeValue("id", logid);
|
||||
lbl.setAttributeValue("request_content", reqData);
|
||||
lbl.setAttributeValue("content_type", sign);
|
||||
lbl.setAttributeValue("response_content", res);
|
||||
lbl.setAttributeValue("project_id", projectId);
|
||||
lbl.setAttributeValue("flow_unid", flowUnid);
|
||||
lbl.setAttributeValue("subjectId", subjectId);
|
||||
lbl.setAttributeValue("inputuserid", user.getUserID());
|
||||
lbl.setAttributeValue("inputorgid", user.getOrgID());
|
||||
lbl.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
lblManage.saveObject(lbl);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
messge = "false";
|
||||
}
|
||||
return messge;
|
||||
}
|
||||
|
||||
public String download(JBOTransaction tx,ASUser user,String swiftNumber,String apiCode,String tokenid,String url,String filePath,BizObject bj,String fileName) throws Exception{
|
||||
JSONObject jsonData = new JSONObject();
|
||||
jsonData.put("swift_number", swiftNumber);
|
||||
String checkCode = getCheckData(jsonData.toString(), apiCode, tokenid);
|
||||
|
||||
Map<String,Object> paramMap = new HashMap<String,Object>();
|
||||
paramMap.put("tokenid", tokenid);
|
||||
paramMap.put("apiCode",apiCode);
|
||||
paramMap.put("jsonData",jsonData);
|
||||
paramMap.put("checkCode",checkCode);
|
||||
System.out.println("paramMap->"+paramMap.toString());
|
||||
String downFile = HttpConnectionManager4.downFile(url, paramMap,filePath);
|
||||
String logid = UUIDUtil.getUUID();
|
||||
if(downFile.indexOf("下载成功")>=0){
|
||||
bj.setAttributeValue("dcode_status", "00");
|
||||
bj.setAttributeValue("file_path", filePath+"/"+swiftNumber+".pdf");
|
||||
bj.setAttributeValue("file_name", fileName);
|
||||
}else{
|
||||
bj.setAttributeValue("dcode_status", downFile);
|
||||
System.out.println("下载返回参数:"+downFile);
|
||||
}
|
||||
bj.setAttributeValue("dlog_id", logid);
|
||||
//保存日志信息
|
||||
BizObjectManager lblManage = JBOFactory.getBizObjectManager(LB_BAIRONG_LOG.CLASS_NAME,tx);
|
||||
BizObject lbl = lblManage.newObject();
|
||||
lbl.setAttributeValue("id", logid);
|
||||
lbl.setAttributeValue("request_content", paramMap);
|
||||
lbl.setAttributeValue("content_type", "d");
|
||||
lbl.setAttributeValue("response_content", downFile);
|
||||
lbl.setAttributeValue("project_id", projectId);
|
||||
lbl.setAttributeValue("flow_unid", flowUnid);
|
||||
lbl.setAttributeValue("subjectId", subjectId);
|
||||
lbl.setAttributeValue("inputuserid", user.getUserID());
|
||||
lbl.setAttributeValue("inputorgid", user.getOrgID());
|
||||
lbl.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
lblManage.saveObject(lbl);
|
||||
return downFile;
|
||||
}
|
||||
|
||||
private String getCheckData(String jsonData, String apiCode, String tokenId) {
|
||||
return MD5Utils.genMd5(jsonData + MD5Utils.genMd5(apiCode + tokenId));
|
||||
}
|
||||
|
||||
//获取tokenid的值
|
||||
public String getTokenid(JBOTransaction tx,ASUser user){
|
||||
String token="";
|
||||
String codeStatus = "";
|
||||
String login_res_str = "" ;
|
||||
JSONObject reqData = new JSONObject();
|
||||
try{
|
||||
BizObjectManager lblManage = JBOFactory.getBizObjectManager(LB_BAIRONG_LOGIN.CLASS_NAME,tx);
|
||||
BizObject lbl = lblManage.createQuery(" v.ROUND((v.UNIX_TIMESTAMP('"+DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss")+"')-v.UNIX_TIMESTAMP(inputtime))/60)<28 ").getSingleResult(false);
|
||||
if( lbl!=null && lbl.getAttribute("tokenid")!=null){
|
||||
token = lbl.getAttribute("tokenid").getString();
|
||||
}else{
|
||||
BizObjectManager lbllManage = JBOFactory.getBizObjectManager(LB_BAIRONG_LOG.CLASS_NAME,tx);
|
||||
lbl = lblManage.newObject();
|
||||
BizObject lbll = lbllManage.newObject();
|
||||
if(MultiSubjectUtil.SZSUBJECTID.equals(subjectId)){//深圳主体
|
||||
reqData.put("userName", sz_userName);
|
||||
reqData.put("password", sz_password);
|
||||
reqData.put("loginName", sz_loginName);
|
||||
reqData.put("apiCode", sz_apiCode);
|
||||
login_res_str = ms.login(sz_userName,sz_password,sz_loginName,sz_apiCode);
|
||||
}else if (MultiSubjectUtil.TJSUBJECTID.equals(subjectId)){//天津主体
|
||||
reqData.put("userName", tj_userName);
|
||||
reqData.put("password", tj_password);
|
||||
reqData.put("loginName", tj_loginName);
|
||||
reqData.put("apiCode", tj_apiCode);
|
||||
login_res_str = ms.login(tj_userName,tj_password,tj_loginName,tj_apiCode);
|
||||
}else{
|
||||
System.out.println("主体id="+subjectId);
|
||||
return "未找到对应的主体信息!!";
|
||||
}
|
||||
if(StringUtils.isNotBlank(login_res_str)){
|
||||
JSONObject loginJson = JSONObject.fromObject(login_res_str);
|
||||
codeStatus = loginJson.getString("code");
|
||||
if(loginJson.containsKey("tokenid")){
|
||||
token = loginJson.getString("tokenid");
|
||||
}else {
|
||||
System.out.println("返回结果异常,无token!结果为:"+login_res_str);
|
||||
}
|
||||
}
|
||||
String logid = UUIDUtil.getUUID();
|
||||
//保存登录日志
|
||||
lbl.setAttributeValue("code_status", codeStatus);
|
||||
lbl.setAttributeValue("tokenid", token);
|
||||
lbl.setAttributeValue("status_name", "");
|
||||
lbl.setAttributeValue("log_id", logid);
|
||||
lbl.setAttributeValue("project_id", projectId);
|
||||
lbl.setAttributeValue("flow_unid", flowUnid);
|
||||
lbl.setAttributeValue("subjectId", subjectId);
|
||||
lbl.setAttributeValue("inputuserid", user.getUserID());
|
||||
lbl.setAttributeValue("inputorgid", user.getOrgID());
|
||||
lbl.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
lblManage.saveObject(lbl);
|
||||
//保存日志信息
|
||||
lbll.setAttributeValue("id", logid);
|
||||
lbll.setAttributeValue("request_content", reqData);
|
||||
lbll.setAttributeValue("content_type", "tokenid");
|
||||
lbll.setAttributeValue("response_content", login_res_str);
|
||||
lbll.setAttributeValue("project_id", projectId);
|
||||
lbll.setAttributeValue("flow_unid", flowUnid);
|
||||
lbll.setAttributeValue("subjectId", subjectId);
|
||||
lbll.setAttributeValue("inputuserid", user.getUserID());
|
||||
lbll.setAttributeValue("inputorgid", user.getOrgID());
|
||||
lbll.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
lbllManage.saveObject(lbll);
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return token;
|
||||
}
|
||||
|
||||
public static void main(String[] arg ){
|
||||
System.out.println(DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss"));
|
||||
System.out.println(DateAssistant.getToday());
|
||||
}
|
||||
public String getSubjectId() {
|
||||
return subjectId;
|
||||
}
|
||||
|
||||
|
||||
public void setSubjectId(String subjectId) {
|
||||
this.subjectId = subjectId;
|
||||
}
|
||||
|
||||
|
||||
public String getFlowUnid() {
|
||||
return flowUnid;
|
||||
}
|
||||
|
||||
|
||||
public void setFlowUnid(String flowUnid) {
|
||||
this.flowUnid = flowUnid;
|
||||
}
|
||||
|
||||
|
||||
public String getProjectId() {
|
||||
return projectId;
|
||||
}
|
||||
|
||||
|
||||
public void setProjectId(String projectId) {
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
|
||||
public String getContractId() {
|
||||
return contractId;
|
||||
}
|
||||
|
||||
|
||||
public void setContractId(String contractId) {
|
||||
this.contractId = contractId;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getCertid() {
|
||||
return certid;
|
||||
}
|
||||
|
||||
|
||||
public void setCertid(String certid) {
|
||||
this.certid = certid;
|
||||
}
|
||||
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,45 @@
|
||||
package com.tenwa.httpclient.resources;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Properties;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import net.sf.json.JSONObject;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import com.amarsoft.are.ARE;
|
||||
|
||||
public class BaiRongPropertiesUtil {
|
||||
private static Map<String, String> attributes;
|
||||
|
||||
public static void load() {
|
||||
attributes = new ConcurrentHashMap<String, String>();
|
||||
Properties prop = new Properties();
|
||||
try {
|
||||
prop.load(BaiRongPropertiesUtil.class.getResourceAsStream("/bairong.properties"));
|
||||
for(Entry<Object, Object> entry : prop.entrySet()) {
|
||||
if(entry.getKey() == null || entry.getValue() == null) {
|
||||
continue;
|
||||
}
|
||||
attributes.put(entry.getKey().toString(), entry.getValue().toString());
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
ARE.getLog().error("init BigDataPropertiesUtil info failed");
|
||||
}
|
||||
ARE.getLog().info("init BigDataPropertiesUtil info success");
|
||||
}
|
||||
|
||||
public static void destroy() {
|
||||
if(attributes != null) attributes.clear();
|
||||
}
|
||||
|
||||
public static String get(String propName) {
|
||||
if(attributes == null) load();
|
||||
return attributes.get(propName);
|
||||
}
|
||||
|
||||
}
|
||||
7
src_tenwa/com/tenwa/util/MultiSubjectUtil.java
Normal file
7
src_tenwa/com/tenwa/util/MultiSubjectUtil.java
Normal file
@ -0,0 +1,7 @@
|
||||
package com.tenwa.util;
|
||||
|
||||
public class MultiSubjectUtil {
|
||||
|
||||
public static final String SZSUBJECTID="aa740e4111c111eaaa0000163e0e11e6";//深圳主体标识
|
||||
public static final String TJSUBJECTID="d989246c11c111eaaa0000163e0e11e6";//天津主体标识
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user