Merge branch 'ap007' into release20211231

# Conflicts:
#	WebContent/Tenwa/Lease/Flow/Project/BusinessApplication/ApprovalForm.jsp
This commit is contained in:
zhanglei 2023-09-12 09:52:34 +08:00
commit 2fef19f665
123 changed files with 14101 additions and 145 deletions

View File

View File

@ -34,10 +34,53 @@
//{((CurUser.hasRole("099") || CurUser.hasRole("299") || CurUser.hasRole("399"))?"true":"false"),"","Button","批量更新角色","批量更新角色","my_Addrole()","","","",""},
//{((CurUser.hasRole("099") || CurUser.hasRole("299") || CurUser.hasRole("399"))?"true":"false"),"","Button","多用户更新角色","多用户更新角色","MuchAddrole()","","","",""},
{((CurUser.hasRole("099") || CurUser.hasRole("299") || CurUser.hasRole("399") || CurUser.hasRole("800R00000067") )?"true":"false"),"","Button","转移","转移人员至其他机构","UserChange()","","","","btn_icon_transfer"},
{((CurUser.hasRole("099") || CurUser.hasRole("299") || CurUser.hasRole("399") || CurUser.hasRole("800R00000067") )?"true":"false"),"","Button","初始密码","初始化该用户密码","ClearPassword()","","","","btn_icon_set"}
};
{((CurUser.hasRole("099") || CurUser.hasRole("299") || CurUser.hasRole("399") || CurUser.hasRole("800R00000067") )?"true":"false"),"","Button","初始密码","初始化该用户密码","ClearPassword()","","","","btn_icon_set"},
{((CurUser.hasRole("099") || CurUser.hasRole("299") || CurUser.hasRole("399") || CurUser.hasRole("800R00000067") )?"true":"false"),"","Button","反欺诈账户同步","反欺诈账户同步","afsAccountSync()","","","","btn_icon_set"}
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function afsAccountSync(){
var isUse = getItemValue(0,getRow(),"STATUS");
if(typeof(isUse)=="undefined" || isUse.length==0 || isUse=="2"){
alert("当前用户还未启用,请先启用后再进行操作");
return;
}
var operatorId = "<%=CurUser.getUserID()%>";
var sUserID = getItemValue(0,getRow(),"USERID");
var sUserName = getItemValue(0,getRow(),"USERNAME");
var curStatus = getItemValue(0,getRow(),"ATTRIBUTE1");
if(typeof(sUserID)=="undefined" ||sUserID.length==0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
}else{
var sReturn = AsDialog.OpenSelector("selectAccountSync", "", "dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.3) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;
}
var afsState = sReturn.split("@");
afsState = afsState[0];
if(typeof(curStatus)=="undefined" ||curStatus.length==0){
if(afsState!="Add"){
alert("当前用户还未与反欺诈系统同步");
return;
}
}else {
if(curStatus=="Delete"&&afsState=="NoActivate"){
alert("当前用户已在反欺诈系统注销,不能进行停用操作");
return;
}
if(curStatus==afsState){
alert("当前状态已是最新状态,无需同步");
return;
}
}
var syncResult = RunJavaMethodTrans("com.ample.esb.controller.AccountSyncController","accountSyncDo","userId="+sUserID+",userName="+sUserName+",afsState="+afsState+",operatorId="+operatorId);
alert(syncResult);
});
}
}
function my_add(){
var sOrgLeval="<%=orgLevel%>";
if(sOrgLeval!=6&&sOrgLeval!=9){alert("人员必须登记在部门之下");return false;}
@ -176,11 +219,15 @@
function my_disable(){
var sUserID = getItemValue(0,getRow(),"UserID");
var sStatus = getItemValue(0,getRow(),"Status");
var curAfsStatus = getItemValue(0,getRow(),"ATTRIBUTE1");
if(typeof(sUserID) == "undefined" || sUserID.length == 0){
alert(getMessageText('AWEW1001'));//请选择一条信息!
}else if(sStatus == "2"){
alert("该数据已经是停用的状态!");
return;
}else if(curAfsStatus=="Add"){
alert("请先进行反欺诈系统账户停用操作!");
return;
}else if(confirm("您真的想停用该用户吗?")){
var sReturn = RunJavaMethodTrans("com.amarsoft.app.awe.config.orguser.action.UserManageAction","disableUser","UserID="+sUserID);
if(sReturn == "SUCCESS"){

View File

@ -204,7 +204,8 @@ public boolean validUserPassword(HttpServletRequest request, Transaction Sqlca,S
<%
String sPWDState = new UserMarkInfo(Sqlca,CurUser.getUserID()).getPasswordState();
// 开发模式不做首次登录/密码过期校验
if(sPWDState.equals(String.valueOf(SecurityAuditConstants.CODE_USER_FIRST_LOGON)) || sPWDState.equals(String.valueOf(SecurityAuditConstants.CODE_PWD_OVERDUE))){
// if(sPWDState.equals(String.valueOf(SecurityAuditConstants.CODE_USER_FIRST_LOGON)) || sPWDState.equals(String.valueOf(SecurityAuditConstants.CODE_PWD_OVERDUE))){
if(false){
%>
window.open("<%=CurConfig.getContextPath() %>/Redirector?ComponentURL=/AppMain/ModifyPassword.jsp", "_top");
<%

View File

@ -5,7 +5,7 @@
type="javax.sql.DataSource" maxActive="30" maxIdle="2" maxWait="10000"
username="apzl" password="apzl@2018"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://47.93.34.101:10323/apzl?rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=GBK&amp;autoReconnectForPools=true&amp;autoReconnect=true&amp;useSSL=false" />
url="jdbc:mysql://60.205.189.63:3306/apzl?rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=GBK&amp;autoReconnectForPools=true&amp;autoReconnect=true&amp;useSSL=false" />
<!-- 18测试环境 -->
<!-- <Resource name="jdbc/als" auth="Container" type="javax.sql.DataSource"
maxActive="30" maxIdle="2" maxWait="10000" username="apzl" password="apzl@2018"

View File

@ -0,0 +1,180 @@
<%@ page import="java.util.Date" %>
<%@ page import="com.tenwa.httpclient.pboc.PbocNewDataController" %>
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/IncludeBegin.jsp"%><%
String flowId = CurPage.getParameter("flowId");//流程编号
String projectId = CurPage.getParameter("projectId");//业务Id
String projectNo = CurPage.getParameter("projectNo");//业务编号
String subjectId = CurPage.getParameter("subjectId");//主体编号
String flowunid = CurPage.getParameter("ObjectNo");
String ReadyApprove = CurPage.getParameter("ReadyApprove");
String applyId = CurPage.getParameter("applyId");
String userName = CurUser.getUserName();
SimpleDateFormat dateFormart = new SimpleDateFormat("yyyy-MM-dd");
String date = dateFormart.format(new Date());
String watermark = userName + " " + date;
String getType = CurPage.getParameter("GetType");
String type = "";
String count = "";
String reasonDesc = "";
PbocNewDataController bdc = new PbocNewDataController();
boolean flag = true;
Map<String,String> params = new HashMap<String,String>(); //初始化参数
// TODO: 2023/1/31 上线需修改
params.put("fullCertId",CurPage.getParameter("fullCertId"));
params.put("fullName",CurPage.getParameter("fullName"));
params.put("fullRelation",CurPage.getParameter("fullRelation"));
FileInputStream fr = null;
BufferedReader br = null;
try {
String htmlURL = bdc.findAndSavePbocData(params, "pboc_af", Sqlca, type, applyId, CurPage);
if(htmlURL.startsWith("false")){
String resMsg = htmlURL.split("@")[1];
%>
<script type="text/javascript" src="<%=sWebRootPath %>/Frame/page/js/as_debug_message.js"></script>
<script type="text/javascript">
alert("<%=resMsg%>");
$(document).ready(function (){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdataList.jsp", "FlowUnid=<%=flowunid%>&ProjectId=<%=projectId%>&ProjectNo=<%=projectNo%>&SubjectId=<%=subjectId%>","_self","");
})
</script>
<%
return;
}
String poRes = bdc.queryPbocData(params, Sqlca, applyId);
System.out.println("20230802666--------poRes="+poRes);
String poName = null;
String poNameNew = null;
String poCertId = null;
String poCertIdNew = null;
if(null != poRes){
String[] poResArr = poRes.split("@");
poName = poResArr[0];
String namePre = StringUtils.left(poName, 1);
if(poName.length() > 2){
String nameFix = StringUtils.right(poName, 1);
String nameCenter = "";
for(int i=0; i < poName.length()-2; i++){
nameCenter += "*";
}
poNameNew = namePre+nameCenter+nameFix;
}else {
poNameNew = namePre + "*";
}
if(StringUtils.isNotEmpty(poResArr[1]) && !"0".equals(poResArr[1])){
poCertId = poResArr[1];
int certIdLength = poCertId.length() - 4;
String certIdPre = StringUtils.left(poCertId, certIdLength);
String certIdFix = "****";
poCertIdNew = certIdPre+certIdFix;
}
}
String fullCertId = params.get("fullCertId");
int certIdLength = fullCertId.length() - 4;
String certIdPre = StringUtils.left(fullCertId, certIdLength);
String certIdFix = "****";
String newFullCertId = certIdPre+certIdFix;
String fullName = params.get("fullName");
String namePre = StringUtils.left(fullName, 1);
String newFullName = null;
if(fullName.length() > 2){
String nameFix = StringUtils.right(fullName, 1);
String nameCenter = "";
for(int i=0; i < fullName.length()-2; i++){
nameCenter += "*";
}
newFullName = namePre+nameCenter+nameFix;
}else {
newFullName = namePre + "*";
}
File file = new File(htmlURL);
fr = new FileInputStream(file);
br = new BufferedReader(new InputStreamReader(fr, "UTF-8"));
String str;
int index = 0;
while((str = br.readLine()) != null) {
index++;
String html = str;
if(html.indexOf(fullName) != -1){
html = html.replaceAll(fullName, newFullName);
}
if(html.indexOf(fullCertId) != -1){
html = html.replaceAll(fullCertId, newFullCertId);
}
if(StringUtils.isNotEmpty(poName) && html.indexOf(poName) != -1){
html = html.replaceAll(poName, poNameNew);
}
if(StringUtils.isNotEmpty(poCertId) && html.indexOf(poCertId) != -1){
html = html.replaceAll(poCertId, poCertIdNew);
}
if(html.indexOf("<script src=\"../resources/product/p/js/jquery.min.js\"></script>") != -1) {
html = html.replaceAll("<script src=\"../resources/product/p/js/jquery.min.js\"></script>", "<script src=\"viewReport_files/jquery.js\"></script><script src=\"viewReport_files/shuiyin.js\"></script>");
}
if(html.indexOf("viewReport_files") != -1) {
html = html.replaceAll("viewReport_files", "Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/viewReport_data");
}
if(html.indexOf("../resources/product/p/js") != -1) {
html = html.replaceAll("../resources/product/p/js", "Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/viewReport_data");
}
if(html.indexOf("../resources/product/p/css") != -1) {
html = html.replaceAll("../resources/product/p/css", "Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/viewReport_data");
}
if(html.indexOf("../resources/product/p/images") != -1) {
html = html.replaceAll("../resources/product/p/images", "Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/viewReport_data");
}
if(html.indexOf("<body") != -1) {
html = html.replaceAll("<body", "<body style=\"overflow:scroll;height:95%\" ");
}
if(html.indexOf("<h1 class=\"u-repname\">个人信用报告</h1>") != -1) {
html = html.replaceAll("<h1 class=\"u-repname\">个人信用报告</h1>", "<a style=\"position:absolute;left:0;top:8%\" title=\"PBOC-人行征信\" onClick=\"returnList();\" class=\"inline_button \" hidefocus=\"\" href=\"#\"><span style=\"display:none;\"></span><span class=\"left\">&nbsp;</span><span class=\"center\"><span class=\"btn_icon btn_icon_edit\">&nbsp;</span><span class=\"btn_text\">返回</span></span><span class=\"right\">&nbsp;</span></a><h1 class=\"u-repname\">个人信用报告</h1>");
}
if(html.indexOf("document.oncopy") != -1) {
html = html.replaceAll("document.oncopy", "watermark({ \"watermark_txt\": \""+watermark+"\"});\n document.oncopy");
}
// TODO: 2023-5-16 根据实际需求来,测试环境这一行解析异常,单独处理,生产可删
if(index ==4){
continue;
}
// TODO: 2023-5-16 根据实际需求来,测试环境这一行解析异常,单独处理,生产可删
%>
<%=html%>
<%}
} catch(Exception e) {
e.printStackTrace();
flag = false;
reasonDesc = e.getMessage();
Sqlca.rollback();
%>
<script type="text/javascript" src="<%=sWebRootPath %>/Frame/page/js/as_debug_message.js"></script>
<script type="text/javascript">
alert("获取数据失败");
$(document).ready(function (){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdataList.jsp", "FlowUnid=<%=flowunid%>&ProjectId=<%=projectId%>&ProjectNo=<%=projectNo%>&SubjectId=<%=subjectId%>","_self","");
})
</script>
<%
} finally {
if(br != null) br.close();
if(fr != null) fr.close();
}
%>
<script type="text/javascript">
function getData() {
if('<%=ReadyApprove%>'=='ReadOnly'){
alert("查询页面不允许获取大数据");
return;
}
if("<%=count%>" == "done") {
alert("已达到获取数据次数上限");
} else {
location.href = location.href.indexOf("&GetType=GET") == -1 ? location.href + "&GetType=GET&Count=<%=count%>" : location.href.substring(0, location.href.indexOf("&GetType=GET")) + "&GetType=GET&Count=<%=count%>";
}
}
function returnList(){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdataList.jsp", "FlowUnid=<%=flowunid%>&ProjectId=<%=projectId%>&ProjectNo=<%=projectNo%>&SubjectId=<%=subjectId%>","_self","");
}
</script>
<%@include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,143 @@
<%@page import="com.tenwa.util.SerialNumberUtil"%>
<%@ page import="com.tenwa.httpclient.controller.PbocDataController" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/IncludeBegin.jsp"%><%
String flowId = CurPage.getParameter("flowId");//流程编号
String projectId = CurPage.getParameter("projectId");//业务Id
String projectNo = CurPage.getParameter("projectNo");//业务编号
String subjectId = CurPage.getParameter("subjectId");//主体编号
String flowunid = CurPage.getParameter("ObjectNo");
String ReadyApprove = CurPage.getParameter("ReadyApprove");
System.out.println("ReadyApprove="+ReadyApprove);
String applyId = "";
String userName = CurUser.getUserName();
SimpleDateFormat dateFormart = new SimpleDateFormat("yyyy-MM-dd");
String date = dateFormart.format(new Date());
String watermark = userName + " " + date;
String getType = CurPage.getParameter("GetType");
System.out.println("getType="+getType);
String type = "";
String count = "";
String reasonDesc = "";
PbocDataController bdc = new PbocDataController();
boolean flag = true;
String result = bdc.findDataApplyId(CurPage, "pboc_af", Sqlca);
if(result.startsWith("false")){
String resMsg = result.split("@")[1];
%>
<script type="text/javascript" src="<%=sWebRootPath %>/Frame/page/js/as_debug_message.js"></script>
<script type="text/javascript">
alert("<%=resMsg%>");
$(document).ready(function (){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdataList.jsp", "FlowUnid=<%=flowunid%>&ProjectId=<%=projectId%>","_self","");
})
</script>
<%
}
if("GET".equals(getType)) {
if("false".equals(result)) {
// return ;
} else {
String[] res = result.split("@");
applyId = res[1];
count = res[2];
type = "GET";
}
} else {
if("false".equals(result)) {
JBOTransaction tx = JBOFactory.createJBOTransaction();
applyId = SerialNumberUtil.getPengyuanNumber(tx);
tx.commit();
type = "SAVE";
} else {
String[] res = result.split("@");
applyId = res[1];
count = res[2];
type = "GET";
}
}
Map<String,String> params = new HashMap<String,String>(); //初始化参数
// TODO: 2023/1/31 上线需修改
//params.put("fullcertId",CurPage.getParameter("fullcertId"));
//params.put("fullName",CurPage.getParameter("fullName"));
params.put("fullcertId", "622926198501293785");
params.put("fullName", "王小二");
FileInputStream fr = null;
BufferedReader br = null;
try {
String htmlURL = bdc.findAndSavePbocData(params, "pboc_af", Sqlca, type, applyId, CurPage);
File file = new File(htmlURL);
fr = new FileInputStream(file);
br = new BufferedReader(new InputStreamReader(fr, "UTF-8"));
String str;
while((str = br.readLine()) != null) {
String html = str;
if(html.indexOf("<script src=\"viewReport_files/report.js\"></script>") != -1) {
html = html.replaceAll("<script src=\"viewReport_files/report.js\"></script>", "<script src=\"viewReport_files/report.js\"></script><script src=\"viewReport_files/shuiyin.js\"></script>");
}
if(html.indexOf("viewReport_files") != -1) {
html = html.replaceAll("viewReport_files", "Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/viewReport_data");
}
if(html.indexOf("<body") != -1) {
html = html.replaceAll("<body", "<body style=\"overflow:scroll;height:95%\" ");
}
if(html.indexOf("<h1 class=\"u-repname\">个人信用报告</h1>") != -1) {
html = html.replaceAll("<h1 class=\"u-repname\">个人信用报告</h1>", "<a style=\"position:absolute;left:0;top:8%\" title=\"PBOC-人行征信\" onClick=\"returnList();\" class=\"inline_button \" hidefocus=\"\" href=\"#\"><span style=\"display:none;\"></span><span class=\"left\">&nbsp;</span><span class=\"center\"><span class=\"btn_icon btn_icon_edit\">&nbsp;</span><span class=\"btn_text\">返回</span></span><span class=\"right\">&nbsp;</span></a><h1 class=\"u-repname\">个人信用报告</h1>");
}
if(html.indexOf("document.oncopy") != -1) {
html = html.replaceAll("document.oncopy", "watermark({ \"watermark_txt\": \""+watermark+"\"});\n document.oncopy");
}
%>
<%=html%>
<%}
//查询获取数据次数
if("SAVE".equals(type)) {
String res = bdc.findDataApplyId(CurPage, "pengyuan_af", Sqlca);
if("false".equals(res)) {
count = "0";
} else {
count = res.split("@")[2];
}
}
} catch(Exception e) {
e.printStackTrace();
flag = false;
reasonDesc = e.getMessage();
Sqlca.rollback();
%>
<script type="text/javascript" src="<%=sWebRootPath %>/Frame/page/js/as_debug_message.js"></script>
<script type="text/javascript">
alert("获取数据失败");
$(document).ready(function (){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdataList.jsp", "FlowUnid=<%=flowunid%>&ProjectId=<%=projectId%>","_self","");
})
</script>
<%
} finally {
if(br != null) br.close();
if(fr != null) fr.close();
}
%>
<script type="text/javascript">
function getData() {
if('<%=ReadyApprove%>'=='ReadOnly'){
alert("查询页面不允许获取大数据");
return;
}
if("<%=count%>" == "done") {
alert("已达到获取数据次数上限");
} else {
location.href = location.href.indexOf("&GetType=GET") == -1 ? location.href + "&GetType=GET&Count=<%=count%>" : location.href.substring(0, location.href.indexOf("&GetType=GET")) + "&GetType=GET&Count=<%=count%>";
}
}
function returnList(){
AsControl.OpenView("/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdataList.jsp", "FlowUnid=<%=flowunid%>&ProjectId=<%=projectId%>","_self","");
}
</script>
<%@include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,85 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2019-06-14
Content:
History Log:
*/
String flowId = CurPage.getParameter("FlowUnid");//流程编号
String projectId = CurPage.getParameter("ProjectId");//流程编号
String projectNo = CurPage.getParameter("ProjectNo");//流程编号
String subjectId = CurPage.getParameter("SubjectId");//主体编号
String flag = "true";
/* String flowunid = CurPage.getParameter("ObjectNo");
String projectNo = CurPage.getParameter("ProjectNo");
String ReadyApprove = CurPage.getParameter("ReadyApprove");
String getType = CurPage.getParameter("GetType"); */
ASObjectModel doTemp = new ASObjectModel("VI_LB_IDENTITY_CHECK");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow(flowId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{"true","All","Button","拉取征信数据","拉取征信数据","newRecord()","","","","btn_icon_add",""},
{flag,"","Button","详情","查看详情","detail()","","","","btn_icon_detail",""},
// {"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
// {"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
$(function(){
var projectId = "<%=projectId%>";
/* if(null == projectId || "" == projectId || "null" == projectId){
location.reload();
} */
})
function request(actionType,applyId){
var sUrl = "/Tenwa/Lease/Flow/Comm/BigdataPboc/query_report/pbocdata.jsp";
var fullName = getItemValue(0,getRow(0),'fullName');
var fullCertId = getItemValue(0,getRow(0),'certId');
var fullRelation = getItemValue(0,getRow(0),'relation');
var fullPhone = getItemValue(0,getRow(0),'phone');
var params = 'flowId='+'<%=flowId%>'+'&projectId='+'<%=projectId%>'+'&projectNo='+'<%=projectNo%>'+'&fullName='+fullName+'&applyId='+applyId
+'&fullCertId='+fullCertId+'&fullRelation='+fullRelation+'&fullPhone='+fullPhone+'&GetType='+actionType+'&subjectId='+'<%=subjectId%>';
AsControl.OpenView(sUrl,params,'_self','');
}
function newRecord(){
var actionType = "SAVE";
if(confirm("查询人行征信,请先确认客户是否上传身份证正反面,以及签署征信查询授权书(重点核查签署日期)。\n您确定上述客户信息完整要继续操作吗")){
var checkReqData = checkData(actionType);
if(checkReqData.split("@")[0]!="true"){
var res = checkReqData.split("@")[1];
AsDebug.alert("警告",res);
return;
}
var applyId = checkReqData.split("@")[1];
request(actionType,applyId);
}
}
function detail(){
var actionType = "GET";
if(confirm("查询人行征信,请先确认客户是否上传身份证正反面,以及签署征信查询授权书(重点核查签署日期)。\n您确定上述客户信息完整要继续操作吗")){
var checkReqData = checkData(actionType);
if(checkReqData.split("@")[0]!="true"){
var res = checkReqData.split("@")[1];
AsDebug.alert("警告",res);
return;
}
var applyId = checkReqData.split("@")[1];
request(actionType,applyId);
}
}
function checkData(actionType){
var sParams="fullName="+getItemValue(0,getRow(0),'fullName')+",flowId=<%=flowId%>,projectNo=<%=projectNo%>,actionType="+actionType
+",fullCertId="+getItemValue(0,getRow(0),'certId')+",fullPhone="+getItemValue(0,getRow(0),'phone');
return RunJavaMethod("com.tenwa.httpclient.pboc.PbocAction","checkReqData",sParams);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -0,0 +1,51 @@
$(function(){
//pageInit();
});
function pageInit(){
var pPageWidth = 794; //打印时的A4完整宽度96dpi
var pPageHeight = $(document).height();
var pContentwidth = 720; //打印时的内容宽度96dpi,同步css
var A4Heigth = 1123; //A4纸的高度px96dip。固定值
var markBox = $('<div class="u-wmarkbox"/>').css("cssText","width:auto!important;width:".concat(pPageWidth,"px;min-width:",pPageWidth,"px")).css({
"display":"none",
"position": "absolute",
"top": 0,
"left": 0,
"height": pPageHeight.toString(10).concat("px"), //pPageHeight, 100%
"backgroundColor": "#FFF",
"overflow": "hidden",
"zIndex": 1
});
var wmimg = new Image();
wmimg.onload = function(){repeatwmimg(this);}
wmimg.src = '../../images/pbccrc_watermark2.gif';
function repeatwmimg(oimg){
var imgwidth = oimg.width;
var imgheight = oimg.height;
//获得水印图片高度后重置
//这里应该还要加上打印时每一页的上下边距4cm(同步css)≈72px(96dpi)
//var wmHeight = Math.ceil(pPageHeight / A4Heigth) * A4Heigth;
//var wmHeight = Math.ceil(pPageHeight / A4Heigth) * (A4Heigth + 145);
var wmHeight = Math.ceil(pPageHeight / A4Heigth) * A4Heigth;
markBox.css("height", wmHeight.toString(10).concat("px"));
var hi = Math.ceil(pPageWidth / imgwidth);
var vi = Math.ceil(wmHeight / imgheight);
for(var i = 0; i < vi; i++){
var vidiv = $('<div class="u-row"/>').css({
"width": (imgwidth * hi).toString(10).concat("px"),
"height": imgheight.toString(10).concat("px")
});
for(var j = 0; j < hi; j++){
vidiv.append($(oimg).clone(false).css({"display":"block","float":"left","border":"none"}));
}
vidiv.appendTo(markBox);
}
markBox.prependTo("body");
};
}

View File

@ -0,0 +1,100 @@
function watermark(settings) {
//默认设置
var defaultSettings = {
watermark_txt: "text",
watermark_x: 20, //水印起始位置x轴坐标
watermark_y: 20, //水印起始位置Y轴坐标
watermark_rows: 2000, //水印行数
watermark_cols: 20, //水印列数
watermark_x_space: 100, //水印x轴间隔
watermark_y_space: 50, //水印y轴间隔
watermark_color: '#aaa', //水印字体颜色
watermark_alpha: 0.4, //水印透明度
watermark_fontsize: '15px', //水印字体大小
watermark_font: '微软雅黑', //水印字体
watermark_width: 210, //水印宽度
watermark_height: 80, //水印长度
watermark_angle: 20 //水印倾斜度数
};
if (arguments.length === 1 && typeof arguments[0] === "object") {
var src = arguments[0] || {};
for (key in src) {
if (src[key] && defaultSettings[key] && src[key] === defaultSettings[key]) continue;
else if (src[key]) defaultSettings[key] = src[key];
}
}
var oTemp = document.createDocumentFragment();
//获取页面最大宽度
var page_width = Math.max(document.body.scrollWidth, document.body.clientWidth);
var cutWidth = page_width * 0.0150;
var page_width = page_width - cutWidth;
//获取页面最大高度
var page_height = Math.max(document.body.scrollHeight, document.body.clientHeight) + 450;
page_height = Math.max(page_height, window.innerHeight - 30);
//如果将水印列数设置为0或水印列数设置过大超过页面最大宽度则重新计算水印列数和水印x轴间隔
if (defaultSettings.watermark_cols == 0 || (parseInt(defaultSettings.watermark_x + defaultSettings.watermark_width * defaultSettings.watermark_cols + defaultSettings.watermark_x_space * (defaultSettings.watermark_cols - 1)) > page_width)) {
defaultSettings.watermark_cols = parseInt((page_width - defaultSettings.watermark_x + defaultSettings.watermark_x_space) / (defaultSettings.watermark_width + defaultSettings.watermark_x_space));
defaultSettings.watermark_x_space = parseInt((page_width - defaultSettings.watermark_x - defaultSettings.watermark_width * defaultSettings.watermark_cols) / (defaultSettings.watermark_cols - 1));
}
//如果将水印行数设置为0或水印行数设置过大超过页面最大长度则重新计算水印行数和水印y轴间隔
if (defaultSettings.watermark_rows == 0 || (parseInt(defaultSettings.watermark_y + defaultSettings.watermark_height * defaultSettings.watermark_rows + defaultSettings.watermark_y_space * (defaultSettings.watermark_rows - 1)) > page_height)) {
defaultSettings.watermark_rows = parseInt((defaultSettings.watermark_y_space + page_height - defaultSettings.watermark_y) / (defaultSettings.watermark_height + defaultSettings.watermark_y_space));
defaultSettings.watermark_y_space = parseInt(((page_height - defaultSettings.watermark_y) - defaultSettings.watermark_height * defaultSettings.watermark_rows) / (defaultSettings.watermark_rows - 1));
}
var x;
var y;
for (var i = 0; i < defaultSettings.watermark_rows; i++) {
y = defaultSettings.watermark_y + (defaultSettings.watermark_y_space + defaultSettings.watermark_height) * i;
for (var j = 0; j < defaultSettings.watermark_cols; j++) {
x = defaultSettings.watermark_x + (defaultSettings.watermark_width + defaultSettings.watermark_x_space) * j;
var mask_div = document.createElement('div');
mask_div.id = 'mask_div' + i + j;
mask_div.className = 'mask_div';
mask_div.appendChild(document.createTextNode(defaultSettings.watermark_txt));
//设置水印div倾斜显示
mask_div.style.webkitTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
mask_div.style.MozTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
mask_div.style.msTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
mask_div.style.OTransform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
mask_div.style.transform = "rotate(-" + defaultSettings.watermark_angle + "deg)";
mask_div.style.visibility = "";
mask_div.style.position = "absolute";
mask_div.style.left = x + 'px';
mask_div.style.top = y + 'px';
mask_div.style.overflow = "hidden";
mask_div.style.zIndex = "9999";
//让水印不遮挡页面的点击事件
mask_div.style.pointerEvents = 'none';
mask_div.style.opacity = defaultSettings.watermark_alpha;
mask_div.style.fontSize = defaultSettings.watermark_fontsize;
mask_div.style.fontFamily = defaultSettings.watermark_font;
mask_div.style.color = defaultSettings.watermark_color;
mask_div.style.textAlign = "center";
mask_div.style.width = defaultSettings.watermark_width + 'px';
mask_div.style.height = defaultSettings.watermark_height + 'px';
mask_div.style.display = "block";
oTemp.appendChild(mask_div);
};
};
document.body.appendChild(oTemp);
}
function getNow() {
var d = new Date();
var year = d.getFullYear();
var month = change(d.getMonth() + 1);
var day = change(d.getDate());
var hour = change(d.getHours());
var minute = change(d.getMinutes());
var second = change(d.getSeconds());
function change(t) {
if (t < 10) {
return "0" + t;
} else {
return t;
}
}
var time = year + '年' + month + '月' + day + '日 ' + hour + '时' + minute + '分' + second + '秒';
return time;
}

View File

@ -0,0 +1,160 @@
<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%@ page import="com.amarsoft.app.util.*" %>
<%
/*
Author: undefined 2016-09-01
Content: 催收函-客户 ReminderLetterCustomer.jsp
History Log:
*/
String userId = CurUser.getUserID();
String orgId =CurUser.getOrgID();
System.out.print(orgId);
String falg = "true";
String compClientID = request.getParameter("CompClientID");
ASObjectModel doTemp = new ASObjectModel("ReminderLetterCustomer");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1";
dwTemp.setPageSize(pageSize==null?20:Integer.parseInt(pageSize));
dwTemp.MultiSelect = true;
dwTemp.genHTMLObjectWindow(userId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] =null;
sButtons=new String[][]{
{"true","All","Button","生成催收函","生成催收函","generateQuotation()","","","","btn_icon_generate"},
{"true","All","Button","批量下载","批量下载","lotdown()","","","","btn_icon_down"},
{"false","All","Button","公司盖章","公司盖章","stamp()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
//在加载完表格后调用
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var html="";
html+='<a onclick=downloadFile(\''+getItemValue(0,i,"attrid")+'\')><font color="blue">'+"下载&nbsp&nbsp&nbsp&nbsp&nbsp"+'</font></a>';
getObj(0,i,"FILENAME").innerHTML=html+'<font >'+getObj(0,i,"FILENAME").innerHTML+'</font>';
};
}
function downloadFile(id){
if(typeof(id)==undefined || id=='') {
alert("请先生成催告函再下载!");
return;
}
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
}
function generateQuotation(){
var projectId=getItemValueArray(0,"PROJECT_ID");
//var contractNos=getItemValueArray(0,"CONTRACT_NUMBER");
//var subjectIds=getItemValueArray(0,"SUBJECTID");
var number = 0;
if(typeof(projectId)=="undefined"||projectId==null||projectId==""){alert("请选择数据");return;}
for(var i=0;i<projectId.length;i++){
var param={};
var tempParam={};
var sparam="";
//根据合同编号 获取主体信息
//var subjectId = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","selectSubjectId","contractNo="+contractNos[i]);
//模板号
// if("aa740e4111c111eaaa0000163e0e11e6" == subjectIds[i]){//深圳催告函模板
// param["templateNo"]="69f0423f984a46128292fbd8768fcd2f";
// }else if("d989246c11c111eaaa0000163e0e11e6" == subjectIds[i]){//天津催告函模板
// param["templateNo"]="5edc6ce108494e5982c1aa0cc5c117a0";
// }else{
// alert("未找到对应主体信息!!!");
// break;
// }
param["templateNo"]="69f0423f984a46128292fbd8768f558f";
//生成文件关联关系
tempParam["OBJECTTYPE"]="ReminderLetterCustomer";
tempParam["PROJECTID"]=projectId[i];
tempParam["PROJ_ID"]=projectId[i];
//生成模板固定参数
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
tempParam["fileSavePath"]="<%=CurConfig.getConfigure("FileSavePath")%>";
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");//生成模板的参数据
for(var key in param){
if(sparam.length>0){sparam+=",";}
sparam+=key+"="+param[key];
}
var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtationByType","projectId="+projectId[i]+",objecttype=ReminderLetterCustomer");
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
number++;
}
if(projectId.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("生成失败!!!");
}else if(number==projectId.length){
alert("生成成功!!!");
}else{
alert("部分生成成功!!!");
}
reloadSelf();
}
function lotdown(){
var attrids=getItemValueArray(0,"attrid");
if(typeof(attrids)=="undefined"||attrids==null||attrids==""){alert("请选择");return;}
for( var i=0;i<attrids.length;i++){
if(typeof(attrids[i])=="undefined"||attrids[i]==null||attrids[i]==""){
alert("请先生成催告函再下载!");
return;
}
}
lotdownloadFile(attrids);
}
function lotdownloadFile(id){
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
window.open(sWebRootPath+"/servlet/view/DownloadZipServlet?CompClientID=<%=sCompClientID%>&id="+id, "downloadTemplate");
}
function stamp(){
var flie = getItemValue(0,getRow(0),"FILENAME");
if(typeof(flie)=="undefined"||flie==null||flie==""){
alert("请先生成催告函!");
return;
}
var number = 0;
var projectIds=getItemValueArray(0,"ID");
for(var i=0;i<projectIds.length;i++){
var projectId=projectIds[i];
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","ProjectId="+projectId+",flagType=ReminderLetterCustomer");
if("success"==result){
number++;
}
}
if(projectIds.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("盖章失败!!!");
}else if(number==projectIds.length){
alert("盖章成功!!!");
}else{
alert("部分盖章成功!!!");
}
location.reload();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,160 @@
<%@page import="jbo.app.tenwa.calc.LC_CALC_CONDITION_TEMP"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
<%@ page import="com.tenwa.doc.action.DocListInitAction" %>
<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %>
<%@ page import="com.amarsoft.app.util.*" %>
<%
/*
Author: undefined 2016-09-01
Content: 催收函-担保人 ReminderLetterGu.jsp
History Log:
*/
String userId = CurUser.getUserID();
String orgId =CurUser.getOrgID();
System.out.print(orgId);
String falg = "true";
String compClientID = request.getParameter("CompClientID");
ASObjectModel doTemp = new ASObjectModel("ReminderLetterGu");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1";
dwTemp.setPageSize(pageSize==null?20:Integer.parseInt(pageSize));
dwTemp.MultiSelect = true;
dwTemp.genHTMLObjectWindow(userId);
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] =null;
sButtons=new String[][]{
{"true","All","Button","生成催收函","生成催收函","generateQuotation()","","","","btn_icon_generate"},
{"true","All","Button","批量下载","批量下载","lotdown()","","","","btn_icon_down"},
{"false","All","Button","公司盖章","公司盖章","stamp()","","","",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
//在加载完表格后调用
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var html="";
html+='<a onclick=downloadFile(\''+getItemValue(0,i,"attrid")+'\')><font color="blue">'+"下载&nbsp&nbsp&nbsp&nbsp&nbsp"+'</font></a>';
getObj(0,i,"FILENAME").innerHTML=html+'<font >'+getObj(0,i,"FILENAME").innerHTML+'</font>';
};
}
function downloadFile(id){
if(typeof(id)==undefined || id=='') {
alert("请先生成催告函再下载!");
return;
}
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");
}
function generateQuotation(){
var projectId=getItemValueArray(0,"PROJECT_ID");
//var contractNos=getItemValueArray(0,"CONTRACT_NUMBER");
//var subjectIds=getItemValueArray(0,"SUBJECTID");
var number = 0;
if(typeof(projectId)=="undefined"||projectId==null||projectId==""){alert("请选择数据");return;}
for(var i=0;i<projectId.length;i++){
var param={};
var tempParam={};
var sparam="";
//根据合同编号 获取主体信息
//var subjectId = RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","selectSubjectId","contractNo="+contractNos[i]);
//模板号
// if("aa740e4111c111eaaa0000163e0e11e6" == subjectIds[i]){//深圳催告函模板
// param["templateNo"]="69f0423f984a46128292fbd8768fcd2f";
// }else if("d989246c11c111eaaa0000163e0e11e6" == subjectIds[i]){//天津催告函模板
// param["templateNo"]="5edc6ce108494e5982c1aa0cc5c117a0";
// }else{
// alert("未找到对应主体信息!!!");
// break;
// }
param["templateNo"]="69f0423f984a46128292fbd8768f559f";
//生成文件关联关系
tempParam["OBJECTTYPE"]="ReminderLetterGu";
tempParam["PROJECTID"]=projectId[i];
tempParam["PROJ_ID"]=projectId[i];
//生成模板固定参数
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
tempParam["fileSavePath"]="<%=CurConfig.getConfigure("FileSavePath")%>";
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");//生成模板的参数据
for(var key in param){
if(sparam.length>0){sparam+=",";}
sparam+=key+"="+param[key];
}
var deleteresult=RunJavaMethodTrans("com.tenwa.officetempalte.controller.RentNotinyDeleteAction","deletequtationByType","projectId="+projectId[i]+",objecttype=ReminderLetterGu");
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
number++;
}
if(projectId.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("生成失败!!!");
}else if(number==projectId.length){
alert("生成成功!!!");
}else{
alert("部分生成成功!!!");
}
reloadSelf();
}
function lotdown(){
var attrids=getItemValueArray(0,"attrid");
if(typeof(attrids)=="undefined"||attrids==null||attrids==""){alert("请选择");return;}
for( var i=0;i<attrids.length;i++){
if(typeof(attrids[i])=="undefined"||attrids[i]==null||attrids[i]==""){
alert("请先生成催告函再下载!");
return;
}
}
lotdownloadFile(attrids);
}
function lotdownloadFile(id){
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
window.open(sWebRootPath+"/servlet/view/DownloadZipServlet?CompClientID=<%=sCompClientID%>&id="+id, "downloadTemplate");
}
function stamp(){
var flie = getItemValue(0,getRow(0),"FILENAME");
if(typeof(flie)=="undefined"||flie==null||flie==""){
alert("请先生成催告函!");
return;
}
var number = 0;
var projectIds=getItemValueArray(0,"ID");
for(var i=0;i<projectIds.length;i++){
var projectId=projectIds[i];
var result=RunJavaMethodTrans("com.tenwa.channelportal.action.ContractSignAction","TcollectionSignA","ProjectId="+projectId+",flagType=ReminderLetterGu");
if("success"==result){
number++;
}
}
if(projectIds.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("盖章失败!!!");
}else if(number==projectIds.length){
alert("盖章成功!!!");
}else{
alert("部分盖章成功!!!");
}
location.reload();
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -196,6 +196,7 @@
$("#ZONE").attr("ReadOnly","true");
}
if("şĎÍŹÖĆ×÷Á÷łĚ"=="<%=flowName%>"||"şĎÍŹąä¸üÁ÷łĚ"=="<%=flowName%>"){
setItemRequired(0,"FRAME_NUMBER",true);
setItemRequired(0,"CAR_COLOUR",true);
setItemRequired(0,"ENGINE_NUMBER",true);
@ -211,6 +212,7 @@
setItemReadOnly(0,0,"MANUFACTURER_NAME",true);
setItemReadOnly(0,0,"LICENSE_PLATE_NUMBER",true);
setItemReadOnly(0,0,"EXPIRYDATE",true);
setItemReadOnly(0,0,"CAR_USE_TYPE",true);
$("#BRAND ~ a").remove();
$("#CAR_SERIES ~ a").remove();
$("#MODEL ~ a").remove();

View File

@ -33,6 +33,7 @@
doTemp.setHtmlEvent("CERTID","onChange","checkCertidRepeat");
doTemp.setHtmlEvent("CERTTYPE","onChange","changeCertType");
doTemp.setHtmlEvent("certid","onChange","ValidityCheck");
doTemp.setHtmlEvent("IDEXPIRY_TYPE","onChange","changeIdexpiryType");
// doTemp.setHtmlEvent("certtype","onChange", "setSexRead");
// doTemp.setDefaultValue("DATA_STATE", "guarantee");//标记该数据是担保人信息
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
@ -46,22 +47,174 @@
sButtonPosition = "north";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
var mobile = getItemValue(0,getRow(),"MOBILE");
var mobileResult = checkMobileAll(mobile);
if(mobileResult=="6"){
$("#MOBILE").css("color","red");
}
var certResult = checkCertIdAll();
if(certResult=="4"){
//$("#FULLNAME").attr("style","color:red;");
$("#CERTID").css("color","red");
}
}
$("#ID_ADDRESS").css("width",$("#ID_ADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#ID_ADDRESS").attr("ReadOnly","true");
$("#ADDRESS").css("width",$("#ADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#ADDRESS").attr("ReadOnly","true");
$("#WORKADD").css("width",$("#WORKADD").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#WORKADD").attr("ReadOnly","true");
//页面初始化的时候,判断证件有效期类型,默认为短期
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if(idexpiry_type==""){
$("#IDEXPIRY_TYPE_0").prop("checked", "checked");
}
changeIdexpiryType();
});
function changeIdexpiryType(){
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if("1" == idexpiry_type){//短期
setItemReadOnly(0,0,"IDEXPIRY",false);
var idexpiry = getItemValue(0,0,"IDEXPIRY");
if("0000" == idexpiry){
setItemValue(0,0,"IDEXPIRY","");
}
}else {
setItemReadOnly(0,0,"IDEXPIRY",true);
setItemValue(0,0,"IDEXPIRY","2100/12/31");
}
}
function selectPersonContacts(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,personContact","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"ASSURE_RELATION",sReturn[1]);
},"请选择与承租人关系");
}
function selectDuties(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,duties","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"TITLE",sReturn[1]);
},"请选择职务");
}
// 风控中台对接相关代码 单位地址
function selectWorkAddress(){
let workAddressId = getItemValue(0,0,"work_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"work_address_id",result.split("@")[0]);
setItemValue(0,0,"work_address_code",result.split("@")[1]);
setItemValue(0,0,"WORKADD",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"单位地址");
}
// 风控中台对接相关代码 户籍地址
function selectIdAddress(){
let workAddressId = getItemValue(0,0,"id_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"id_address_id",result.split("@")[0]);
setItemValue(0,0,"id_address_code",result.split("@")[1]);
setItemValue(0,0,"id_address",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"户籍地址");
}
// 风控中台对接相关代码 居住地址
function selectLiveAddress(){
let workAddressId = getItemValue(0,0,"live_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"live_address_id",result.split("@")[0]);
setItemValue(0,0,"live_address_code",result.split("@")[1]);
setItemValue(0,0,"ADDRESS",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"居住地址");
}
changeCertType();
function changeCertType(){
var certType = getItemValue(0,getRow(0),"CERTTYPE");
//"MOBILE","ADDRESS", 去除电话及地址的隐藏 20200821
var arr=["SEX","Marital_status","PROPERTY_TYPE","OTHER_INCOME","TITLE","WORKADD","WORKCORP","WORKTEL"];
// var arr=["SEX","Marital_status","PROPERTY_TYPE","OTHER_INCOME","TITLE","WORKADD","WORKCORP","WORKTEL"];
var arr=["SEX","MARITAL_STATUS","PROPERTY_TYPE","OTHER_INCOME","TITLE","WORKADD","WORKCORP","WORKTEL"
,"BIRTHDAY"
,"IDEXPIRY"
,"NATION"
,"ID_ADDRESS"
,"CHILDRENS_NUMBER"
,"RESIDENTIAL_STATUS"
,"EDUCATION_LEVEL"
,"INDUSTRY_TYPE"
,"ENTERPRISE_NATURE"
,"CAREER_TYPE"
,"MAJOR_MONTHLY_INCOME"
,"MONTHLY_EXPENSES"
,"IDEXPIRY_TYPE"
,"SHUKOU"
];
var arrRequired=["SEX","MARITAL_STATUS","TITLE","WORKADD","WORKCORP","WORKTEL"
,"BIRTHDAY"
,"IDEXPIRY"
,"NATION"
,"ID_ADDRESS"
,"CHILDRENS_NUMBER"
,"RESIDENTIAL_STATUS"
,"EDUCATION_LEVEL"
,"INDUSTRY_TYPE"
,"ENTERPRISE_NATURE"
,"CAREER_TYPE"
,"MAJOR_MONTHLY_INCOME"
,"MONTHLY_EXPENSES"
,"START_IDEXPIRY"
,"IDEXPIRY_TYPE"
,"SHUKOU"
];
if(certType=="Ent02"){
hideItemRequired(0,"SEX");
//hideItemRequired(0,"MOBILE");
showItemRequired(0, "LEGAL_REPRESENTATIVE");
showItem(0, "LEGAL_REPRESENTATIVE");
for(var i=0;i<arrRequired.length;i++){
hideItemRequired(0,arrRequired[i]);
}
for(var i=0;i<arr.length;i++){
hideItem(0,arr[i]);
setItemValue(0,0,arr[i],"");
}
}else{
showItemRequired(0,"SEX");
showItemRequired(0,"MOBILE");
showItemRequired(0,"ADDRESS");
hideItemRequired(0, "LEGAL_REPRESENTATIVE");
hideItem(0, "LEGAL_REPRESENTATIVE");
setItemValue(0,0,"LEGAL_REPRESENTATIVE","");
for(var i=0;i<arrRequired.length;i++){
showItemRequired(0,arrRequired[i]);
}
for(var i=0;i<arr.length;i++){
showItem(0,arr[i]);
}
@ -83,7 +236,7 @@
var certId = getItemValue(0,getRow(0),"CERTID");
if(certType==""){
//setErrorTips("certType","证件类型不能为空!");
// alert("证件类型不能为空!");
alert("证件类型不能为空!");
return true;
}
if(certId==""){
@ -109,7 +262,7 @@
return true;
}else{
//setErrorTips("certId","身份证格式不正确!");
alert("身份证格式错误!");
alert("身份证格式错误!");
return false;
}
}
@ -263,21 +416,7 @@
}
return true;
}
$(function(){
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
var mobile = getItemValue(0,getRow(),"MOBILE");
var mobileResult = checkMobileAll(mobile);
if(mobileResult=="6"){
$("#MOBILE").css("color","red");
}
var certResult = checkCertIdAll();
if(certResult=="4"){
//$("#FULLNAME").attr("style","color:red;");
$("#CERTID").css("color","red");
}
}
})
function checkMobileAll(mobile){//检验所有手机号
var sParams = "mobile="+mobile+",flowunid="+"<%=sFlowUnid%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkTel",sParams);

View File

@ -56,7 +56,7 @@
$("#myiframe0_float_div table").css("width","100%");
$("#myiframe0_cells table").css("width","100%");
})
function checkGuaranteeUnit(){
var sParams = "flowunid="+"<%=sFlowUnid%>";
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CheckGuaranteeUnit","CheckGuaranteeUnitCount",sParams);

View File

@ -1,6 +1,7 @@
<%@page import="java.lang.Integer"%>
<%@page import="java.lang.Double"%>
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
<%@ page import="jbo.oti.RC_SCORE_RESULT" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
@ -46,6 +47,19 @@
}else{
isShowButton=true;
}
String fraud_alert_code = "";
String fraud_taken_code = "";
String score_result_code = "";
BizObject rcScoreResultBiz = JBOFactory.createBizObjectQuery(RC_SCORE_RESULT.CLASS_NAME,"flow_no=:flow_no").setParameter("flow_no", flowunid).getSingleResult(false);
if(null != rcScoreResultBiz){
// 反欺诈预警结果H、S、C
fraud_alert_code = null == rcScoreResultBiz.getAttribute("fraud_alert_code") ? "" : rcScoreResultBiz.getAttribute("fraud_alert_code").toString();
// 反欺诈判定结果F、K、S、空
fraud_taken_code = null == rcScoreResultBiz.getAttribute("fraud_taken_code") ? "" : rcScoreResultBiz.getAttribute("fraud_taken_code").toString();
// 评分结果 AA RR RD DD
score_result_code = null == rcScoreResultBiz.getAttribute("score_result_code") ? "" : rcScoreResultBiz.getAttribute("score_result_code").toString();
}
//复审意见展示
if("业务申请流程".equals(flowName)&&("0040".equals(phaseNo)||"0050".equals(phaseNo)||"0060".equals(phaseNo)||"0070".equals(phaseNo)||"0080".equals(phaseNo))){
@ -470,8 +484,75 @@
$("#A_Group_0040").attr("style","display:none;");
$("#A_Group_0030").attr("style","display:none;");
}
// 评分结果 AA RR RD DD
var score_result_code = "<%=score_result_code%>";
if("" == score_result_code || ("AA" != score_result_code && "DD" != score_result_code)){
return;
}
var choiceCodeScoreDefault = null;
var opinionCodeScoreDefault = null;
var attributeCodeScoreDefault = null;
// 评分结果 AA 自动通过
if("AA" == score_result_code){
choiceCodeScoreDefault = "0020";
opinionCodeScoreDefault = "0070";
attributeCodeScoreDefault = "2";//通过枚举
}else if("DD" == score_result_code){// 评分结果 DD 自动拒绝
choiceCodeScoreDefault = "0010";
opinionCodeScoreDefault = "0060";
attributeCodeScoreDefault = "1";//拒绝枚举
}
switch('<%=phaseNo%>') {
case '0030'://初审
setItemValue(0,0,"FIRSTCHOICE",choiceCodeScoreDefault);
setItemRequired(0,"FIRSTOPINION",true);
$("#FIRSTOPINION").removeAttr("disabled");
defaultRcScoreResult("FIRSTOPINION", opinionCodeScoreDefault, attributeCodeScoreDefault);
setItemValue(0,0,"FIRSTOPINION",opinionCodeScoreDefault);
setItemReadOnly(0,0,"FIRSTCHOICE",true);
setItemReadOnly(0,0,"FIRSTOPINION",true);
break;
case '0040'://复审
setItemValue(0,0,"SECONDCHOICE",choiceCodeScoreDefault);
setItemRequired(0,"SECONDOPINION",true);
$("#SECONDOPINION").removeAttr("disabled");
defaultRcScoreResult("SECONDOPINION", opinionCodeScoreDefault, attributeCodeScoreDefault);
setItemValue(0,0,"SECONDOPINION",opinionCodeScoreDefault);
setItemReadOnly(0,0,"SECONDCHOICE",true);
setItemReadOnly(0,0,"SECONDOPINION",true);
break;
case '0050'://大于20万复审
setItemValue(0,0,"SECONDCHOICE",choiceCodeScoreDefault);
setItemRequired(0,"SECONDOPINION",true);
$("#SECONDOPINION").removeAttr("disabled");
defaultRcScoreResult("SECONDOPINION", opinionCodeScoreDefault, attributeCodeScoreDefault);
setItemValue(0,0,"SECONDOPINION",opinionCodeScoreDefault);
setItemReadOnly(0,0,"SECONDCHOICE",true);
setItemReadOnly(0,0,"SECONDOPINION",true);
break;
case '0060'://信审
setItemValue(0,0,"THIRDCHOICE",choiceCodeScoreDefault);
setItemRequired(0,"THIRDOPINION",true);
$("#THIRDOPINION").removeAttr("disabled");
defaultRcScoreResult("THIRDOPINION", opinionCodeScoreDefault, attributeCodeScoreDefault);
setItemValue(0,0,"THIRDOPINION",opinionCodeScoreDefault);
setItemReadOnly(0,0,"THIRDCHOICE",true);
setItemReadOnly(0,0,"THIRDOPINION",true);
break;
}
})
function defaultRcScoreResult(selectOpinion, selectOpinionValue, attribute){
AsControl.RunJsp('/Tenwa/Lease/Flow/Project/BusinessApplication/GetApplyNameSelected.jsp',
'codeno=disagreeOP&attribute1='+attribute+'&selectOpinion='+selectOpinionValue,function(sReturn){
if("FALSE"!=allTrim(sReturn)){
var sReturn = lTrim(sReturn);
sReturn = rTrim(sReturn);
$('#'+selectOpinion).children().remove();
$('#'+selectOpinion).append(sReturn);
}
});
}
function checkCertId(){//校验证件号
var customerType = "03";
//var customerName = getItemValue(0,getRow(),"CustomerName");
@ -547,48 +628,53 @@
setItemValue(0,0,"secondopinion","");
var secondchoice = getItemValue(0,0,"secondchoice");
var attribute1="";
if(secondchoice==""){
setItemRequired(0,"InterOpinion2",false);
// 复审意见 为 信息为空时
if(secondchoice==""){ // 信息为空时
setItemRequired(0,"InterOpinion2",false);//复审内部意见
//setItemRequired(0,"DistriOpinion2",false);
$("#SECONDOPINION").removeAttr("disabled");
$("#SECONDOPINION").removeAttr("disabled");//复审-信审意见
}
if(secondchoice=="0020"){
setItemRequired(0,"InterOpinion2",true);
// 复审意见 为 建议通过时
if(secondchoice=="0020"){ //建议通过时
setItemRequired(0,"InterOpinion2",true);//复审内部意见
//setItemRequired(0,"DistriOpinion2",false);
$("#SECONDOPINION").removeAttr("disabled");
var obj=document.getElementById('SECONDOPINION');
$("#SECONDOPINION").removeAttr("disabled");//复审-信审意见
var obj=document.getElementById('SECONDOPINION');//复审-信审意见
/* for(var i=0;i<7;i++){
obj.options[i].style.display = "none";
}
obj.options[7].style.display = "block"; */
attribute1="2";
}
// 复审意见 为 建议拒绝时
if(secondchoice=="0010"){
setItemRequired(0,"A_div_1240",true);
setItemRequired(0,"InterOpinion2",false);
setItemRequired(0,"InterOpinion2",false);//复审内部意见
//setItemRequired(0,"DistriOpinion2",true);
$("#SECONDOPINION").removeAttr("disabled");
var obj=document.getElementById('SECONDOPINION');
$("#SECONDOPINION").removeAttr("disabled");//复审-信审意见
var obj=document.getElementById('SECONDOPINION'); //复审-信审意见
/* for(var i=0;i<7;i++){
obj.options[i].style.display = "block";
}
obj.options[7].style.display = "none"; */
attribute1="1";
}
// 复审意见 为 建议附条件时
if(secondchoice=="0030"){
setItemRequired(0,"InterOpinion2",false);
setItemRequired(0,"InterOpinion2",false);//复审内部意见
//setItemRequired(0,"DistriOpinion2",true);
setItemRequired(0,"secondopinion",true);
$("#SECONDOPINION").removeAttr("disabled");
setItemRequired(0,"secondopinion",true);//复审-信审意见
$("#SECONDOPINION").removeAttr("disabled");//复审-信审意见
// $("#SECONDOPINION").attr("disabled","disabled");
var obj=document.getElementById('SECONDOPINION');
var obj=document.getElementById('SECONDOPINION'); //复审-信审意见
attribute1="3";
}
}
// 复审意见 为 退回经销商SP
if(secondchoice=="0040"||secondchoice=="0060"){
setItemRequired(0,"InterOpinion2",false);
setItemRequired(0,"InterOpinion2",false);//复审内部意见
//setItemRequired(0,"DistriOpinion2",true);
// setItemValue(0,0,"secondopinion","");
$("#SECONDOPINION").attr("disabled","disabled");
$("#SECONDOPINION").attr("disabled","disabled");//复审-信审意见
attribute1="";
}
AsControl.RunJsp('/Tenwa/Lease/Flow/Project/BusinessApplication/GetApplyName.jsp','codeno=disagreeOP&attribute1='+attribute1,function(sReturn){
@ -669,8 +755,68 @@
}
function checkOpinion(scoreDefaultResultChoice){
// 评分结果 AA RR RD DD
var score_result_code = "<%=score_result_code%>";
// 反欺诈判定结果F、K、S、空
var fraud_taken_code = "<%=fraud_taken_code%>";
// 反欺诈预警结果H、S、C
var fraud_alert_code = "<%=fraud_alert_code%>";
var scoreDefaultResultChoiceValue = getItemValue(0, 0, scoreDefaultResultChoice);
if("AA" == score_result_code || "DD" == score_result_code){// AA 、 DD 异常提醒
if("AA" == score_result_code && "0020" != scoreDefaultResultChoiceValue){
AsDebug.alert("警告","请确认评分结果,当前评分结果为 AA审批意见只能为通过");
return true;
}
if("DD" == score_result_code && "0010" != scoreDefaultResultChoiceValue){
AsDebug.alert("警告","请确认评分结果,当前评分结果为 DD审批意见只能为拒绝");
return true;
}
}else { // RR RD 情况下, 反欺诈判定结果为 K 、 S时不允许通过
if(("K" == fraud_taken_code || "S" == fraud_taken_code) && "0010" != scoreDefaultResultChoiceValue){
AsDebug.alert("警告","请确认评分结果与反欺诈判定结果,当前订单建议审批意见为拒绝!");
return true;
}
}
return false;
}
function save(){
// 评分结果 AA RR RD DD
var score_result_code = "<%=score_result_code%>";
// 反欺诈判定结果F、K、S、空
var fraud_taken_code = "<%=fraud_taken_code%>";
// 反欺诈预警结果H、S、C
var fraud_alert_code = "<%=fraud_alert_code%>";
if("" == score_result_code){
AsDebug.alert("警告","请先获取评分结果!");
return;
}
if(("RR" == score_result_code || "RD" == score_result_code) && "" == fraud_taken_code && "C" != fraud_alert_code ){
AsDebug.alert("警告","请先获取反欺诈判定结果!");
return;
}
if("<%=phaseNo%>" == "0030"){//初审
if(checkOpinion("FIRSTCHOICE")){
return;
}
}else if("<%=phaseNo%>" == "0040"){//复审
if(checkOpinion("SECONDCHOICE")){
return;
}
}else if("<%=phaseNo%>" == "0050"){//大于20万复审
if(checkOpinion("SECONDCHOICE")){
return;
}
}else if("<%=phaseNo%>" == "0060") {//信审
if(checkOpinion("THIRDCHOICE")){
return;
}
}
var updatedFields = DisplayFields[0];
if(iV_all(0)){
document.getElementById("messageBox").style.display='none';

View File

@ -58,21 +58,22 @@
dwTemp.Style = "2";//freeform
dwTemp.setGroupHidden("0020");
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"500px\" frameborder=\"0\" src=\""+sWebRootPath+userll+compClientID+"&sPhaseNo="+sPhaseNo+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"1200px\" frameborder=\"0\" src=\""+sWebRootPath+userll+compClientID+"&sPhaseNo="+sPhaseNo+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"ReadOnly".equals(rightType)?"false":"true","","Button","±£´æ","±£´æ","save()","","","","btn_icon_saveNew",""},
{"true","","Button","栗죕헌데","栗죕헌데","openFileList()","","","","btn_icon_saveNew",""}
{"true","","Button","资料清单","资料清单","openFileList('1')","","","","btn_icon_saveNew",""},
{("BusinessApplyFlow".equals(FlowNo)||"BusinessChangeFlow".equals(FlowNo))&&("0030".equals(sPhaseNo)||"0040".equals(sPhaseNo)||"0050".equals(sPhaseNo)||"0060".equals(sPhaseNo)||"0070".equals(sPhaseNo))?"true":"false","","Button","信审资料","信审资料","openFileList('2')","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
//혼뇜淃커<E6B783>툽斤口켜였湳駕
$("#PROJECT_NO").parent().find(".info_span").remove();
$("#PRODUCT_NAME").parent().find(".info_span").remove();
$("#LEAS_FORM").parent().find(".info_span").remove();
$(".info_td_left").css("width","150px");
$(".info_mid_line").css("width","50%");
//去除项目审批信息难看样式
})
function save(){
@ -175,9 +176,12 @@
}
}
function openFileList(){
function openFileList(type){
let url = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestUrl","");
let params = getRequestParam();
if(type==2){
params = getRequestParamOfCredit();
}
if(params!=null){
AsControl.postICMS(url,params);
}
@ -208,6 +212,21 @@
let param = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestParam","appCode="+appCode+",appName="+appName+",code="+code+",busiNo="+busiNo+",userCode=<%=userId%>"+",userName=<%=userName%>"+",identity="+identity+",customerName="+customerName);
return param;
}
function getRequestParamOfCredit(){
let code = 'ECM0002';
if(("<%=FlowNo%>"=="BusinessApplyFlow"||"<%=FlowNo%>"=="BusinessChangeFlow")&&("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"||"0070"=="<%=sPhaseNo%>")&&"ReadOnly"!="<%=rightType%>"){
code = 'ECM0001';
}
let busiNo="<%=projectNo%>";
if(busiNo==null||busiNo==""||busiNo=="null"){
busiNo = RunJavaMethod("com.ample.icms.util.GetInfoUtil", "getProjectNoByFlowUnidRJM", "flowUnid=<%=sFlowUnid%>");
}
let identity = $("#frame_list")[0].contentWindow.getIdentity();
let customerName = $("#frame_list")[0].contentWindow.getCustomerName();
let param = RunJavaMethod("com.ample.icms.query.ImageQuery","getRequestParam","appCode=AZPLGPA,appName=信审专属资料,code="+code+",busiNo="+busiNo+",userCode=<%=userId%>"+",userName=<%=userName%>"+",identity="+identity+",customerName="+customerName);
return param;
}
</script>

View File

@ -35,6 +35,7 @@
doTemp.setHtmlEvent("certtype", "onChange", "setSexRead");
doTemp.setHtmlEvent("certid","onChange","ValidityCheck");
doTemp.setHtmlEvent("CERTTYPE","onChange","checkCertidSex");
doTemp.setHtmlEvent("IDEXPIRY_TYPE","onChange","changeIdexpiryType");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
@ -64,10 +65,23 @@
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
$("#ID_ADDRESS").css("width",$("#ID_ADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#ID_ADDRESS").attr("ReadOnly","true");
$("#WORKUNIT").css("width",$("#WORKUNIT").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#WORKUNIT").attr("ReadOnly","true");
$("#WORK_ADDRESS").css("width",$("#WORK_ADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#WORK_ADDRESS").attr("ReadOnly","true");
var spouse = getItemValue(0,0,"Spouse_");
if("Y"==spouse){
$("#ASSURE_RELATION").val("Åäż");
document.getElementById("ASSURE_RELATION").readOnly=true;
// $("#ASSURE_RELATION").val("配偶");
// document.getElementById("ASSURE_RELATION").readOnly=true;
setItemReadOnly(0,0,"ASSURE_RELATION",true);
setItemReadOnly(0,0,"MARRY_TYPE",true);
setItemReadOnly(0,0,"CHILDRENS_NUMBER",true);
setItemReadOnly(0,0,"CERTID",true);
setItemReadOnly(0,0,"NAME",true);
setItemReadOnly(0,0,"CERTTYPE",true);
setItemReadOnly(0,0,"SEX",true);
}
if("0030"=="<%=sPhaseNo%>" ||"0040"=="<%=sPhaseNo%>"||"0050"=="<%=sPhaseNo%>"||"0060"=="<%=sPhaseNo%>"|| ("0070"=="<%=sPhaseNo%>" && "false"=="<%=IsHistory%>")){//经销商阶段看不见标红,初审、复审、信审可以标红
var mobile = getItemValue(0,getRow(),"TEL");
@ -87,7 +101,53 @@
if("Ind01"==certType){
setItemReadOnly(0,0,"SEX",true);
}
})
//页面初始化的时候,判断证件有效期类型,默认为短期
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if(idexpiry_type==""){
$("#IDEXPIRY_TYPE_0").prop("checked", "checked");
}
changeIdexpiryType();
});
function changeIdexpiryType(){
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if("1" == idexpiry_type){//短期
setItemReadOnly(0,0,"IDEXPIRY",false);
var idexpiry = getItemValue(0,0,"IDEXPIRY");
if("0000" == idexpiry){
setItemValue(0,0,"IDEXPIRY","");
}
}else {
setItemReadOnly(0,0,"IDEXPIRY",true);
setItemValue(0,0,"IDEXPIRY","2100/12/31");
}
}
function selectDuties(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,duties","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"SPOSITION",sReturn[1]);
},"请选择职务");
}
function selectPersonContacts(){
var spouse = getItemValue(0,0,"Spouse_");
if("Y"==spouse){
alert("请前往申请人信息页面修改婚姻状况!");
return;
}
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,personContact","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"ASSURE_RELATION",sReturn[1]);
},"请选择与承租人关系");
}
function setSexRead(){
var certtye=getItemValue(0,getRow(0),"certtype");
if("Ind01"==certtye){
@ -98,6 +158,60 @@
$('#SEX_2').attr("disabled",false); //女
}
}
// 风控中台对接相关代码 单位地址
function selectWorkAddress(){
let workAddressId = getItemValue(0,0,"work_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"work_address_id",result.split("@")[0]);
setItemValue(0,0,"work_address_code",result.split("@")[1]);
setItemValue(0,0,"work_address",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"单位地址");
}
// 风控中台对接相关代码 户籍地址
function selectIdAddress(){
let workAddressId = getItemValue(0,0,"id_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"id_address_id",result.split("@")[0]);
setItemValue(0,0,"id_address_code",result.split("@")[1]);
setItemValue(0,0,"id_address",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"户籍地址");
}
// 风控中台对接相关代码 居住地址
function selectLiveAddress(){
let workAddressId = getItemValue(0,0,"live_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"live_address_id",result.split("@")[0]);
setItemValue(0,0,"live_address_code",result.split("@")[1]);
setItemValue(0,0,"workunit",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"居住地址");
}
function checkCertId(){//校验共同申请人证件号格式
var certId = getItemValue(0,getRow(0),"certid");
var certtype = getItemValue(0,getRow(0),"CERTTYPE");
@ -169,7 +283,10 @@
var customerType = "03";
var tel = getItemValue(0,getRow(),"tel");
var id = getItemValue(0,getRow(),"id");
var sParams = "certId="+id+",mobile="+tel+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>";
var certid = getItemValue(0,getRow(),"certid");
var fullname = getItemValue(0,getRow(),"name");
var sParams = "certId="+id+",mobile="+tel+",customerType="+customerType+",flowunid="+"<%=FlowUnid%>"
+",certid="+certid +",FULLNAME="+fullname;
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkMobileRepeat",sParams);
if("SUCCESS"!=sReturnInfo){
//setErrorTips("tel","该手机号已重复!");

View File

@ -12,6 +12,10 @@
String IsHistory = CurPage.getParameter("IsHistory");
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
String marriage = Sqlca.getString("select MARRIAGE from CUSTOMER_PERSON_TEMP where flowunid='"+flowunid+"'");
String childrensNumber = Sqlca.getString("select CHILDRENS_NUMBER from CUSTOMER_PERSON_TEMP where flowunid='"+flowunid+"'");
System.out.println("flowunid=" + flowunid);
System.out.println("marriage=" + marriage);
System.out.println("childrensNumber=" + childrensNumber);
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "CustomerFamilyTempInfo";//--模板号--
@ -21,6 +25,7 @@
doTemp.setHtmlEvent("certtype","onChange", "setSexRead");
doTemp.setHtmlEvent("sex","onChange","checkSex");
doTemp.setHtmlEvent("certid","onChange","ValidityCheck");
doTemp.setHtmlEvent("IDEXPIRY_TYPE","onChange","changeIdexpiryType");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
@ -31,6 +36,12 @@
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function(){
$("#ID_ADDRESS").css("width",$("#ID_ADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");//户籍地址
$("#ID_ADDRESS").attr("ReadOnly","true");
$("#WORKUNIT").css("width",$("#WORKUNIT").parent().parent().parent().parent()[0].clientWidth/2+200+"px");//居住地址
$("#WORKUNIT").attr("ReadOnly","true");
$("#WORK_ADDRESS").css("width",$("#WORK_ADDRESS").parent().parent().parent().parent()[0].clientWidth/2+200+"px");//单位地址
$("#WORK_ADDRESS").attr("ReadOnly","true");
if("<%=marriage%>"=="01"){//已婚时,设置必填,显示配偶页面
changeFamilyRequiredTrue(<%=marriage%>);
$("#A_Group_0030").attr("style","display:block;");
@ -55,7 +66,104 @@
$("#CERTID").css("color","red");
}
}
//页面初始化的时候,判断证件有效期类型,默认为短期
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if(idexpiry_type==""){
$("#IDEXPIRY_TYPE_0").prop("checked", "checked");
}
changeIdexpiryType();
//页面初始化的时候,判断证件有效期类型,默认为短期
var partner_ = getItemValue(0,0,"PARTNER_");
if(partner_==""){
setItemValue(0,0,"Partner_","N");
}
changePartner();
});
function changeIdexpiryType(){
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if("1" == idexpiry_type){//短期
setItemReadOnly(0,0,"IDEXPIRY",false);
var idexpiry = getItemValue(0,0,"IDEXPIRY");
if("0000" == idexpiry){
setItemValue(0,0,"IDEXPIRY","");
}
}else {
setItemReadOnly(0,0,"IDEXPIRY",true);
setItemValue(0,0,"IDEXPIRY","2100/12/31");
}
}
function selectDuties(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,duties","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"SPOSITION",sReturn[1]);
},"请选择职务");
}
// 风控中台对接相关代码 单位地址
function selectWorkAddress(){
let workAddressId = getItemValue(0,0,"work_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
// alert("单位地址:" + result);
setItemValue(0,0,"WORK_ADDRESS_ID",result.split("@")[0]);
setItemValue(0,0,"WORK_ADDRESS_CODE",result.split("@")[1]);
setItemValue(0,0,"WORK_ADDRESS",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"单位地址");
}
// 风控中台对接相关代码 户籍地址
function selectIdAddress(){
let workAddressId = getItemValue(0,0,"id_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
// alert("户籍地址:" + result);
setItemValue(0,0,"ID_ADDRESS_ID",result.split("@")[0]);
setItemValue(0,0,"ID_ADDRESS_CODE",result.split("@")[1]);
setItemValue(0,0,"ID_ADDRESS",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"户籍地址");
}
// 风控中台对接相关代码 居住地址
function selectLiveAddress(){
let workAddressId = getItemValue(0,0,"live_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
// alert("居住地址:" + result);
setItemValue(0,0,"LIVE_ADDRESS_ID",result.split("@")[0]);
setItemValue(0,0,"LIVE_ADDRESS_CODE",result.split("@")[1]);
setItemValue(0,0,"WORKUNIT",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"居住地址");
}
function setSexRead(){
var certtye=getItemValue(0,getRow(0),"certtype");
if("Ind01"==certtye){
@ -137,8 +245,12 @@
}
}
function changeFamilyRequiredTrue(marriage){//设置配偶信息必填
function changeFamilyRequiredTrue(marriage, childrensNumber){//设置配偶信息必填
// alert("changeFamilyRequiredTrue marriage=" +marriage);
// alert("changeFamilyRequiredTrue changeChildrensNumber=" +childrensNumber);
setItemValue(0,0,"status",marriage);//把父页面婚姻状况存入状态字段
setItemValue(0,0,"MARRY_TYPE",marriage);
setItemValue(0,0,"CHILDRENS_NUMBER",childrensNumber);
setItemRequired(0,"name",true);
setItemRequired(0,"certid",true);
setItemRequired(0,"tel",true);
@ -151,8 +263,12 @@
setItemRequired(0,"workunit",true);
setItemRequired(0,"SEX",true);
}
function changeFamilyRequiredFalse(marriage){//设置配偶信息不必填
function changeFamilyRequiredFalse(marriage, childrensNumber){//设置配偶信息必填
// alert("changeFamilyRequiredFalse marriage=" +marriage);
// alert("changeFamilyRequiredFalse changeChildrensNumber=" +childrensNumber);
setItemValue(0,0,"status",marriage);//把父页面婚姻状况存入状态字段
setItemValue(0,0,"MARRY_TYPE",marriage);
setItemValue(0,0,"CHILDRENS_NUMBER",childrensNumber);
setItemRequired(0,"name",false);
setItemRequired(0,"certid",false);
setItemRequired(0,"tel",false);
@ -183,9 +299,78 @@
return;
}
}
}
var arrRequired=[
"IDEXPIRY",
"NATION",
"EDUCATION_LEVEL",
"WORK_ADDRESS",
"ID_ADDRESS",
"ENTERPRISE_NATURE",
"INDUSTRY_TYPE",
"CAREER_TYPE",
"MONTHLY_EXPENSES",
"WORK_ADDRESS_CODE",
"WORK_ADDRESS_ID",
"LIVE_ADDRESS_CODE",
"LIVE_ADDRESS_ID",
"ID_ADDRESS_CODE",
"RESIDENTIAL_STATUS",
"ID_ADDRESS_ID",
"BIRTHDAY",
"START_IDEXPIRY",
"IDEXPIRY_TYPE"
];
if(partner=="Y"){
for(var i=0;i<arrRequired.length;i++){
showItemRequired(0,arrRequired[i]);
}
for(var i=0;i<arrRequired.length;i++){
showItem(0,arrRequired[i]);
}
}else {
for(var i=0;i<arrRequired.length;i++){
hideItemRequired(0,arrRequired[i]);
}
for(var i=0;i<arrRequired.length;i++){
hideItem(0,arrRequired[i]);
setItemValue(0,0,arrRequired[i],"");
}
}
}
/**
* 作为共同申请人需做的校验
*/
function checkPartnerPerson(){
// alert(1234);
// alert("partner=" + getItemValue(0,getRow(0),"PARTNER_"));
// alert("partner2=" + getItemValue(0,getRow(0),"Partner_"));
if("Y" != getItemValue(0,getRow(0),"PARTNER_")){
return false;
}
if("" == getItemValue(0,0,"IDEXPIRY")){alert("请输入配偶的有效期结束日");return true;}
if("" == getItemValue(0,0,"NATION")){alert("请输入配偶的民族");return true;}
if("" == getItemValue(0,0,"EDUCATION_LEVEL")){alert("请输入配偶的最高学历");return true;}
if("" == getItemValue(0,0,"WORK_ADDRESS")){alert("请输入配偶的工作地址");return true;}
if("" == getItemValue(0,0,"ID_ADDRESS")){alert("请输入配偶的户籍地址");return true;}
if("" == getItemValue(0,0,"ENTERPRISE_NATURE")){alert("请输入配偶的单位性质");return true;}
if("" == getItemValue(0,0,"INDUSTRY_TYPE")){alert("请输入配偶的单位类型");return true;}
if("" == getItemValue(0,0,"CAREER_TYPE")){alert("请输入配偶的职业类型");return true;}
if("" == getItemValue(0,0,"MONTHLY_EXPENSES")){alert("请输入配偶的月支出");return true;}
if("" == getItemValue(0,0,"WORK_ADDRESS_CODE")){alert("请输入配偶的工作地址");return true;}
if("" == getItemValue(0,0,"WORK_ADDRESS_ID")){alert("请输入配偶的工作地址");return true;}
if("" == getItemValue(0,0,"LIVE_ADDRESS_CODE")){alert("请输入配偶的居住地址2");return true;}
if("" == getItemValue(0,0,"LIVE_ADDRESS_ID")){alert("请输入配偶的居住地址3");return true;}
if("" == getItemValue(0,0,"ID_ADDRESS_CODE")){alert("请输入配偶的户籍地址");return true;}
if("" == getItemValue(0,0,"RESIDENTIAL_STATUS")){alert("请输入配偶的居住状况");return true;}
if("" == getItemValue(0,0,"ID_ADDRESS_ID")){alert("请输入配偶的户籍地址");return true;}
if("" == getItemValue(0,0,"BIRTHDAY")){alert("请输入配偶的出生日期");return true;}
if("" == getItemValue(0,0,"START_IDEXPIRY")){alert("请输入配偶的有效期开始日");return true;}
if("" == getItemValue(0,0,"IDEXPIRY_TYPE")){alert("请输入配偶的有效期类型");return true;}
}
function save(){//保存配偶信息
<%--setItemValue(0,0,"MARRY_TYPE","<%=marriage%>");--%>
<%--setItemValue(0,0,"CHILDRENS_NUMBER","<%=childrensNumber %>");--%>
var marriage=parent.getItemValue(0,0,"MARRIAGE");
var status = getItemValue(0,0,"status");//获取父页面婚姻状况
var name = getItemValue(0,0,"name");
@ -252,6 +437,9 @@
if(!checkCertidRepeat()){
return;
}
if(checkPartnerPerson()){
return ;
}
}
if(name.length > 0){
@ -304,8 +492,31 @@
}
}
if("01"==marriage){
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily",
"relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,projectId=<%=projectId%>,certid="+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel")+",suname="+getItemValue(0,0,"suname")+",partner="+getItemValue(0,getRow(0),"Partner_")+",sposition="+getItemValue(0,getRow(0),"sposition")+",suphone="+getItemValue(0,getRow(0),"suphone")+",smincome="+getItemValue(0,getRow(0),"smincome")+",shukou="+getItemValue(0,getRow(0),"shukou")+",workunit="+getItemValue(0,getRow(0),"workunit")+",sex="+getItemValue(0,getRow(0),"SEX"));
var saveCustomerFamilyParam = "relative=01,status=valid,customerid=<%=customerid%>,flowunid=<%=flowunid%>,projectId=<%=projectId%>,certid="
+getItemValue(0,0,"certid")+",name="+getItemValue(0,0,"name")+",tel="+getItemValue(0,0,"tel")+",suname="
+getItemValue(0,0,"suname")+",partner="+getItemValue(0,getRow(0),"Partner_")+",sposition="
+getItemValue(0,getRow(0),"sposition")+",suphone="+getItemValue(0,getRow(0),"suphone")+",smincome="
+getItemValue(0,getRow(0),"smincome")+",shukou="+getItemValue(0,getRow(0),"shukou")+",workunit="
+getItemValue(0,getRow(0),"workunit")+",sex="+getItemValue(0,getRow(0),"SEX");
if(partner=="Y"){
// alert("------------------------>saveCustomerFamilyParam--->CHILDRENS_NUMBER=" +getItemValue(0,0,"CHILDRENS_NUMBER"));
saveCustomerFamilyParam += ",idexpiry=" + getItemValue(0,0,"IDEXPIRY") + ",nation=" + getItemValue(0,0,"NATION")
+",educationLevel=" + getItemValue(0,0,"EDUCATION_LEVEL") + ",workAddress=" + getItemValue(0,0,"WORK_ADDRESS")
+",idAddress=" + getItemValue(0,0,"ID_ADDRESS") + ",enterpriseNature=" + getItemValue(0,0,"ENTERPRISE_NATURE")
+",industryType=" + getItemValue(0,0,"INDUSTRY_TYPE") + ",careerType=" + getItemValue(0,0,"CAREER_TYPE")
+",monthlyExpenses=" + getItemValue(0,0,"MONTHLY_EXPENSES") + ",workAddressCode=" + getItemValue(0,0,"WORK_ADDRESS_CODE")
+",workAddressId=" + getItemValue(0,0,"WORK_ADDRESS_ID") + ",liveAddressCode=" + getItemValue(0,0,"LIVE_ADDRESS_CODE")
+",liveAddressId=" + getItemValue(0,0,"LIVE_ADDRESS_ID") + ",idAddressCode=" + getItemValue(0,0,"ID_ADDRESS_CODE")
+",marryType=" + getItemValue(0,0,"MARRY_TYPE") + ",residentialStatus=" + getItemValue(0,0,"RESIDENTIAL_STATUS")
+",idAddressId=" + getItemValue(0,0,"ID_ADDRESS_ID") + ",childrensNumber=" + getItemValue(0,0,"CHILDRENS_NUMBER")
+",birthday=" + getItemValue(0,0,"BIRTHDAY") + ",startIdexpiry=" + getItemValue(0,0,"START_IDEXPIRY")
+",idexpiryType=" + getItemValue(0,0,"IDEXPIRY_TYPE");
// alert("------------------------>saveCustomerFamilyParam=" + saveCustomerFamilyParam);
}
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCustomerFamily",
saveCustomerFamilyParam);
if(sResult == "SUCCESS"){
reloadSelf();
}

View File

@ -38,7 +38,11 @@
doTemp.setReadOnly("SEX", true);
}
doTemp.setHtmlEvent("MARRIAGE","onChange","changeChildrensNumber");
doTemp.setHtmlEvent("CHILDRENS_NUMBER","onChange","changeChildrensNumber");
doTemp.setHtmlEvent("IS_NETCAR","onChange","changeNetCarInfo");
doTemp.setHtmlEvent("IDEXPIRY_TYPE","onChange","changeIdexpiryType");
doTemp.setHtmlEvent("sex","onChange","changeSex");
doTemp.setHtmlEvent("Mailing_Address","onChange","checkMailingAddress");
//doTemp.setHtmlEvent("mobile","onChange","checkMobileRepeat");
@ -51,6 +55,7 @@
if(rightType.equals("ReadOnly")){
doTemp.setColInnerBtEvent("fulladdress", "");//设置地址按钮
doTemp.setColInnerBtEvent("NATIVEPLACE", "");//设置户籍地址按钮
doTemp.setColInnerBtEvent("WORKADD", "");//设置户籍地址按钮
}
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(flowunid + "," + customerid);
@ -62,7 +67,7 @@
String compClientID = request.getParameter("CompClientID");
//自然人标识
String person = "person";
dwTemp.replaceColumn("family", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"200px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp?CompClientID="+compClientID+"&customerid="+customerid+"&sPhaseNo="+sPhaseNo+"&IsHistory="+IsHistory+"\"></iframe>", CurPage.getObjectWindowOutput());
dwTemp.replaceColumn("family", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"400px\" frameborder=\"0\" src=\""+sWebRootPath+"/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerFamilyTempInfo.jsp?CompClientID="+compClientID+"&customerid="+customerid+"&sPhaseNo="+sPhaseNo+"&IsHistory="+IsHistory+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
//{"true","","Button","身份校验","身份校验","identityVerification()","","","","btn_icon_check",""}
@ -71,11 +76,40 @@
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function selectPersonContacts(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,personContact","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"EMPLOYRECORD",sReturn[1]);
},"请选择与承租人关系");
}
function selectPersonContacts2(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,personContact","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"EDUDEGREE",sReturn[1]);
},"请选择与承租人关系");
}
function selectDuties(){
AsDialog.OpenSelector("codeLibraryListByCodeNo","codeno,duties","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn || sReturn == "_CANCEL_"){
return;
}
sReturn = sReturn.split("@");
setItemValue(0,0,"OCCUPATION",sReturn[1]);
},"请选择职务");
}
function select(){
//修改此选择对话框时,注意下面数组的位置,请与之对应.
var projectId = "<%=projectId%>";
AsDialog.OpenSelector("selectAFFILIATEDNAME","projectId,"+projectId,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="_NONE_"){
if(!sReturn ||sReturn=="_CANCEL_" ||sReturn=="_NONE_"){
return;
}
var value = sReturn.split("@");
@ -105,6 +139,7 @@
}
} */
function changeChildrensNumber(){//已婚时显示配偶信息页面
var marriage = getItemValue(0,0,"MARRIAGE");
if("01" == marriage){
@ -124,11 +159,12 @@
function changeFamilyRequired(){//已婚时设置配偶信息必填,并将婚姻状况参数传递到子页面
var marriage = getItemValue(0,getRow(0),"MARRIAGE");
var childrensNumber = getItemValue(0,getRow(0),"CHILDRENS_NUMBER");
if("01" == marriage){
frame_list.window.changeFamilyRequiredTrue(marriage);
frame_list.window.changeFamilyRequiredTrue(marriage, childrensNumber);
//as_save("myiframe0","frame_list.window.as_save(0);");
}else{
frame_list.window.changeFamilyRequiredFalse(marriage);
frame_list.window.changeFamilyRequiredFalse(marriage, childrensNumber);
}
}
@ -305,6 +341,8 @@
$("#ENTRYTIME").attr("ReadOnly","true");
$("#WORKCORP")[0].width = $("#WORKCORP").parent().parent().parent()[0].clientWidth/2+200;
$("#WORKADD")[0].width = $("#WORKADD").parent().parent().parent()[0].clientWidth/2+200;
$("#WORKADD").css("width",$("#WORKADD").parent().parent().parent().parent()[0].clientWidth/2+200+"px");
$("#WORKADD").attr("ReadOnly","true");
$("#WORKTEL")[0].width = $("#WORKTEL").parent().parent().parent()[0].clientWidth/2+200;
if("ReadOnly" != "<%=rightType%>"){
checkDriver();
@ -320,6 +358,12 @@
$("#IS_NETCAR_0").prop("checked", "checked");
}
changeNetCarInfo();
//页面初始化的时候,判断证件有效期类型,默认为短期
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if(idexpiry_type==""){
$("#IDEXPIRY_TYPE_0").prop("checked", "checked");
}
changeIdexpiryType();
})
var flag=false;//标记是否复制过客户
@ -395,17 +439,17 @@
}
function CheckDate(){
var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
var date1 = "<%=dateString%>";
if(date1>=idexpiry){
setErrorTips("IDEXPIRY","证件到期日必须晚于当前日期!");
return false;
}else{
setErrorTips("IDEXPIRY","");
return true;
}
var idexpiry=getItemValue(0,getRow(),"IDEXPIRY");
var date1 = "<%=dateString%>";
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if("1" == idexpiry_type) {//短期
if (date1 >= idexpiry) {
setErrorTips("IDEXPIRY", "证件到期日必须晚于当前日期!");
return false;
}
}
setErrorTips("IDEXPIRY", "");
return true;
}
@ -586,7 +630,24 @@
edit();
}
}
// 风控中台对接相关代码
function selectWorkAddress(){
let workAddressId = getItemValue(0,0,"work_address_id");
AsDialog.PopView("/Tenwa/Lease/Flow/Project/BusinessApplication/personAddress.jsp",
'addressId='+workAddressId,
"resizable=yes;dialogWidth=600px;dialogHeight=355px;center:yes;status:no;statusbar:no",
function(result){
if(result == "cancel"){
return;
}
if(result !== ""){
setItemValue(0,0,"work_address_id",result.split("@")[0]);
setItemValue(0,0,"WORKZIP",result.split("@")[1]);
setItemValue(0,0,"WORKADD",result.split("@")[2]);
}
},
(!workAddressId?"新增":"修改")+"单位地址");
}
//新增
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/CustomerAddress.jsp";
@ -848,6 +909,20 @@
}
}
function changeIdexpiryType(){
var idexpiry_type = getItemValue(0,0,"IDEXPIRY_TYPE");
if("1" == idexpiry_type){//短期
setItemReadOnly(0,0,"IDEXPIRY",false);
var idexpiry = getItemValue(0,0,"IDEXPIRY");
if("0000" == idexpiry){
setItemValue(0,0,"IDEXPIRY","");
}
}else {
setItemReadOnly(0,0,"IDEXPIRY",true);
setItemValue(0,0,"IDEXPIRY","2100/12/31");
}
}
//根据是否网约车显示不同的数据
function changeNetCarInfo(){
var netcar = getItemValue(0,0,"IS_NETCAR");

View File

@ -0,0 +1,24 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/IncludeBeginMDAJAX.jsp"%><%
String codeno = CurPage.getParameter("codeno");
String attribute1 = CurPage.getParameter("attribute1");
String selectOpinion = CurPage.getParameter("selectOpinion");
try{
String sql = "select c.itemno,c.itemname from code_library c where c.codeno='"+codeno+"' and c.attribute1="+attribute1;
ASResultSet res = Sqlca.getASResultSet(new SqlObject(sql));
StringBuilder sb = new StringBuilder();
while(res.next()){
if(res.getString("itemno").toString().equals(selectOpinion)){
sb.append("<option value='"+res.getString("itemno")+"' selected>"+res.getString("itemname")+"</option>");
}else{
sb.append("<option value='"+res.getString("itemno")+"'>"+res.getString("itemname")+"</option>");
}
}
if(sb.length()>0){
out.print(sb.toString());
}
}catch(Exception e){
e.printStackTrace();
out.print("FALSE");
}
%><%@ include file="/IncludeEndAJAX.jsp"%>

View File

@ -0,0 +1,82 @@
<%@page import="com.sun.org.apache.xalan.internal.xsltc.compiler.sym"%>
<%@page import="com.tenwa.reckon.product.ASObjectWindowCalc"%>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2017-07-10
Content: 示例详情页面
History Log:
*/
String userId= CurUser.getUserID();
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String projectNo=CurPage.getParameter("ProjectNo");//项目编号
String compClientID = CurPage.getParameter("CompClientID");
String detailUrl = "/Tenwa/Lease/Flow/Project/BusinessApplication/RCScoreResultDetail.jsp?CompClientID=";
String sTempletNo = "queryScoreResult";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow(CurPage.getParameter("FlowUnid"));
// dwTemp.replaceColumn("customer_info", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"1200px\" frameborder=\"0\" " +
// "src=\""
// +sWebRootPath+detailUrl+compClientID+"&flowId="+sFlowUnid+"&projectNo="+projectNo+"\"></iframe>", CurPage.getObjectWindowOutput());
String sButtons[][] = {
{"true","","Button","评分请求","评分请求","amp()","","","","btn_icon_saveNew",""},
{"true","","Button","反欺诈","反欺诈","afs()","","","","btn_icon_saveNew",""},
{"true","","Button","查询评分结果","查询评分结果","queryScoreResult()","","","","btn_icon_saveNew",""},
{"true","","Button","查询评分报告","查询评分报告","queryScoreResultUrl()","","","","btn_icon_saveNew",""}
};
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
$(function() {
$("#PROJECT_NO").parent().find(".info_span").remove();
$("#PRODUCT_NAME").parent().find(".info_span").remove();
$("#LEAS_FORM").parent().find(".info_span").remove();
$(".info_td_left").css("width","150px");
$(".info_mid_line").css("width","50%");
//去除项目审批信息难看样式
});
function queryScoreResult(){
self.location.reload();
}
function queryScoreResultUrl(){
var scoreResultUrl = getItemValue(0,0,"SCORE_RESULT_URL");
if("" == scoreResultUrl){
alert("请先执行查询评分结果");
return;
}
window.open(scoreResultUrl);
return;
}
function amp(){
var flowUnid = "<%=sFlowUnid%>";
var curUserId = "<%=userId%>";
var result = RunJavaMethodTrans("com.ample.esb.controller.AmpController","ampDo","flowUnid="+flowUnid+",operatorId="+curUserId);
alert(result);
}
function afs(){
var projectNo = "<%=projectNo%>";
var curUserId = "<%=userId%>";
var result = RunJavaMethod("com.ample.esb.controller.AfsUrlController","getAfsUrl","projectNo="+projectNo+",userId="+curUserId);
window.open(result);
return;
/*let temp_form = document.createElement("form");
temp_form.action = 'http://test-antifraud.baicfc.com/Instinct.UI.WebClient_5.3.1/api/redirect?';
temp_form.target = "_blank";
temp_form.method = "get";
temp_form.style.display = "none";
const input = document.createElement('input');
input.type = 'hidden';
input.name = result;
temp_form.appendChild(input);
document.body.appendChild(temp_form);
temp_form.submit();*/
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,56 @@
<%@ page import="jbo.oti.RC_SCORE_RESULT_DETAIL" %>
<%@ page import="org.apache.commons.collections.CollectionUtils" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@include file="/IncludeBegin.jsp"%><%
String flowId = CurPage.getParameter("flowId");//流程编号
System.out.println("flowId=" + flowId);
String projectNo = CurPage.getParameter("projectNo");//业务编号
System.out.println("projectNo=" + projectNo);
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
System.out.println("sFlowUnid=" + sFlowUnid);
BizObjectManager rcScoreResultDetail = JBOFactory.getBizObjectManager(RC_SCORE_RESULT_DETAIL.CLASS_NAME);
List<BizObject> rcScoreResultDetailBizObjectList = rcScoreResultDetail.createQuery("project_no=:project_no").setParameter("project_no", projectNo).getResultList(false);
if(CollectionUtils.isNotEmpty(rcScoreResultDetailBizObjectList)){
%>
<table border="1" cellspacing="1" cellpadding="2" width="700" align="center" >
<tr>
<th align="center" style="line-height: 30px; ">用户类型</th>
<th align="center" style="line-height: 30px; ">用户名称</th>
<th align="center" style="line-height: 30px; ">三方报告</th>
<th align="center" style="line-height: 30px; ">征信报告</th>
<th align="center" style="line-height: 30px; ">更新时间</th>
</tr>
<%
for(BizObject rcScoreResultDetailBizObject : rcScoreResultDetailBizObjectList){
String person_type = rcScoreResultDetailBizObject.getAttribute("person_type").toString();
String person_name = rcScoreResultDetailBizObject.getAttribute("person_name").toString();
String third_result_url = rcScoreResultDetailBizObject.getAttribute("third_result_url").toString();
String pboc_result_url = rcScoreResultDetailBizObject.getAttribute("pboc_result_url").toString();
String update_time = rcScoreResultDetailBizObject.getAttribute("update_time").toString();
%>
<tr>
<td align="center" style="line-height: 30px; "><%=person_type%></td>
<td align="center" style="line-height: 30px; "><%=person_name%></td>
<td align="center" style="line-height: 30px; "><a class="a_href_style" target="_blank" style="text-decoration: underline blue;color: blue;font-weight:bold;" href="<%=third_result_url%>">三方报告</a></td>
<td align="center" style="line-height: 30px; "><a class="a_href_style" target="_blank" style="text-decoration: underline blue;color: blue;font-weight:bold;" href="<%=pboc_result_url%>">征信报告</a></td>
<td align="center" style="line-height: 30px; "><%=update_time%></td>
</tr>
<%
}
}else {
%>
<div>当前结果明细为空,请先执行评分请求或查询评分结果</div>
<%
}
%>
<script type="text/javascript" src="<%=sWebRootPath %>/Frame/page/js/as_debug_message.js"></script>
<script type="text/javascript">
$(document).ready(function (){
})
</script>
<script type="text/javascript">
</script>
<%@include file="/IncludeEnd.jsp"%>

View File

@ -0,0 +1,65 @@
<%@ page import="org.apache.commons.lang3.StringUtils" %>
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String addressId = CurPage.getParameter("addressId");
String areaCode = "";
System.out.println("--addressId---》》》》" + addressId);
ASObjectModel doTemp = new ASObjectModel("HouseholdSelectAddr");
if(StringUtils.isNotEmpty(addressId)){
ASResultSet as2 = Sqlca.getASResultSet(new SqlObject("select address_detail as address ,itemname as area_name, cpt.ap_address_code " +
" from rc_address_info cpt join code_library cl on cpt.ap_address_code = cl.itemno and cl.codeno = 'ZXAreaCode' where cpt.address_id = :addressId ").setParameter("addressId", addressId));
if(as2.next()){
doTemp.setDefaultValue("provincename", as2.getString("area_name"));
doTemp.setDefaultValue("dressdetail", as2.getString("address"));
areaCode = as2.getString("ap_address_code");
doTemp.setDefaultValue("province", areaCode);
}
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.genHTMLObjectWindow("");
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"},
{"true","","Button","返回","返回列表页面","parent.AsDialog.ClosePage('cancel')","","","","btn_icon_return"}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
//省市(户籍选择)
function selectRegionCodeZX(){
AsDialog.PopView("/Common/ToolsA/AreaVFrame.jsp","sourceForm=zx&AreaCode=<%=areaCode%>","dialogWidth=850px;dialogHeight=450px;center:yes;status:no;statusbar:no",function(sAreaCodeInfo){
if( sAreaCodeInfo == '_CANCEL_'){
return;
}
//增加清空功能的判断
if( sAreaCodeInfo == '_CLEAR_'){
setItemValue(0,0,"provincename",'');
return;
}
if(sAreaCodeInfo !== ""){
setItemValue(0,0,"province",sAreaCodeInfo.split("@")[0]);
setItemValue(0,0,"provincename",sAreaCodeInfo.split("@")[1]);
}
},'选择户籍行政区划');
}
function saveRecord(){
if(!iV_all("0")) return;//先检查填写完整性
let province = getItemValue(0,getRow(0),"province");
let provinceName = getItemValue(0,getRow(0),"provincename");
let dressDetail = getItemValue(0,getRow(0),"dressdetail");
var sReturnInfo = RunJavaMethodTrans("com.ample.esb.common.address.PersonAddressController","saveOrUpdate",
"id="+"<%=addressId%>"+",provinceName="+provinceName+",dressDetail="+dressDetail+",province="+province);
if(sReturnInfo == ''){
alert("保存地址异常!")
return;
}
if(sReturnInfo.split("@")[0] == "false"){
alert("保存地址异常!")
return;
}
let returnVal = sReturnInfo.split("@")[1] +'@'+ getItemValue(0,getRow(0),"province")+'@'+getItemValue(0,getRow(0),"provincename")+getItemValue(0,getRow(0),"dressdetail");
parent.AsDialog.ClosePage(returnVal);
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -293,7 +293,7 @@
<%/*~[Describe=Ñ¡Ôñ³µÆ·ÅÆ;]~*/%>
function selectProductModel()
{
AsDialog.OpenSelector("SelectCardataBrandNew","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
AsDialog.OpenSelector("RCSelectCardataBrandNew","","dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
{
@ -333,14 +333,10 @@
<%/*~[Describe=ÇëÑ¡Ôñ³µÏµ;]~*/%>
function selectCarSeries()
{
var brandid="";
if(MyOjbect.brandid){
brandid=MyOjbect.brandid;
let selectType = 'SelectCardataSeriesCYC';
if (MyOjbect.cartypea == 'SYC') {
selectType = 'SelectCardataSeriesSYC';
}
let selectType = 'RCSelectCardataSeriesNew';
AsDialog.OpenSelector(selectType,"brandid,"+brandid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")
@ -373,10 +369,7 @@
var seriesid="";
if(MyOjbect.seriesid){
seriesid=MyOjbect.seriesid;
let selectType = 'SelectCardataModelCYC';
if (MyOjbect.cartypea == 'SYC') {
selectType = 'SelectCardataModelSYC';
}
let selectType = 'RCSelectCardataModelNew';
AsDialog.OpenSelector(selectType,"seriesid,"+seriesid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn==""||sReturn=="_NONE_")

View File

@ -42,5 +42,8 @@
<cache name="PRD_NODEINFO_LIBRARY缓存" loadClass="apx.com.amarsoft.als.base.cache.loader.AppPrdLibraryLoader" />
<!-- 加载APP流程节点绑定页签配置 -->
<cache name="PRD_NODEINFO_MIDDLE缓存" loadClass="apx.com.amarsoft.als.base.cache.loader.AppPrdMiddleLoader" />
<!-- 加载北财风控对接的缓存 -->
<cache name="EsbParamLoader缓存" loadClass="com.ample.esb.common.cache.EsbParamLoader" />
<!-- APP缓存 END -->
</CacheConfig>

View File

@ -1,5 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<jbo>
<package name="jbo.com.tenwa.entity.comm.worktip" >
<class name="WORKTIP_CONFIG" label="" keyAttributes="id">
<attributes>
<attribute name="id" label="标识" type="STRING" length="32"/>
<attribute name="tipInfo" label="提示标题" type="STRING" length="500"/>
<attribute name="runnertype" label="执行类型" type="STRING" length="200"/>
<attribute name="userparam" label="当用户字段" type="STRING" length="100"/>
<attribute name="runner" label="执行脚本" type="STRING" length="2000"/>
<attribute name="jsaction" label="双击事件" type="STRING" length="100"/>
<attribute name="tipColumn" label="提示列和宽度" type="STRING" length="300"/>
<attribute name="InputUserID" label="登记人" type="STRING" length="32"/>
<attribute name="InputOrgID" label="登记部门" type="STRING" length="32"/>
<attribute name="InputTime" label="登记时间" type="STRING" length="32"/>
<attribute name="UpdateUserID" label="更新人" type="STRING" length="32"/>
<attribute name="UpdateOrgID" label="更新部门" type="STRING" length="32"/>
<attribute name="UpdateTime" label="更新时间" type="STRING" length="32"/>
<attribute name="tipStatus" label="是否有效" type="STRING" length="32"/>
<attribute name="remark" label="备注" type="STRING" length="2000"/>
<attribute name="tipnumber" label="提示条数" type="STRING" length="3"/>
<attribute name="sortno" label="排序号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="worktip_config" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
<package name="jbo.app.tenwa.customer" >
<class name="LB_CARD_SIGN_STATUS_HIS" label="账款签约状态历史表" keyAttributes="id">
<attributes>
@ -301,6 +330,15 @@
<attribute name="smincome" label="月收入" type="DOUBLE" length="22" scale="2" />
<attribute name="e_mail" label="电子邮箱" type="STRING" length="32" />
<attribute name="area_code" label="户籍行政区划编码" type="STRING" length="20" />
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-承租人身份证有效期" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-有效期开始时间" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-承租人单位地址关联id" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-承租人月支出" type="STRING" length="32"/>
<attribute name="pre_operate_car_type" label="北财-承租人过去曾运营车辆类型" type="STRING" length="32"/>
<attribute name="pre_operate_car_no" label="北财-承租人过去曾运营车辆车牌号" type="STRING" length="32"/>
<attribute name="pre_operate_years" label="北财-承租人从业时间" type="STRING" length="32"/>
<attribute name="shukou" label="北财-是否有本地户口" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -442,6 +480,15 @@
<attribute name="smincome" label="月收入" type="DOUBLE" length="22" scale="2" />
<attribute name="e_mail" label="电子邮箱" type="STRING" length="32" />
<attribute name="area_code" label="户籍行政区划编码" type="STRING" length="20" />
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-承租人身份证有效期" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-有效期开始时间" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-承租人单位地址关联id" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-承租人月支出" type="STRING" length="32"/>
<attribute name="pre_operate_car_type" label="北财-承租人过去曾运营车辆类型" type="STRING" length="32"/>
<attribute name="pre_operate_car_no" label="北财-承租人过去曾运营车辆车牌号" type="STRING" length="32"/>
<attribute name="pre_operate_years" label="北财-承租人从业时间" type="STRING" length="32"/>
<attribute name="shukou" label="北财-是否有本地户口" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2393,6 +2440,14 @@
<attribute name="spnumber" label="手机号——配偶" type="STRING" length="32"/>
<attribute name="smincome" label="月收入——配偶" type="DOUBLE" length="22" scale="2"/>
<attribute name="e_mail" label="电子邮箱" type="STRING" length="32" />
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-承租人身份证有效期" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-有效期开始时间" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-承租人单位地址关联id" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-承租人月支出" type="STRING" length="32"/>
<attribute name="pre_operate_car_type" label="北财-承租人过去曾运营车辆类型" type="STRING" length="32"/>
<attribute name="pre_operate_car_no" label="北财-承租人过去曾运营车辆车牌号" type="STRING" length="32"/>
<attribute name="pre_operate_years" label="北财-承租人从业时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2495,6 +2550,15 @@
<attribute name="sposition" label="职位—配偶" type="STRING" length="32"/>
<attribute name="spnumber" label="手机号——配偶" type="STRING" length="32"/>
<attribute name="smincome" label="月收入——配偶" type="DOUBLE" length="22" scale="2"/>
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-承租人身份证有效期" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-有效期开始时间" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-承租人单位地址关联id" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-承租人月支出" type="STRING" length="32"/>
<attribute name="pre_operate_car_type" label="北财-承租人过去曾运营车辆类型" type="STRING" length="32"/>
<attribute name="pre_operate_car_no" label="北财-承租人过去曾运营车辆车牌号" type="STRING" length="32"/>
<attribute name="pre_operate_years" label="北财-承租人从业时间" type="STRING" length="32"/>
<attribute name="shukou" label="北财-是否有本地户口" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2591,6 +2655,26 @@
<attribute name="project_id" label="项目编号" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="SEX" label="性别" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-共同申请人身份证有效期" type="STRING" length="32"/>
<attribute name="nation" label="北财-共同申请人民族" type="STRING" length="32"/>
<attribute name="education_level" label="北财-共同申请人最高学历" type="STRING" length="32"/>
<attribute name="work_address" label="北财-共同申请人单位地址" type="STRING" length="500"/>
<attribute name="live_address" label="北财-共同申请人居住地址" type="STRING" length="500"/>
<attribute name="id_address" label="北财-共同申请人户籍地址" type="STRING" length="500"/>
<attribute name="enterprise_nature" label="北财-共同申请人企业性质" type="STRING" length="32"/>
<attribute name="industry_type" label="北财-共同申请人行业类型" type="STRING" length="32"/>
<attribute name="career_type" label="北财-共同申请人职业类型" type="STRING" length="32"/>
<attribute name="position" label="北财-共同申请人职位" type="STRING" length="32"/>
<attribute name="monthly_income" label="北财-共同申请人月收入" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-共同申请人月支出" type="STRING" length="32"/>
<attribute name="duties_type" label="北财-共同申请人职务" type="STRING" length="32"/>
<attribute name="work_address_code" label="北财-共同申请人单位地址编码" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-共同申请人单位地址关联id" type="STRING" length="32"/>
<attribute name="live_address_code" label="北财-共同申请人居住地址编码" type="STRING" length="32"/>
<attribute name="live_address_id" label="北财-共同申请人居住地址关联id" type="STRING" length="32"/>
<attribute name="id_address_code" label="北财-共同申请人户籍地址编码" type="STRING" length="32"/>
<attribute name="id_address_id" label="北财-共同申请人户籍地址关联id" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2632,6 +2716,26 @@
<attribute name="project_id" label="项目编号" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="SEX" label="性别" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-共同申请人身份证有效期" type="STRING" length="32"/>
<attribute name="nation" label="北财-共同申请人民族" type="STRING" length="32"/>
<attribute name="education_level" label="北财-共同申请人最高学历" type="STRING" length="32"/>
<attribute name="work_address" label="北财-共同申请人单位地址" type="STRING" length="500"/>
<attribute name="live_address" label="北财-共同申请人居住地址" type="STRING" length="500"/>
<attribute name="id_address" label="北财-共同申请人户籍地址" type="STRING" length="500"/>
<attribute name="enterprise_nature" label="北财-共同申请人企业性质" type="STRING" length="32"/>
<attribute name="industry_type" label="北财-共同申请人行业类型" type="STRING" length="32"/>
<attribute name="career_type" label="北财-共同申请人职业类型" type="STRING" length="32"/>
<attribute name="position" label="北财-共同申请人职位" type="STRING" length="32"/>
<attribute name="monthly_income" label="北财-共同申请人月收入" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-共同申请人月支出" type="STRING" length="32"/>
<attribute name="duties_type" label="北财-共同申请人职务" type="STRING" length="32"/>
<attribute name="work_address_code" label="北财-共同申请人单位地址编码" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-共同申请人单位地址关联id" type="STRING" length="32"/>
<attribute name="live_address_code" label="北财-共同申请人居住地址编码" type="STRING" length="32"/>
<attribute name="live_address_id" label="北财-共同申请人居住地址关联id" type="STRING" length="32"/>
<attribute name="id_address_code" label="北财-共同申请人户籍地址编码" type="STRING" length="32"/>
<attribute name="id_address_id" label="北财-共同申请人户籍地址关联id" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2671,6 +2775,27 @@
<attribute name="project_id" label="项目编号" type="STRING" length="32"/>
<attribute name="ASSURE_RELATION" label="关系" type="STRING" length="32"/>
<attribute name="SEX" label="性别" type="STRING" length="32"/>
<attribute name="idexpiry" label="北财-共同申请人身份证有效期" type="STRING" length="32"/>
<attribute name="nation" label="北财-共同申请人民族" type="STRING" length="32"/>
<attribute name="education_level" label="北财-共同申请人最高学历" type="STRING" length="32"/>
<attribute name="work_address" label="北财-共同申请人单位地址" type="STRING" length="500"/>
<attribute name="id_address" label="北财-共同申请人户籍地址" type="STRING" length="500"/>
<attribute name="enterprise_nature" label="北财-共同申请人企业性质" type="STRING" length="32"/>
<attribute name="industry_type" label="北财-共同申请人行业类型" type="STRING" length="32"/>
<attribute name="career_type" label="北财-共同申请人职业类型" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-共同申请人月支出" type="STRING" length="32"/>
<attribute name="work_address_code" label="北财-共同申请人单位地址编码" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-共同申请人单位地址关联id" type="STRING" length="32"/>
<attribute name="live_address_code" label="北财-共同申请人居住地址编码" type="STRING" length="32"/>
<attribute name="live_address_id" label="北财-共同申请人居住地址关联id" type="STRING" length="32"/>
<attribute name="id_address_code" label="北财-共同申请人户籍地址编码" type="STRING" length="32"/>
<attribute name="id_address_id" label="北财-共同申请人户籍地址关联id" type="STRING" length="32"/>
<attribute name="marry_type" label="北财-共同申请人婚姻状况" type="STRING" length="32"/>
<attribute name="residential_status" label="北财-共同申请人居住状况" type="STRING" length="32"/>
<attribute name="childrens_number" label="北财-子女数量" type="STRING" length="32"/>
<attribute name="birthday" label="北财-出生日期" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-有效期开始时间" type="STRING" length="32"/>
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

View File

@ -3684,6 +3684,7 @@
<attribute name="is_tail" label="头车字段(是否有挂车)" type="STRING" length="2"/>
<attribute name="uu_id" label="标识" type="STRING" length="32"/>
<attribute name="TERMINATE_TYPE" label="标识租赁物是否结清" type="STRING" length="32"/>
<attribute name="car_use_type" label="北财-车辆用途类型" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -4094,6 +4095,27 @@
<attribute name="WORKTEL" label="单位电话" type="STRING" length="20"/>
<attribute name="TITLE" label="职位" type="STRING" length="32"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="80"/>
<attribute name="idexpiry" label="北财-担保人身份证有效期" type="STRING" length="32"/>
<attribute name="nation" label="北财-担保人民族" type="STRING" length="32"/>
<attribute name="education_level" label="北财-最高学历" type="STRING" length="32"/>
<attribute name="id_address" label="北财-担保人户籍地址" type="STRING" length="500"/>
<attribute name="enterprise_nature" label="北财-担保人企业性质" type="STRING" length="32"/>
<attribute name="industry_type" label="北财-担保人行业类型" type="STRING" length="32"/>
<attribute name="career_type" label="北财-担保人职业类型" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-担保人月支出" type="STRING" length="32"/>
<attribute name="work_address_code" label="北财-担保人单位地址编码" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-担保人单位地址关联id" type="STRING" length="32"/>
<attribute name="live_address_code" label="北财-担保人居住地址编码" type="STRING" length="32"/>
<attribute name="live_address_id" label="北财-担保人居住地址关联id" type="STRING" length="32"/>
<attribute name="id_address_code" label="北财-担保人户籍地址编码" type="STRING" length="32"/>
<attribute name="id_address_id" label="北财-担保人户籍地址关联id" type="STRING" length="32"/>
<attribute name="residential_status" label="北财-担保人居住状况" type="STRING" length="32"/>
<attribute name="childrens_number" label="北财-子女数量" type="STRING" length="32"/>
<attribute name="birthday" label="北财-出生日期" type="STRING" length="32"/>
<attribute name="legal_representative" label="北财-担保人为企业时的法定代表人信息" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-担保人有效期开始时间" type="STRING" length="32"/>
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="shukou" label="北财-是否有本地户口" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -4138,6 +4160,27 @@
<attribute name="WORKTEL" label="单位电话" type="STRING" length="20"/>
<attribute name="TITLE" label="职位" type="STRING" length="32"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="80"/>
<attribute name="idexpiry" label="北财-担保人身份证有效期" type="STRING" length="32"/>
<attribute name="nation" label="北财-担保人民族" type="STRING" length="32"/>
<attribute name="education_level" label="北财-最高学历" type="STRING" length="32"/>
<attribute name="id_address" label="北财-担保人户籍地址" type="STRING" length="500"/>
<attribute name="enterprise_nature" label="北财-担保人企业性质" type="STRING" length="32"/>
<attribute name="industry_type" label="北财-担保人行业类型" type="STRING" length="32"/>
<attribute name="career_type" label="北财-担保人职业类型" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-担保人月支出" type="STRING" length="32"/>
<attribute name="work_address_code" label="北财-担保人单位地址编码" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-担保人单位地址关联id" type="STRING" length="32"/>
<attribute name="live_address_code" label="北财-担保人居住地址编码" type="STRING" length="32"/>
<attribute name="live_address_id" label="北财-担保人居住地址关联id" type="STRING" length="32"/>
<attribute name="id_address_code" label="北财-担保人户籍地址编码" type="STRING" length="32"/>
<attribute name="id_address_id" label="北财-担保人户籍地址关联id" type="STRING" length="32"/>
<attribute name="residential_status" label="北财-担保人居住状况" type="STRING" length="32"/>
<attribute name="childrens_number" label="北财-子女数量" type="STRING" length="32"/>
<attribute name="birthday" label="北财-出生日期" type="STRING" length="32"/>
<attribute name="legal_representative" label="北财-担保人为企业时的法定代表人信息" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-担保人有效期开始时间" type="STRING" length="32"/>
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="shukou" label="北财-是否有本地户口" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -4182,6 +4225,27 @@
<attribute name="WORKTEL" label="单位电话" type="STRING" length="20"/>
<attribute name="TITLE" label="职位" type="STRING" length="32"/>
<attribute name="WORKADD" label="单位地址" type="STRING" length="80"/>
<attribute name="idexpiry" label="北财-担保人身份证有效期" type="STRING" length="32"/>
<attribute name="nation" label="北财-担保人民族" type="STRING" length="32"/>
<attribute name="education_level" label="北财-最高学历" type="STRING" length="32"/>
<attribute name="id_address" label="北财-担保人户籍地址" type="STRING" length="500"/>
<attribute name="enterprise_nature" label="北财-担保人企业性质" type="STRING" length="32"/>
<attribute name="industry_type" label="北财-担保人行业类型" type="STRING" length="32"/>
<attribute name="career_type" label="北财-担保人职业类型" type="STRING" length="32"/>
<attribute name="monthly_expenses" label="北财-担保人月支出" type="STRING" length="32"/>
<attribute name="work_address_code" label="北财-担保人单位地址编码" type="STRING" length="32"/>
<attribute name="work_address_id" label="北财-担保人单位地址关联id" type="STRING" length="32"/>
<attribute name="live_address_code" label="北财-担保人居住地址编码" type="STRING" length="32"/>
<attribute name="live_address_id" label="北财-担保人居住地址关联id" type="STRING" length="32"/>
<attribute name="id_address_code" label="北财-担保人户籍地址编码" type="STRING" length="32"/>
<attribute name="id_address_id" label="北财-担保人户籍地址关联id" type="STRING" length="32"/>
<attribute name="residential_status" label="北财-担保人居住状况" type="STRING" length="32"/>
<attribute name="childrens_number" label="北财-子女数量" type="STRING" length="32"/>
<attribute name="birthday" label="北财-出生日期" type="STRING" length="32"/>
<attribute name="legal_representative" label="北财-担保人为企业时的法定代表人信息" type="STRING" length="32"/>
<attribute name="start_idexpiry" label="北财-担保人有效期开始时间" type="STRING" length="32"/>
<attribute name="idexpiry_type" label="北财-证件有效期类型1短期2长期" type="STRING" length="32"/>
<attribute name="shukou" label="北财-是否有本地户口" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

View File

@ -699,5 +699,169 @@
</managerProperties>
</manager>
</class>
<class name="RC_LIBRARY" label="北财风控中台对接码表对照关系" describe="北财风控中台对接码表对照关系" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="INTEGER" length="64" />
<attribute name="library_no" label="字典项编号" type="STRING" length="32" />
<attribute name="library_value" label="字典项描述" type="STRING" length="32"/>
<attribute name="ap_item_no" label="安鹏标签编号" type="STRING" length="32"/>
<attribute name="ap_item_value" label="安鹏标签描述" type="STRING" length="32" />
<attribute name="bc_item_no" label="北财标签编号" type="STRING" length="32"/>
<attribute name="bc_item_value" label="北财标签描述" type="STRING" length="32"/>
<attribute name="operate_type" label="操作类型" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_library"/>
</managerProperties>
</manager>
</class>
<class name="RC_ADDRESS_LIBRARY" label="风控中台对接地址字典表" describe="风控中台对接地址字典表" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32" />
<attribute name="address_code" label="地址编码" type="STRING" length="32" />
<attribute name="address_value" label="地址描述" type="STRING" length="255"/>
<attribute name="parent_address_code" label="上级地址编码" type="STRING" length="32"/>
<attribute name="parent_address_value" label="上级地址描述" type="STRING" length="255" />
<attribute name="address_code_level" label="地址级别" type="STRING" length="32"/>
<attribute name="grant_address_code" label="上上级地址编码" type="STRING" length="32"/>
<attribute name="grant_address_value" label="上上级地址描述" type="STRING" length="32"/>
<attribute name="ap_library_code" label="地址编码" type="STRING" length="32"/>
<attribute name="ap_address_code" label="地址编码" type="STRING" length="32"/>
<attribute name="ap_address_value" label="地址描述" type="STRING" length="500"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_address_library"/>
</managerProperties>
</manager>
</class>
<class name="RC_ADDRESS_INFO" label="用户地址信息表" describe="用户地址信息表" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32" />
<attribute name="address_id" label="唯一标识" type="STRING" length="32" />
<attribute name="province_code" label="省编码" type="STRING" length="32" />
<attribute name="province_value" label="省描述" type="STRING" length="32"/>
<attribute name="city_code" label="市编码" type="STRING" length="32"/>
<attribute name="city_value" label="市描述" type="STRING" length="255"/>
<attribute name="district_code" label="区县编码" type="STRING" length="32"/>
<attribute name="district_value" label="区县编码" type="STRING" length="255"/>
<attribute name="address_detail" label="详细地址" type="STRING" length="255"/>
<attribute name="full_address" label="全量地址" type="STRING" length="500"/>
<attribute name="ap_address_code" label="征信地址编码" type="STRING" length="32"/>
<attribute name="ap_address_value" label="征信地址描述" type="STRING" length="255"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_address_info"/>
</managerProperties>
</manager>
</class>
<class name="RC_SCORE_RESULT" label="北财风控中台评分结果" describe="北财风控中台评分结果" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32" />
<attribute name="score_result_id" label="唯一标识" type="STRING" length="32" />
<attribute name="tran_no" label="流水号" type="STRING" length="32" />
<attribute name="project_no" label="业务申请编号" type="STRING" length="32" />
<attribute name="flow_no" label="流程编号" type="STRING" length="32"/>
<attribute name="fraud_alert_code" label="反欺诈预警结果H、S、C" type="STRING" length="32"/>
<attribute name="fraud_taken_code" label="反欺诈判定结果F、K、S、空" type="STRING" length="32"/>
<attribute name="score_result_code" label="评分结果 AA RR RD DD" type="STRING" length="32"/>
<attribute name="score_result_url" label="评分结果报告页" type="STRING" length="255"/>
<attribute name="input_time" label="登记时间" type="STRING" length="32"/>
<attribute name="update_time" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_score_result"/>
</managerProperties>
</manager>
</class>
<class name="RC_SCORE_RESULT_DETAIL" label="北财风控中台评分结果详细页" describe="北财风控中台评分结果详细页" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32" />
<attribute name="score_result_detail_id" label="唯一标识" type="STRING" length="32" />
<attribute name="score_result_id" label="北财风控中台评分结果唯一标识" type="STRING" length="32" />
<attribute name="tran_no" label="流水号" type="STRING" length="32" />
<attribute name="project_no" label="业务申请编号" type="STRING" length="32" />
<attribute name="flow_no" label="流程编号" type="STRING" length="32"/>
<attribute name="person_type" label="人员类型:承租人、共申人、担保人" type="STRING" length="32"/>
<attribute name="person_name" label="人员名称" type="STRING" length="32"/>
<attribute name="person_card_type" label="人员证件类型" type="STRING" length="32"/>
<attribute name="person_card_no" label="人员证件号码" type="STRING" length="32"/>
<attribute name="third_result_url" label="三方结果链接地址" type="STRING" length="500"/>
<attribute name="pboc_result_url" label="pboc结果链接地址" type="STRING" length="500"/>
<attribute name="score_level" label="登记时间" type="STRING" length="32"/>
<attribute name="third_state_code" label="登记时间" type="STRING" length="32"/>
<attribute name="error_message" label="登记时间" type="STRING" length="32"/>
<attribute name="name_result" label="登记时间" type="STRING" length="32"/>
<attribute name="cert_id_result" label="登记时间" type="STRING" length="32"/>
<attribute name="input_time" label="登记时间" type="STRING" length="32"/>
<attribute name="update_time" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_score_result_detail"/>
</managerProperties>
</manager>
</class>
<class name="RC_SCORE_RESULT_LOG" label="北财风控中台评分反欺诈结果推送日志表" describe="北财风控中台评分反欺诈结果推送日志表" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32" />
<attribute name="score_result_id" label="唯一标识" type="STRING" length="32" />
<attribute name="tran_no" label="流水号" type="STRING" length="32" />
<attribute name="project_no" label="业务申请编号" type="STRING" length="32" />
<attribute name="flow_no" label="流程编号" type="STRING" length="32"/>
<attribute name="fraud_alert_code" label="反欺诈预警结果H、S、C" type="STRING" length="32"/>
<attribute name="fraud_taken_code" label="反欺诈判定结果F、K、S、空" type="STRING" length="32"/>
<attribute name="score_result_code" label="评分结果 AA RR RD DD" type="STRING" length="32"/>
<attribute name="score_result_url" label="评分结果报告页" type="STRING" length="255"/>
<attribute name="input_time" label="登记时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_score_result_log"/>
</managerProperties>
</manager>
</class>
<class name="RC_CALLBACK_LOG" label="北财风控中台回调接口处理日志表" describe="北财风控中台回调接口处理日志表" keyAttributes="id">
<attributes>
<attribute name="id" label="唯一标识" type="STRING" length="32" />
<attribute name="callback_id" label="唯一标识" type="STRING" length="32" />
<attribute name="project_no" label="业务申请编号" type="STRING" length="32" />
<attribute name="callback_type" label="推送结果类型:评分结果 score, 反欺诈 fraud" type="STRING" length="32"/>
<attribute name="callback_data" label="结果" type="STRING" length="2000"/>
<attribute name="handle_sts" label="结果状态" type="STRING" length="32"/>
<attribute name="handle_value" label="结果状态描述" type="STRING" length="32"/>
<attribute name="input_time" label="登记时间" type="STRING" length="32"/>
<attribute name="update_time" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="rc_callback_log"/>
</managerProperties>
</manager>
</class>
<class name="ESB_LOG" label="esb发送记录表" describe="esb发送记录表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="唯一标识" type="String" length="32" />
<attribute name="GLOBAL_SEQ_NO" label="全局唯一标识" type="STRING" length="26" />
<attribute name="TARGET_SEQ_NO" label="交易码" type="STRING" length="30"/>
<attribute name="TARGET_SYSTEM_ID" label="目标系统ID" type="STRING" length="50"/>
<attribute name="SERVICE_ID" label="服务id" type="STRING" length="7"/>
<attribute name="RET_CODE" label="服务返回码" type="STRING" length="50"/>
<attribute name="RET_MSG" label="通讯状态" type="STRING" length="1"/>
<attribute name="RET_SYSTEM_ID" label="目标系统ID" type="STRING" length="50"/>
<attribute name="TRAN_CODE" label="服务返回信息" type="STRING" length="32"/>
<attribute name="SOURCE_MACHINE_DATE" label="服务返回信息" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="记录时间" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="ESB_LOG"/>
</managerProperties>
</manager>
</class>
</package>
</jbo>

Binary file not shown.

Binary file not shown.

View File

@ -129,7 +129,18 @@
<param-value>als</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>AfsResultServlet</servlet-name>
<servlet-class>com.ample.esb.controller.AfsResultServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>ScoreResultServlet</servlet-name>
<servlet-class>com.ample.esb.server.ScoreResultServlet</servlet-class>
<init-param>
<param-name>DataSource</param-name>
<param-value>als</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>RewriteRunJavaMethodServlet</servlet-name>
<servlet-class>com.tenwa.workflow.RewriteRunJavaMethodServlet</servlet-class>
@ -311,7 +322,14 @@
<servlet-name>SmsRptServlet</servlet-name>
<url-pattern>/smsRpt</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AfsResultServlet</servlet-name>
<url-pattern>/afsResult</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ScoreResultServlet</servlet-name>
<url-pattern>/scoreResult</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DocDownloadZipServlet</servlet-name>
<url-pattern>/servlet/view/docDownloadZipServlet</url-pattern>
@ -512,7 +530,9 @@
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>com.tenwa.httpclient.pboc.PbocThreadPool</listener-class>
</listener>
<!--- ================================== -->
<!-- webApi配置 -->
<!--- ================================== -->

View File

@ -0,0 +1,121 @@
package com.tenwa.reckon.executor;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.tenwa.app.manage.qiyuesuo.v2.ContractSignVtwoUtils;
import jbo.app.tenwa.calc.LC_CALC_CONDITION;
import jbo.app.tenwa.calc.LC_RENT_INCOME;
import jbo.app.tenwa.calc.LC_RENT_PLAN;
import jbo.com.tenwa.lease.comm.LC_CAR_DISPOSE;
import jbo.com.tenwa.lease.comm.LC_OCCUPY_RENT_LIST;
import com.amarsoft.app.awe.config.InitDBType;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.BizObjectQuery;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.are.util.json.JSONEncoder;
import com.amarsoft.are.util.json.JSONObject;
import com.tenwa.reckon.util.Conn;
import com.tenwa.reckon.util.DateUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 合同测算校验
* @author tenwapc
*
*/
public class RentCalculateExecutor {
private static final Logger logger = LoggerFactory.getLogger(RentCalculateExecutor.class);
private String contractId;
private String startList;
private String paydayAdjust;
private String paymentnumber;
private String planId;
/**
* 校验中止日期是否合法
* @return
* @throws Exception
*/
public String checkPaydayAdjust() throws Exception {
JSONObject jsonObject = JSONObject.createObject();
JBOTransaction tx=null;
try{
tx=JBOFactory.createJBOTransaction();
String checkSql = " select min(plan_date) mindate from LC_RENT_PLAN where contract_id = ? and payment_number=?";
Conn conn = new Conn(tx);
List<Map<String, String>> results = conn.executeQuery(checkSql, this.contractId,this.getPaymentnumber());
String mindate = results.get(0).get("mindate");
logger.info("20211104 校验中止日期是否合法 mindate= " + mindate);
logger.info("20211104 校验中止日期是否合法 paydayAdjust= " + this.paydayAdjust);
//截取最后两位 字符串
String minDateStr = mindate.substring(mindate.lastIndexOf("/") + 1);
String paydayAdjustStr = this.paydayAdjust.substring(this.paydayAdjust.lastIndexOf("/") + 1);
logger.info("20211104 校验中止日期是否合法 minDateStr= " + minDateStr);
logger.info("20211104 校验中止日期是否合法 paydayAdjustStr= " + paydayAdjustStr);
if(minDateStr.equals(paydayAdjustStr)){
jsonObject.appendElement("result", "false");
jsonObject.appendElement("msg","约定终止日不能落在已汇款的租金计划的区间段!!!");
}else {
jsonObject.appendElement("result", "true");
}
}catch(Exception e){
tx.rollback();
e.printStackTrace();
jsonObject.appendElement("result", "false");
jsonObject.appendElement("msg","服务器正忙,请稍后再试!!!");
}finally{
tx.commit();
}
return JSONEncoder.encode(jsonObject);
}
public String getContractId() {
return contractId;
}
public void setContractId(String contractId) {
this.contractId = contractId;
}
public String getStartList() {
return startList;
}
public void setStartList(String startList) {
this.startList = startList;
}
public String getPaydayAdjust() {
return paydayAdjust;
}
public void setPaydayAdjust(String paydayAdjust) {
this.paydayAdjust = paydayAdjust;
}
public String getPaymentnumber() {
return paymentnumber;
}
public void setPaymentnumber(String paymentnumber) {
this.paymentnumber = paymentnumber;
}
public String getPlanId() {
return planId;
}
public void setPlanId(String planId) {
this.planId = planId;
}
}

12
config/baic.properties Normal file
View File

@ -0,0 +1,12 @@
# esb config
esb_url=http://47.93.34.101/baicfc/trans?
userid=TYJWBY7F
AFS012_serviceid=N9LZG7J8OXSD90B4
AMP005_serviceid=24LITXVE9LKXANTD
log_path=D:/tmp/esb/log/
## ·´ÆÛÕ©
afs_url=http://test-antifraud.baicfc.com/Instinct.UI.WebClient_5.3.1_2023/api/redirect?
RSAPublicKey=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtmxe7GIws+1RwPtICBi+GKbNEYrqz+xkPZN8Cv3vnyK/cX87n2volMPV1LZBGLyFj2ckyLmIt+uC1SHDio+N9/e695UT2rvTJdP7rho0yA2sXmAqG4pjVA8dPHFgvUIaW/SIwPpqHnPrKTj6YHp5/6Amuvq7W5WujHsM1aq61p0RL6b6CQlwQtXK1MGE95eDJrhY0eO2RcoKBOJgQSa2MdqSSQ9jYuu/9lpoENxvHcHydxFqwzwJtP4Noct9ZplSjxA/OsincK4q6ELSDL3f9ckBXGmZrHDkYVyv0hD1QeC8Pgy3FAppgPPfMXPLUWgswV24/dEJP8qiCTacFfF9iwIDAQAB

View File

@ -25,7 +25,15 @@ t_password = {MD5}i3rx5Ta+2VL5Dj5T866giQ==
t_methodType = queryReport
#pboc canshu
pboc_url = http://9.35.68.228:8080/pbcrs/api/msgDispatchController/postProcess
pboc_txCode = ZXCXA01
pboc_reqSysCode = CX
pboc_loginUserCode = test
pboc_loginPwd = 123456
pboc_finDept = a5adabc8ae00417bbe1b4f54423f4d03
pboc_authArchUrl = www.baidu.com
pboc_certSrcUrl = www.sino.com

View File

@ -1,4 +1,4 @@
org.quartz.dataSource.zhulhDS.URL=jdbc:mysql://47.93.34.101:10323/apzl?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=GBK&autoReconnectForPools=true&autoReconnect=true&useSSL=false
org.quartz.dataSource.zhulhDS.URL=jdbc:mysql://60.205.189.63:3306/apzl?rewriteBatchedStatements=true&useUnicode=true&characterEncoding=GBK&autoReconnectForPools=true&autoReconnect=true&useSSL=false
org.quartz.dataSource.zhulhDS.user=338A48E135315FDBC2DF24EB080903D7
org.quartz.dataSource.zhulhDS.key=431DC9744DEF477868F97C4842F87AB3
org.quartz.dataSource.zhulhDS.driver=com.mysql.jdbc.Driver

View File

@ -0,0 +1,52 @@
package com.ample.esb.bean.afs;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
@XStreamAlias("REQUEST")
public class AccountSyncRequest {
@XStreamAlias("USER_NAME")
private String userName;
@XStreamAlias("USER_ID")
private String userId;
@XStreamAlias("SYSTEM_STATE")
private String systemState;
@XStreamOmitField
private String operatorId;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getSystemState() {
return systemState;
}
public void setSystemState(String systemState) {
this.systemState = systemState;
}
public String getOperatorId() {
return operatorId;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
}

View File

@ -0,0 +1,17 @@
package com.ample.esb.bean.afs;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("RESPONSE")
public class AccountSyncResponse {
@XStreamAlias("RESULT")
private String result;
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
}

View File

@ -0,0 +1,599 @@
package com.ample.esb.bean.afs;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class AfsResultRequest {
@XStreamAlias("CMON_ID")
private String cmonId;
@XStreamAlias("COUNTRY_CODE")
private String countryCode;
@XStreamAlias("GROUP_MEMBER_CODE")
private String groupMemberCode;
@XStreamAlias("APPLY_NO")
private String applyNo;
@XStreamAlias("CAPTURE_DATE")
private String captureDate;
@XStreamAlias("CAPTURE_TIME")
private String captureTime;
@XStreamAlias("APPLY_TYPE")
private String applyType;
@XStreamAlias("FRAUD_SCORE")
private String fraudScore;
@XStreamAlias("FRAUD_ALERT")
private String fraudAlert;
@XStreamAlias("ACTION_TAKEN")
private String actionTaken;
@XStreamAlias("USER_DEFINED_ALERT")
private String userDefinedAlert;
@XStreamAlias("DECISION_REASON")
private String decisionReason;
@XStreamAlias("ACTION_USER")
private String actionUser;
@XStreamAlias("RULE_TRIGGERED_1")
private String ruleTriggered_1;
@XStreamAlias("RULE_TRIGGERED_2")
private String ruleTriggered_2;
@XStreamAlias("RULE_TRIGGERED_3")
private String ruleTriggered_3;
@XStreamAlias("RULE_TRIGGERED_4")
private String ruleTriggered_4;
@XStreamAlias("RULE_TRIGGERED_5")
private String ruleTriggered_5;
@XStreamAlias("RULE_TRIGGERED_6")
private String ruleTriggered_6;
@XStreamAlias("RULE_TRIGGERED_7")
private String ruleTriggered_7;
@XStreamAlias("RULE_TRIGGERED_8")
private String ruleTriggered_8;
@XStreamAlias("RULE_TRIGGERED_9")
private String ruleTriggered_9;
@XStreamAlias("RULE_TRIGGERED_10")
private String ruleTriggered_10;
@XStreamAlias("RULE_TRIGGERED_11")
private String ruleTriggered_11;
@XStreamAlias("RULE_TRIGGERED_12")
private String ruleTriggered_12;
@XStreamAlias("RULE_TRIGGERED_13")
private String ruleTriggered_13;
@XStreamAlias("RULE_TRIGGERED_14")
private String ruleTriggered_14;
@XStreamAlias("RULE_TRIGGERED_15")
private String ruleTriggered_15;
@XStreamAlias("RULE_TRIGGERED_16")
private String ruleTriggered_16;
@XStreamAlias("RULE_TRIGGERED_17")
private String ruleTriggered_17;
@XStreamAlias("RULE_TRIGGERED_18")
private String ruleTriggered_18;
@XStreamAlias("RULE_TRIGGERED_19")
private String ruleTriggered_19;
@XStreamAlias("RULE_TRIGGERED_20")
private String ruleTriggered_20;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_1")
private String descriptionruletriggered_1;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_2")
private String descriptionruletriggered_2;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_3")
private String descriptionruletriggered_3;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_4")
private String descriptionruletriggered_4;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_5")
private String descriptionruletriggered_5;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_6")
private String descriptionruletriggered_6;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_7")
private String descriptionruletriggered_7;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_8")
private String descriptionruletriggered_8;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_9")
private String descriptionruletriggered_9;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_10")
private String descriptionruletriggered_10;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_11")
private String descriptionruletriggered_11;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_12")
private String descriptionruletriggered_12;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_13")
private String descriptionruletriggered_13;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_14")
private String descriptionruletriggered_14;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_15")
private String descriptionruletriggered_15;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_16")
private String descriptionruletriggered_16;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_17")
private String descriptionruletriggered_17;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_18")
private String descriptionruletriggered_18;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_19")
private String descriptionruletriggered_19;
@XStreamAlias("DESCRIPTION_RULE_TRIGGERED_20")
private String descriptionruletriggered_20;
@XStreamAlias("DIARY")
private Diary diary;
public String getCmonId() {
return cmonId;
}
public void setCmonId(String cmonId) {
this.cmonId = cmonId;
}
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public String getGroupMemberCode() {
return groupMemberCode;
}
public void setGroupMemberCode(String groupMemberCode) {
this.groupMemberCode = groupMemberCode;
}
public String getApplyNo() {
return applyNo;
}
public void setApplyNo(String applyNo) {
this.applyNo = applyNo;
}
public String getCaptureDate() {
return captureDate;
}
public void setCaptureDate(String captureDate) {
this.captureDate = captureDate;
}
public String getCaptureTime() {
return captureTime;
}
public void setCaptureTime(String captureTime) {
this.captureTime = captureTime;
}
public String getApplyType() {
return applyType;
}
public void setApplyType(String applyType) {
this.applyType = applyType;
}
public String getFraudScore() {
return fraudScore;
}
public void setFraudScore(String fraudScore) {
this.fraudScore = fraudScore;
}
public String getFraudAlert() {
return fraudAlert;
}
public void setFraudAlert(String fraudAlert) {
this.fraudAlert = fraudAlert;
}
public String getActionTaken() {
return actionTaken;
}
public void setActionTaken(String actionTaken) {
this.actionTaken = actionTaken;
}
public String getUserDefinedAlert() {
return userDefinedAlert;
}
public void setUserDefinedAlert(String userDefinedAlert) {
this.userDefinedAlert = userDefinedAlert;
}
public String getDecisionReason() {
return decisionReason;
}
public void setDecisionReason(String decisionReason) {
this.decisionReason = decisionReason;
}
public String getActionUser() {
return actionUser;
}
public void setActionUser(String actionUser) {
this.actionUser = actionUser;
}
public String getRuleTriggered_1() {
return ruleTriggered_1;
}
public void setRuleTriggered_1(String ruleTriggered_1) {
this.ruleTriggered_1 = ruleTriggered_1;
}
public String getRuleTriggered_2() {
return ruleTriggered_2;
}
public void setRuleTriggered_2(String ruleTriggered_2) {
this.ruleTriggered_2 = ruleTriggered_2;
}
public String getRuleTriggered_3() {
return ruleTriggered_3;
}
public void setRuleTriggered_3(String ruleTriggered_3) {
this.ruleTriggered_3 = ruleTriggered_3;
}
public String getRuleTriggered_4() {
return ruleTriggered_4;
}
public void setRuleTriggered_4(String ruleTriggered_4) {
this.ruleTriggered_4 = ruleTriggered_4;
}
public String getRuleTriggered_5() {
return ruleTriggered_5;
}
public void setRuleTriggered_5(String ruleTriggered_5) {
this.ruleTriggered_5 = ruleTriggered_5;
}
public String getRuleTriggered_6() {
return ruleTriggered_6;
}
public void setRuleTriggered_6(String ruleTriggered_6) {
this.ruleTriggered_6 = ruleTriggered_6;
}
public String getRuleTriggered_7() {
return ruleTriggered_7;
}
public void setRuleTriggered_7(String ruleTriggered_7) {
this.ruleTriggered_7 = ruleTriggered_7;
}
public String getRuleTriggered_8() {
return ruleTriggered_8;
}
public void setRuleTriggered_8(String ruleTriggered_8) {
this.ruleTriggered_8 = ruleTriggered_8;
}
public String getRuleTriggered_9() {
return ruleTriggered_9;
}
public void setRuleTriggered_9(String ruleTriggered_9) {
this.ruleTriggered_9 = ruleTriggered_9;
}
public String getRuleTriggered_10() {
return ruleTriggered_10;
}
public void setRuleTriggered_10(String ruleTriggered_10) {
this.ruleTriggered_10 = ruleTriggered_10;
}
public String getRuleTriggered_11() {
return ruleTriggered_11;
}
public void setRuleTriggered_11(String ruleTriggered_11) {
this.ruleTriggered_11 = ruleTriggered_11;
}
public String getRuleTriggered_12() {
return ruleTriggered_12;
}
public void setRuleTriggered_12(String ruleTriggered_12) {
this.ruleTriggered_12 = ruleTriggered_12;
}
public String getRuleTriggered_13() {
return ruleTriggered_13;
}
public void setRuleTriggered_13(String ruleTriggered_13) {
this.ruleTriggered_13 = ruleTriggered_13;
}
public String getRuleTriggered_14() {
return ruleTriggered_14;
}
public void setRuleTriggered_14(String ruleTriggered_14) {
this.ruleTriggered_14 = ruleTriggered_14;
}
public String getRuleTriggered_15() {
return ruleTriggered_15;
}
public void setRuleTriggered_15(String ruleTriggered_15) {
this.ruleTriggered_15 = ruleTriggered_15;
}
public String getRuleTriggered_16() {
return ruleTriggered_16;
}
public void setRuleTriggered_16(String ruleTriggered_16) {
this.ruleTriggered_16 = ruleTriggered_16;
}
public String getRuleTriggered_17() {
return ruleTriggered_17;
}
public void setRuleTriggered_17(String ruleTriggered_17) {
this.ruleTriggered_17 = ruleTriggered_17;
}
public String getRuleTriggered_18() {
return ruleTriggered_18;
}
public void setRuleTriggered_18(String ruleTriggered_18) {
this.ruleTriggered_18 = ruleTriggered_18;
}
public String getRuleTriggered_19() {
return ruleTriggered_19;
}
public void setRuleTriggered_19(String ruleTriggered_19) {
this.ruleTriggered_19 = ruleTriggered_19;
}
public String getRuleTriggered_20() {
return ruleTriggered_20;
}
public void setRuleTriggered_20(String ruleTriggered_20) {
this.ruleTriggered_20 = ruleTriggered_20;
}
public String getDescriptionruletriggered_1() {
return descriptionruletriggered_1;
}
public void setDescriptionruletriggered_1(String descriptionruletriggered_1) {
this.descriptionruletriggered_1 = descriptionruletriggered_1;
}
public String getDescriptionruletriggered_2() {
return descriptionruletriggered_2;
}
public void setDescriptionruletriggered_2(String descriptionruletriggered_2) {
this.descriptionruletriggered_2 = descriptionruletriggered_2;
}
public String getDescriptionruletriggered_3() {
return descriptionruletriggered_3;
}
public void setDescriptionruletriggered_3(String descriptionruletriggered_3) {
this.descriptionruletriggered_3 = descriptionruletriggered_3;
}
public String getDescriptionruletriggered_4() {
return descriptionruletriggered_4;
}
public void setDescriptionruletriggered_4(String descriptionruletriggered_4) {
this.descriptionruletriggered_4 = descriptionruletriggered_4;
}
public String getDescriptionruletriggered_5() {
return descriptionruletriggered_5;
}
public void setDescriptionruletriggered_5(String descriptionruletriggered_5) {
this.descriptionruletriggered_5 = descriptionruletriggered_5;
}
public String getDescriptionruletriggered_6() {
return descriptionruletriggered_6;
}
public void setDescriptionruletriggered_6(String descriptionruletriggered_6) {
this.descriptionruletriggered_6 = descriptionruletriggered_6;
}
public String getDescriptionruletriggered_7() {
return descriptionruletriggered_7;
}
public void setDescriptionruletriggered_7(String descriptionruletriggered_7) {
this.descriptionruletriggered_7 = descriptionruletriggered_7;
}
public String getDescriptionruletriggered_8() {
return descriptionruletriggered_8;
}
public void setDescriptionruletriggered_8(String descriptionruletriggered_8) {
this.descriptionruletriggered_8 = descriptionruletriggered_8;
}
public String getDescriptionruletriggered_9() {
return descriptionruletriggered_9;
}
public void setDescriptionruletriggered_9(String descriptionruletriggered_9) {
this.descriptionruletriggered_9 = descriptionruletriggered_9;
}
public String getDescriptionruletriggered_10() {
return descriptionruletriggered_10;
}
public void setDescriptionruletriggered_10(String descriptionruletriggered_10) {
this.descriptionruletriggered_10 = descriptionruletriggered_10;
}
public String getDescriptionruletriggered_11() {
return descriptionruletriggered_11;
}
public void setDescriptionruletriggered_11(String descriptionruletriggered_11) {
this.descriptionruletriggered_11 = descriptionruletriggered_11;
}
public String getDescriptionruletriggered_12() {
return descriptionruletriggered_12;
}
public void setDescriptionruletriggered_12(String descriptionruletriggered_12) {
this.descriptionruletriggered_12 = descriptionruletriggered_12;
}
public String getDescriptionruletriggered_13() {
return descriptionruletriggered_13;
}
public void setDescriptionruletriggered_13(String descriptionruletriggered_13) {
this.descriptionruletriggered_13 = descriptionruletriggered_13;
}
public String getDescriptionruletriggered_14() {
return descriptionruletriggered_14;
}
public void setDescriptionruletriggered_14(String descriptionruletriggered_14) {
this.descriptionruletriggered_14 = descriptionruletriggered_14;
}
public String getDescriptionruletriggered_15() {
return descriptionruletriggered_15;
}
public void setDescriptionruletriggered_15(String descriptionruletriggered_15) {
this.descriptionruletriggered_15 = descriptionruletriggered_15;
}
public String getDescriptionruletriggered_16() {
return descriptionruletriggered_16;
}
public void setDescriptionruletriggered_16(String descriptionruletriggered_16) {
this.descriptionruletriggered_16 = descriptionruletriggered_16;
}
public String getDescriptionruletriggered_17() {
return descriptionruletriggered_17;
}
public void setDescriptionruletriggered_17(String descriptionruletriggered_17) {
this.descriptionruletriggered_17 = descriptionruletriggered_17;
}
public String getDescriptionruletriggered_18() {
return descriptionruletriggered_18;
}
public void setDescriptionruletriggered_18(String descriptionruletriggered_18) {
this.descriptionruletriggered_18 = descriptionruletriggered_18;
}
public String getDescriptionruletriggered_19() {
return descriptionruletriggered_19;
}
public void setDescriptionruletriggered_19(String descriptionruletriggered_19) {
this.descriptionruletriggered_19 = descriptionruletriggered_19;
}
public String getDescriptionruletriggered_20() {
return descriptionruletriggered_20;
}
public void setDescriptionruletriggered_20(String descriptionruletriggered_20) {
this.descriptionruletriggered_20 = descriptionruletriggered_20;
}
public Diary getDiary() {
return diary;
}
public void setDiary(Diary diary) {
this.diary = diary;
}
}

View File

@ -0,0 +1,49 @@
package com.ample.esb.bean.afs;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class Diary {
@XStreamAlias("DIARY_DATE")
private String diaryDate;
@XStreamAlias("DIARY_TIME")
private String diaryTime;
@XStreamAlias("DIARY_USER_ID")
private String diaryUserId;
@XStreamAlias("DIARY_NOTE")
private String diaryNote;
public String getDiaryDate() {
return diaryDate;
}
public void setDiaryDate(String diaryDate) {
this.diaryDate = diaryDate;
}
public String getDiaryTime() {
return diaryTime;
}
public void setDiaryTime(String diaryTime) {
this.diaryTime = diaryTime;
}
public String getDiaryUserId() {
return diaryUserId;
}
public void setDiaryUserId(String diaryUserId) {
this.diaryUserId = diaryUserId;
}
public String getDiaryNote() {
return diaryNote;
}
public void setDiaryNote(String diaryNote) {
this.diaryNote = diaryNote;
}
}

View File

@ -0,0 +1,148 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class Addr {
@XStreamAlias("PROVINCE")
private String province;
@XStreamAlias("CITY")
private String city;
@XStreamAlias("DISTRICT")
private String district;
@XStreamAlias("PROVINCE_GB")
private String provinceGB;
@XStreamAlias("CITY_GB")
private String cityGB;
@XStreamAlias("DISTRICT_GB")
private String districtGB;
@XStreamAlias("STREET_GB")
private String streetGB;
@XStreamAlias("ADDRESS")
private String address;
@XStreamAlias("POSTCODE")
private String postCode;
@XStreamAlias("ADDRTYPE")
private String addrType;
@XStreamAlias("ADDRNUM")
private String addrNum;
@XStreamAlias("PROPERTY_TYPE_CDE")
private String propertyTypeCde;
@XStreamAlias("HUKOU_ADDRESS")
private String hukouAddress;
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getDistrict() {
return district;
}
public void setDistrict(String district) {
this.district = district;
}
public String getProvinceGB() {
return provinceGB;
}
public void setProvinceGB(String provinceGB) {
this.provinceGB = provinceGB;
}
public String getCityGB() {
return cityGB;
}
public void setCityGB(String cityGB) {
this.cityGB = cityGB;
}
public String getDistrictGB() {
return districtGB;
}
public void setDistrictGB(String districtGB) {
this.districtGB = districtGB;
}
public String getStreetGB() {
return streetGB;
}
public void setStreetGB(String streetGB) {
this.streetGB = streetGB;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPostCode() {
return postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
public String getAddrType() {
return addrType;
}
public void setAddrType(String addrType) {
this.addrType = addrType;
}
public String getAddrNum() {
return addrNum;
}
public void setAddrNum(String addrNum) {
this.addrNum = addrNum;
}
public String getPropertyTypeCde() {
return propertyTypeCde;
}
public void setPropertyTypeCde(String propertyTypeCde) {
this.propertyTypeCde = propertyTypeCde;
}
public String getHukouAddress() {
return hukouAddress;
}
public void setHukouAddress(String hukouAddress) {
this.hukouAddress = hukouAddress;
}
}

View File

@ -0,0 +1,40 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
@XStreamAlias("REQUEST")
public class AmpRequest {
@XStreamAlias("APPLICATION")
private String application;
@XStreamOmitField
private String operatorId;
@XStreamOmitField
private String flowUnid;
public String getOperatorId() {
return operatorId;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
public String getFlowUnid() {
return flowUnid;
}
public void setFlowUnid(String flowUnid) {
this.flowUnid = flowUnid;
}
public String getApplication() {
return application;
}
public void setApplication(String application) {
this.application = application;
}
}

View File

@ -0,0 +1,16 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("RESPONSE")
public class AmpResponse {
@XStreamAlias("RESULT")
private String result;
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
}

View File

@ -0,0 +1,104 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class Applicant2 {
@XStreamAlias("DEALERINFO")
private DealerInfo dealerInfo;
@XStreamAlias("LOANINFO")
private LoanInfo loanInfo;
@XStreamAlias("VEHICLEINFO")
private VehicleInfo vehicleInfo;
@XStreamAlias("CUSTOMERINFO")
private CustomerInfo customerInfo;
@XStreamAlias("COBORROWERS")
private Coborrowers coborrowers;
@XStreamAlias("GUARANTORINFO")
private GuarantorInfo guarantorInfo;
@XStreamAlias("CONTINFO")
private ContInfo contInfo;
@XStreamAlias("APPLICATIONINFO")
private ApplicationInfo applicationInfo;
@XStreamAlias("PREVIOUSLYVEHICLE")
private PreviouslyVehicle previouslyVehicle;
public DealerInfo getDealerInfo() {
return dealerInfo;
}
public void setDealerInfo(DealerInfo dealerInfo) {
this.dealerInfo = dealerInfo;
}
public LoanInfo getLoanInfo() {
return loanInfo;
}
public void setLoanInfo(LoanInfo loanInfo) {
this.loanInfo = loanInfo;
}
public VehicleInfo getVehicleInfo() {
return vehicleInfo;
}
public void setVehicleInfo(VehicleInfo vehicleInfo) {
this.vehicleInfo = vehicleInfo;
}
public CustomerInfo getCustomerInfo() {
return customerInfo;
}
public void setCustomerInfo(CustomerInfo customerInfo) {
this.customerInfo = customerInfo;
}
public Coborrowers getCoborrowers() {
return coborrowers;
}
public void setCoborrowers(Coborrowers coborrowers) {
this.coborrowers = coborrowers;
}
public GuarantorInfo getGuarantorInfo() {
return guarantorInfo;
}
public void setGuarantorInfo(GuarantorInfo guarantorInfo) {
this.guarantorInfo = guarantorInfo;
}
public ContInfo getContInfo() {
return contInfo;
}
public void setContInfo(ContInfo contInfo) {
this.contInfo = contInfo;
}
public ApplicationInfo getApplicationInfo() {
return applicationInfo;
}
public void setApplicationInfo(ApplicationInfo applicationInfo) {
this.applicationInfo = applicationInfo;
}
public PreviouslyVehicle getPreviouslyVehicle() {
return previouslyVehicle;
}
public void setPreviouslyVehicle(PreviouslyVehicle previouslyVehicle) {
this.previouslyVehicle = previouslyVehicle;
}
}

View File

@ -0,0 +1,17 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class Application {
@XStreamAlias("APPLICANT2")
private Applicant2 applicant2;
public Applicant2 getApplicant2() {
return applicant2;
}
public void setApplicant2(Applicant2 applicant2) {
this.applicant2 = applicant2;
}
}

View File

@ -0,0 +1,302 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class ApplicationInfo {
@XStreamAlias("NUMBER")
private String number;
@XStreamAlias("APPLICATION_TYPE")
private String applicationType;
@XStreamAlias("ORIGINAL_SYSTEM_ID")
private String originalSystemId;
@XStreamAlias("TRAN_NO")
private String tranNo;
@XStreamAlias("FIRSTPROPOSALDATE")
private String firstProposalDate;
@XStreamAlias("LASTPROPOSALDATE")
private String lastProposalDate;
@XStreamAlias("FANAME")
private String faName;
@XStreamAlias("FAID")
private String faid;
@XStreamAlias("FACELLPHONE")
private String faCellphone;
@XStreamAlias("FVNAME")
private String fvName;
@XStreamAlias("FVCELLPHONE")
private String fvCellphone;
@XStreamAlias("FVDATEOFFV")
private String fvDateoffv;
@XStreamAlias("FIELDVISITFLAG")
private String fieldVisitFlag;
@XStreamAlias("BUSINESSSTEP")
private String businessStep;
@XStreamAlias("GROUPCUSTOMERUPID")
private String groupCustomerUpId;
@XStreamAlias("GROUPCUSTOMERSPECIALLIMIT")
private String groupCustomerSpecialLimit;
@XStreamAlias("LOANVEHICLE_TYPE")
private String loanvehicleType;
@XStreamAlias("QUERYREASON")
private String queryReason;
@XStreamAlias("CREDITQUERYTYPE")
private String creditQueryType;
@XStreamAlias("CREDITQUERYINTERFACE")
private String creditQueryInterface;
@XStreamAlias("ISVEHICLEGUARANTY")
private String isVehicleGuaranty;
@XStreamAlias("CVHEADVEHICLECOUNT")
private String cvHeadVehicleCount;
@XStreamAlias("SOSRANDOMNUMBER")
private String sosRandomNumber;
@XStreamAlias("APPLICATION_DATE")
private String applicationDate;
@XStreamAlias("APPLICATION_SUBMIT_DATE")
private String applicationSubmitDate;
@XStreamAlias("CUSTOMER_TYPE")
private String customerType;
@XStreamAlias("STATUS_CODE")
private String statusCode;
public String getOriginalSystemId() {
return originalSystemId;
}
public void setOriginalSystemId(String originalSystemId) {
this.originalSystemId = originalSystemId;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getApplicationType() {
return applicationType;
}
public void setApplicationType(String applicationType) {
this.applicationType = applicationType;
}
public String getTranNo() {
return tranNo;
}
public void setTranNo(String tranNo) {
this.tranNo = tranNo;
}
public String getFirstProposalDate() {
return firstProposalDate;
}
public void setFirstProposalDate(String firstProposalDate) {
this.firstProposalDate = firstProposalDate;
}
public String getLastProposalDate() {
return lastProposalDate;
}
public void setLastProposalDate(String lastProposalDate) {
this.lastProposalDate = lastProposalDate;
}
public String getFaName() {
return faName;
}
public void setFaName(String faName) {
this.faName = faName;
}
public String getFaid() {
return faid;
}
public void setFaid(String faid) {
this.faid = faid;
}
public String getFaCellphone() {
return faCellphone;
}
public void setFaCellphone(String faCellphone) {
this.faCellphone = faCellphone;
}
public String getFvName() {
return fvName;
}
public void setFvName(String fvName) {
this.fvName = fvName;
}
public String getFvCellphone() {
return fvCellphone;
}
public void setFvCellphone(String fvCellphone) {
this.fvCellphone = fvCellphone;
}
public String getFvDateoffv() {
return fvDateoffv;
}
public void setFvDateoffv(String fvDateoffv) {
this.fvDateoffv = fvDateoffv;
}
public String getFieldVisitFlag() {
return fieldVisitFlag;
}
public void setFieldVisitFlag(String fieldVisitFlag) {
this.fieldVisitFlag = fieldVisitFlag;
}
public String getBusinessStep() {
return businessStep;
}
public void setBusinessStep(String businessStep) {
this.businessStep = businessStep;
}
public String getGroupCustomerUpId() {
return groupCustomerUpId;
}
public void setGroupCustomerUpId(String groupCustomerUpId) {
this.groupCustomerUpId = groupCustomerUpId;
}
public String getGroupCustomerSpecialLimit() {
return groupCustomerSpecialLimit;
}
public void setGroupCustomerSpecialLimit(String groupCustomerSpecialLimit) {
this.groupCustomerSpecialLimit = groupCustomerSpecialLimit;
}
public String getLoanvehicleType() {
return loanvehicleType;
}
public void setLoanvehicleType(String loanvehicleType) {
this.loanvehicleType = loanvehicleType;
}
public String getQueryReason() {
return queryReason;
}
public void setQueryReason(String queryReason) {
this.queryReason = queryReason;
}
public String getCreditQueryType() {
return creditQueryType;
}
public void setCreditQueryType(String creditQueryType) {
this.creditQueryType = creditQueryType;
}
public String getCreditQueryInterface() {
return creditQueryInterface;
}
public void setCreditQueryInterface(String creditQueryInterface) {
this.creditQueryInterface = creditQueryInterface;
}
public String getIsVehicleGuaranty() {
return isVehicleGuaranty;
}
public void setIsVehicleGuaranty(String isVehicleGuaranty) {
this.isVehicleGuaranty = isVehicleGuaranty;
}
public String getCvHeadVehicleCount() {
return cvHeadVehicleCount;
}
public void setCvHeadVehicleCount(String cvHeadVehicleCount) {
this.cvHeadVehicleCount = cvHeadVehicleCount;
}
public String getSosRandomNumber() {
return sosRandomNumber;
}
public void setSosRandomNumber(String sosRandomNumber) {
this.sosRandomNumber = sosRandomNumber;
}
public String getApplicationDate() {
return applicationDate;
}
public void setApplicationDate(String applicationDate) {
this.applicationDate = applicationDate;
}
public String getApplicationSubmitDate() {
return applicationSubmitDate;
}
public void setApplicationSubmitDate(String applicationSubmitDate) {
this.applicationSubmitDate = applicationSubmitDate;
}
public String getCustomerType() {
return customerType;
}
public void setCustomerType(String customerType) {
this.customerType = customerType;
}
public String getStatusCode() {
return statusCode;
}
public void setStatusCode(String statusCode) {
this.statusCode = statusCode;
}
}

View File

@ -0,0 +1,17 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("APPLICATION")
public class ApplicationTitle {
@XStreamAlias("APPLICANT2")
private Applicant2 applicant2;
public Applicant2 getApplicant2() {
return applicant2;
}
public void setApplicant2(Applicant2 applicant2) {
this.applicant2 = applicant2;
}
}

View File

@ -0,0 +1,8 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("COBORROWER")
public class Coborrower extends CustomerInfo{
}

View File

@ -0,0 +1,18 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.List;
public class Coborrowers {
@XStreamImplicit
private List<Coborrower> coborrower;
public List<Coborrower> getCoborrower() {
return coborrower;
}
public void setCoborrower(List<Coborrower> coborrower) {
this.coborrower = coborrower;
}
}

View File

@ -0,0 +1,19 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.List;
public class ContInfo {
@XStreamImplicit
private List<Contr> contrs;
public List<Contr> getContrs() {
return contrs;
}
public void setContrs(List<Contr> contrs) {
this.contrs = contrs;
}
}

View File

@ -0,0 +1,62 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("CONTR")
public class Contr {
@XStreamAlias("CONTNUM")
private String contNum;
@XStreamAlias("RELATIONSHIPCODE")
private String relationshipCode;
@XStreamAlias("CHNAME")
private String chName;
@XStreamAlias("CELLPHONE")
private String cellPhone;
@XStreamAlias("MOBILE")
private String mobile;
public String getContNum() {
return contNum;
}
public void setContNum(String contNum) {
this.contNum = contNum;
}
public String getCellPhone() {
return cellPhone;
}
public void setCellPhone(String cellPhone) {
this.cellPhone = cellPhone;
}
public String getRelationshipCode() {
return relationshipCode;
}
public void setRelationshipCode(String relationshipCode) {
this.relationshipCode = relationshipCode;
}
public String getChName() {
return chName;
}
public void setChName(String chName) {
this.chName = chName;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
}

View File

@ -0,0 +1,908 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class CustomerInfo {
@XStreamAlias("CHNAME")
private String chName;
@XStreamAlias("IDTYPECODE")
private String idTypeCode;
@XStreamAlias("IDCARDNUM")
private String idCardNum;
@XStreamAlias("AGE_IN_YEAR")
private Integer ageInYear;
@XStreamAlias("GENDERCODE")
private String genderCode;
@XStreamAlias("MARITALSTATUSCODE")
private String maritalStatusCode;
@XStreamAlias("EDUCATIONCODE")
private String educationCode;
@XStreamAlias("RESIDENTIALSTATUSCODE")
private String residentialStatusCode;
@XStreamAlias("MONTHLYINCOME")
private String monthlyIncome;
@XStreamAlias("ANNUALINCOME")
private String annualIncome;
@XStreamAlias("MONTHLYDTI")
private String monthlyDTI;
@XStreamAlias("NOOFDEPENDENTS")
private String noOfDependents;
@XStreamAlias("EMPEMPLOYERNAME")
private String empemployerName;
@XStreamAlias("EMPBUSINESSTYPECODE")
private String empBusinessTypeCode;
@XStreamAlias("EMPOCCUPATIONCODE")
private String empOccupationCode;
@XStreamAlias("EMPPOSITIONCODE")
private String empPositionCode;
@XStreamAlias("EMPPROFESSIONALRANK")
private String empProfessionalRank;
@XStreamAlias("WORKSINCE")
private String workSince;
@XStreamAlias("EMPTIMEOFEMPLOYEE")
private String empTimeOfEmployee;
@XStreamAlias("PHONECELLPHONE01")
private String phoneCellphone01;
@XStreamAlias("PHONECELLPHONE02")
private String phoneCellphone02;
@XStreamAlias("PHONEHOME")
private String phoneHome;
@XStreamAlias("PHONEOFFICE")
private String phoneOffice;
@XStreamAlias("BANKSTATEMENTSTATUSCODE")
private String bankStatementStatusCode;
@XStreamAlias("LOCALRESIDENTFLAG")
private String localResidentFlag;
@XStreamAlias("LOCALAPPLICANTFLAG")
private String localApplicantFlag;
@XStreamAlias("VIPCUST")
private String vipCust;
@XStreamAlias("REPEATEDAPPLICANTTFLAG")
private Integer repeatedApplicantFlag;
@XStreamAlias("HUKOUTYPE")
private String hukouType;
@XStreamAlias("HIGHESTEDUCATION")
private String highestEducation;
@XStreamAlias("HIGHESTDEGREE")
private String highestDegree;
@XStreamAlias("OFFICEPOSTCODE")
private String officePostCode;
@XStreamAlias("CURRENTOFFICEENTRYDATE")
private String currentOfficeEntryDate;
@XStreamAlias("PHSNUMBER")
private String phsNumber;
@XStreamAlias("EMAIL")
private String email;
@XStreamAlias("HASDRIVINGLICENCE")
private String hasDrivingLicence;
@XStreamAlias("ALLOWDRIVINGTYPE")
private String allowDrivingType;
@XStreamAlias("CHECKED_TYPE")
private String checkedType;
@XStreamAlias("LOANCARDNUMBER")
private String loanCardNumber;
@XStreamAlias("LOANCARDPASSWORD")
private String loanCardPassword;
@XStreamAlias("ARCHIVEURL")
private String archiveUrl;
@XStreamAlias("AGE_IN_MONTH")
private Integer ageInMonth;
@XStreamAlias("CHILDREN_FLAG")
private String childrenFlag;
@XStreamAlias("BLACKLIST_IND")
private String blacklistInd;
@XStreamAlias("THAI_TITLE_CDE")
private String thaiTitleCde;
@XStreamAlias("EXPENSE")
private String expense;
@XStreamAlias("BRITHDAY")
private String brithday;
@XStreamAlias("LICENSE_EXPIRE_DATE")
private String licenseExpireDate;
@XStreamAlias("COUNTRY_CODE")
private String countryCode;
@XStreamAlias("AREA_CODE")
private String areaCode;
@XStreamAlias("EXTENTION_NBR")
private String extentionNbr;
@XStreamAlias("PHONE_TYPE_CDE")
private String phoneTypeCde;
@XStreamAlias("DESIGNATION_CDE")
private String designationCde;
@XStreamAlias("CITY_CDE")
private String cityCde;
@XStreamAlias("STATE_CDE")
private String stateCde;
@XStreamAlias("PROVINCE_GB")
private String provinceGB;
@XStreamAlias("CITY_GB")
private String cityGB;
@XStreamAlias("DISTRICT_GB")
private String districtGB;
@XStreamAlias("STREET_GB")
private String streetGB;
@XStreamAlias("BUSINESS_NATURE_CDE")
private String businessNatureCde;
@XStreamAlias("POST_CODE")
private String postCode;
@XStreamAlias("EMPLOY_ADDRESS")
private String employAddress;
@XStreamAlias("OCCUPATION_CODE")
private String occupationCode;
@XStreamAlias("BUSINESS_TYPE_CDE")
private String businessTypeCde;
@XStreamAlias("TIME_IN_YEAR_2")
private String timeInYear2;
@XStreamAlias("RANK_CDE")
private String rankCde;
@XStreamAlias("OCCUPATION_CDE")
private String occupationCde;
@XStreamAlias("INDUSTRY_TYPE_CDE")
private String industryTypeCde;
@XStreamAlias("ADDR")
private Addr addr;
@XStreamAlias("EXPOSURE")
private Exposure exposure;
@XStreamAlias("ID_CARD_TERM_BEGIN_DATE")
private String idCardTermBeginDate;
@XStreamAlias("ID_CARD_TERM_END_DATE")
private String idCardTermEndDate;
@XStreamAlias("RELATIONSHIPCODE")
private String relationshipCode;
@XStreamAlias("OPEN_BANK_MOBILE_NO")
private String openBankMobileNo;
@XStreamAlias("CUST_TYPE_ID")
private String custTypeId;
@XStreamAlias("NATION_ID")
private String nationId;
@XStreamAlias("CENSUS_REG_ADDR")
private String censusRegAddr;
@XStreamAlias("TEL_WORK_NO")
private String telWorkNo;
@XStreamAlias("BORROWERID")
private String borrowerId;
@XStreamAlias("GUARNUM")
private String guarNum;
@XStreamAlias("QUERYREASON")
private String queryReason;
public void setAgeInYear(Integer ageInYear) {
this.ageInYear = ageInYear;
}
public void setRepeatedApplicantFlag(Integer repeatedApplicantFlag) {
this.repeatedApplicantFlag = repeatedApplicantFlag;
}
public void setAgeInMonth(Integer ageInMonth) {
this.ageInMonth = ageInMonth;
}
public String getQueryReason() {
return queryReason;
}
public void setQueryReason(String queryReason) {
this.queryReason = queryReason;
}
public String getGuarNum() {
return guarNum;
}
public void setGuarNum(String guarNum) {
this.guarNum = guarNum;
}
public String getBorrowerId() {
return borrowerId;
}
public void setBorrowerId(String borrowerId) {
this.borrowerId = borrowerId;
}
public String getTelWorkNo() {
return telWorkNo;
}
public void setTelWorkNo(String telWorkNo) {
this.telWorkNo = telWorkNo;
}
public String getCensusRegAddr() {
return censusRegAddr;
}
public void setCensusRegAddr(String censusRegAddr) {
this.censusRegAddr = censusRegAddr;
}
public String getNationId() {
return nationId;
}
public void setNationId(String nationId) {
this.nationId = nationId;
}
public String getCustTypeId() {
return custTypeId;
}
public void setCustTypeId(String custTypeId) {
this.custTypeId = custTypeId;
}
public String getOpenBankMobileNo() {
return openBankMobileNo;
}
public void setOpenBankMobileNo(String openBankMobileNo) {
this.openBankMobileNo = openBankMobileNo;
}
public String getRelationshipCode() {
return relationshipCode;
}
public void setRelationshipCode(String relationshipCode) {
this.relationshipCode = relationshipCode;
}
public String getChName() {
return chName;
}
public void setChName(String chName) {
this.chName = chName;
}
public String getIdTypeCode() {
return idTypeCode;
}
public void setIdTypeCode(String idTypeCode) {
this.idTypeCode = idTypeCode;
}
public String getIdCardNum() {
return idCardNum;
}
public void setIdCardNum(String idCardNum) {
this.idCardNum = idCardNum;
}
public int getAgeInYear() {
return ageInYear;
}
public void setAgeInYear(int ageInYear) {
this.ageInYear = ageInYear;
}
public String getGenderCode() {
return genderCode;
}
public void setGenderCode(String genderCode) {
this.genderCode = genderCode;
}
public String getMaritalStatusCode() {
return maritalStatusCode;
}
public void setMaritalStatusCode(String maritalStatusCode) {
this.maritalStatusCode = maritalStatusCode;
}
public String getEducationCode() {
return educationCode;
}
public void setEducationCode(String educationCode) {
this.educationCode = educationCode;
}
public String getResidentialStatusCode() {
return residentialStatusCode;
}
public void setResidentialStatusCode(String residentialStatusCode) {
this.residentialStatusCode = residentialStatusCode;
}
public String getMonthlyIncome() {
return monthlyIncome;
}
public void setMonthlyIncome(String monthlyIncome) {
this.monthlyIncome = monthlyIncome;
}
public String getAnnualIncome() {
return annualIncome;
}
public void setAnnualIncome(String annualIncome) {
this.annualIncome = annualIncome;
}
public String getMonthlyDTI() {
return monthlyDTI;
}
public void setMonthlyDTI(String monthlyDTI) {
this.monthlyDTI = monthlyDTI;
}
public String getNoOfDependents() {
return noOfDependents;
}
public void setNoOfDependents(String noOfDependents) {
this.noOfDependents = noOfDependents;
}
public String getEmpemployerName() {
return empemployerName;
}
public void setEmpemployerName(String empemployerName) {
this.empemployerName = empemployerName;
}
public String getEmpBusinessTypeCode() {
return empBusinessTypeCode;
}
public void setEmpBusinessTypeCode(String empBusinessTypeCode) {
this.empBusinessTypeCode = empBusinessTypeCode;
}
public String getEmpOccupationCode() {
return empOccupationCode;
}
public void setEmpOccupationCode(String empOccupationCode) {
this.empOccupationCode = empOccupationCode;
}
public String getEmpPositionCode() {
return empPositionCode;
}
public void setEmpPositionCode(String empPositionCode) {
this.empPositionCode = empPositionCode;
}
public String getEmpProfessionalRank() {
return empProfessionalRank;
}
public void setEmpProfessionalRank(String empProfessionalRank) {
this.empProfessionalRank = empProfessionalRank;
}
public String getWorkSince() {
return workSince;
}
public void setWorkSince(String workSince) {
this.workSince = workSince;
}
public String getEmpTimeOfEmployee() {
return empTimeOfEmployee;
}
public void setEmpTimeOfEmployee(String empTimeOfEmployee) {
this.empTimeOfEmployee = empTimeOfEmployee;
}
public String getPhoneCellphone01() {
return phoneCellphone01;
}
public void setPhoneCellphone01(String phoneCellphone01) {
this.phoneCellphone01 = phoneCellphone01;
}
public String getPhoneCellphone02() {
return phoneCellphone02;
}
public void setPhoneCellphone02(String phoneCellphone02) {
this.phoneCellphone02 = phoneCellphone02;
}
public String getPhoneHome() {
return phoneHome;
}
public void setPhoneHome(String phoneHome) {
this.phoneHome = phoneHome;
}
public String getPhoneOffice() {
return phoneOffice;
}
public void setPhoneOffice(String phoneOffice) {
this.phoneOffice = phoneOffice;
}
public String getBankStatementStatusCode() {
return bankStatementStatusCode;
}
public void setBankStatementStatusCode(String bankStatementStatusCode) {
this.bankStatementStatusCode = bankStatementStatusCode;
}
public String getLocalResidentFlag() {
return localResidentFlag;
}
public void setLocalResidentFlag(String localResidentFlag) {
this.localResidentFlag = localResidentFlag;
}
public String getLocalApplicantFlag() {
return localApplicantFlag;
}
public void setLocalApplicantFlag(String localApplicantFlag) {
this.localApplicantFlag = localApplicantFlag;
}
public String getVipCust() {
return vipCust;
}
public void setVipCust(String vipCust) {
this.vipCust = vipCust;
}
public int getRepeatedApplicantFlag() {
return repeatedApplicantFlag;
}
public void setRepeatedApplicantFlag(int repeatedApplicantFlag) {
this.repeatedApplicantFlag = repeatedApplicantFlag;
}
public String getHukouType() {
return hukouType;
}
public void setHukouType(String hukouType) {
this.hukouType = hukouType;
}
public String getHighestEducation() {
return highestEducation;
}
public void setHighestEducation(String highestEducation) {
this.highestEducation = highestEducation;
}
public String getHighestDegree() {
return highestDegree;
}
public void setHighestDegree(String highestDegree) {
this.highestDegree = highestDegree;
}
public String getOfficePostCode() {
return officePostCode;
}
public void setOfficePostCode(String officePostCode) {
this.officePostCode = officePostCode;
}
public String getCurrentOfficeEntryDate() {
return currentOfficeEntryDate;
}
public void setCurrentOfficeEntryDate(String currentOfficeEntryDate) {
this.currentOfficeEntryDate = currentOfficeEntryDate;
}
public String getPhsNumber() {
return phsNumber;
}
public void setPhsNumber(String phsNumber) {
this.phsNumber = phsNumber;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getHasDrivingLicence() {
return hasDrivingLicence;
}
public void setHasDrivingLicence(String hasDrivingLicence) {
this.hasDrivingLicence = hasDrivingLicence;
}
public String getAllowDrivingType() {
return allowDrivingType;
}
public void setAllowDrivingType(String allowDrivingType) {
this.allowDrivingType = allowDrivingType;
}
public String getCheckedType() {
return checkedType;
}
public void setCheckedType(String checkedType) {
this.checkedType = checkedType;
}
public String getLoanCardNumber() {
return loanCardNumber;
}
public void setLoanCardNumber(String loanCardNumber) {
this.loanCardNumber = loanCardNumber;
}
public String getLoanCardPassword() {
return loanCardPassword;
}
public void setLoanCardPassword(String loanCardPassword) {
this.loanCardPassword = loanCardPassword;
}
public String getArchiveUrl() {
return archiveUrl;
}
public void setArchiveUrl(String archiveUrl) {
this.archiveUrl = archiveUrl;
}
public int getAgeInMonth() {
return ageInMonth;
}
public void setAgeInMonth(int ageInMonth) {
this.ageInMonth = ageInMonth;
}
public String getChildrenFlag() {
return childrenFlag;
}
public void setChildrenFlag(String childrenFlag) {
this.childrenFlag = childrenFlag;
}
public String getBlacklistInd() {
return blacklistInd;
}
public void setBlacklistInd(String blacklistInd) {
this.blacklistInd = blacklistInd;
}
public String getThaiTitleCde() {
return thaiTitleCde;
}
public void setThaiTitleCde(String thaiTitleCde) {
this.thaiTitleCde = thaiTitleCde;
}
public String getExpense() {
return expense;
}
public void setExpense(String expense) {
this.expense = expense;
}
public String getBrithday() {
return brithday;
}
public void setBrithday(String brithday) {
this.brithday = brithday;
}
public String getLicenseExpireDate() {
return licenseExpireDate;
}
public void setLicenseExpireDate(String licenseExpireDate) {
this.licenseExpireDate = licenseExpireDate;
}
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
public String getAreaCode() {
return areaCode;
}
public void setAreaCode(String areaCode) {
this.areaCode = areaCode;
}
public String getExtentionNbr() {
return extentionNbr;
}
public void setExtentionNbr(String extentionNbr) {
this.extentionNbr = extentionNbr;
}
public String getPhoneTypeCde() {
return phoneTypeCde;
}
public void setPhoneTypeCde(String phoneTypeCde) {
this.phoneTypeCde = phoneTypeCde;
}
public String getDesignationCde() {
return designationCde;
}
public void setDesignationCde(String designationCde) {
this.designationCde = designationCde;
}
public String getCityCde() {
return cityCde;
}
public void setCityCde(String cityCde) {
this.cityCde = cityCde;
}
public String getStateCde() {
return stateCde;
}
public void setStateCde(String stateCde) {
this.stateCde = stateCde;
}
public String getProvinceGB() {
return provinceGB;
}
public void setProvinceGB(String provinceGB) {
this.provinceGB = provinceGB;
}
public String getCityGB() {
return cityGB;
}
public void setCityGB(String cityGB) {
this.cityGB = cityGB;
}
public String getDistrictGB() {
return districtGB;
}
public void setDistrictGB(String districtGB) {
this.districtGB = districtGB;
}
public String getStreetGB() {
return streetGB;
}
public void setStreetGB(String streetGB) {
this.streetGB = streetGB;
}
public String getBusinessNatureCde() {
return businessNatureCde;
}
public void setBusinessNatureCde(String businessNatureCde) {
this.businessNatureCde = businessNatureCde;
}
public String getPostCode() {
return postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
public String getEmployAddress() {
return employAddress;
}
public void setEmployAddress(String employAddress) {
this.employAddress = employAddress;
}
public String getOccupationCode() {
return occupationCode;
}
public void setOccupationCode(String occupationCode) {
this.occupationCode = occupationCode;
}
public String getBusinessTypeCde() {
return businessTypeCde;
}
public void setBusinessTypeCde(String businessTypeCde) {
this.businessTypeCde = businessTypeCde;
}
public String getTimeInYear2() {
return timeInYear2;
}
public void setTimeInYear2(String timeInYear2) {
this.timeInYear2 = timeInYear2;
}
public String getRankCde() {
return rankCde;
}
public void setRankCde(String rankCde) {
this.rankCde = rankCde;
}
public String getOccupationCde() {
return occupationCde;
}
public void setOccupationCde(String occupationCde) {
this.occupationCde = occupationCde;
}
public String getIndustryTypeCde() {
return industryTypeCde;
}
public void setIndustryTypeCde(String industryTypeCde) {
this.industryTypeCde = industryTypeCde;
}
public Addr getAddr() {
return addr;
}
public void setAddr(Addr addr) {
this.addr = addr;
}
public Exposure getExposure() {
return exposure;
}
public void setExposure(Exposure exposure) {
this.exposure = exposure;
}
public String getIdCardTermBeginDate() {
return idCardTermBeginDate;
}
public void setIdCardTermBeginDate(String idCardTermBeginDate) {
this.idCardTermBeginDate = idCardTermBeginDate;
}
public String getIdCardTermEndDate() {
return idCardTermEndDate;
}
public void setIdCardTermEndDate(String idCardTermEndDate) {
this.idCardTermEndDate = idCardTermEndDate;
}
}

View File

@ -0,0 +1,258 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class DealerInfo {
@XStreamAlias("DEALERNAME")
private String dealerName;
@XStreamAlias("DEALERID")
private String dealerId;
@XStreamAlias("DEALERMODE")
private String dealerMode;
@XStreamAlias("DEALERPROVINCE")
private String dealerProvince;
@XStreamAlias("DEALERCITY")
private String dealerCity;
@XStreamAlias("DEALERPROVINCE_GB")
private String dealerProvince_gb;
@XStreamAlias("DEALERCITY_GB")
private String dealerCity_gb;
@XStreamAlias("DEALERDISTRICT_GB")
private String dealerDistrict_gb;
@XStreamAlias("DEALERSTREET_GB")
private String dealerStreet_gb;
@XStreamAlias("SUBDEALERNAME")
private String subDealerName;
@XStreamAlias("DEALERGUARANTEERATIO")
private String dealerGuaranteeRatio;
@XStreamAlias("DEALERFILEDVISITFLAG")
private String dealerFiledVisitFlag;
@XStreamAlias("SUBDEALERAPPFLAG")
private String subDealerAppFlag;
@XStreamAlias("DEALERAREA")
private String dealerArea;
@XStreamAlias("SUBDEALERCODE")
private String subDealerCode;
@XStreamAlias("DEALERTOTALUSEDAMOUNT")
private String dealerTotalUsedAmount;
@XStreamAlias("DEALERAVAILABLEAMOUNT")
private String dealerAvailableAmount;
@XStreamAlias("APPROVALCOUNTTHISMONTH")
private int approvalCountThisMonth;
@XStreamAlias("REFUSECOUNTTHISMONTH")
private int refuseCountThisMonth;
@XStreamAlias("LOANCOUNTTHISMONTH")
private int loanCountThisMonth;
@XStreamAlias("APPROVALCOUNTTHISYEAR")
private int approvalCountThisYear;
@XStreamAlias("REFUSECOUNTTHISYEAR")
private int refuseCountThisYear;
@XStreamAlias("LOANCOUNTTHISYEAR")
private int loanCountThisYear;
public String getDealerName() {
return dealerName;
}
public void setDealerName(String dealerName) {
this.dealerName = dealerName;
}
public String getDealerId() {
return dealerId;
}
public void setDealerId(String dealerId) {
this.dealerId = dealerId;
}
public String getDealerMode() {
return dealerMode;
}
public void setDealerMode(String dealerMode) {
this.dealerMode = dealerMode;
}
public String getDealerProvince() {
return dealerProvince;
}
public void setDealerProvince(String dealerProvince) {
this.dealerProvince = dealerProvince;
}
public String getDealerCity() {
return dealerCity;
}
public void setDealerCity(String dealerCity) {
this.dealerCity = dealerCity;
}
public String getDealerProvince_gb() {
return dealerProvince_gb;
}
public void setDealerProvince_gb(String dealerProvince_gb) {
this.dealerProvince_gb = dealerProvince_gb;
}
public String getDealerCity_gb() {
return dealerCity_gb;
}
public void setDealerCity_gb(String dealerCity_gb) {
this.dealerCity_gb = dealerCity_gb;
}
public String getDealerDistrict_gb() {
return dealerDistrict_gb;
}
public void setDealerDistrict_gb(String dealerDistrict_gb) {
this.dealerDistrict_gb = dealerDistrict_gb;
}
public String getDealerStreet_gb() {
return dealerStreet_gb;
}
public void setDealerStreet_gb(String dealerStreet_gb) {
this.dealerStreet_gb = dealerStreet_gb;
}
public String getSubDealerName() {
return subDealerName;
}
public void setSubDealerName(String subDealerName) {
this.subDealerName = subDealerName;
}
public String getDealerGuaranteeRatio() {
return dealerGuaranteeRatio;
}
public void setDealerGuaranteeRatio(String dealerGuaranteeRatio) {
this.dealerGuaranteeRatio = dealerGuaranteeRatio;
}
public String getDealerFiledVisitFlag() {
return dealerFiledVisitFlag;
}
public void setDealerFiledVisitFlag(String dealerFiledVisitFlag) {
this.dealerFiledVisitFlag = dealerFiledVisitFlag;
}
public String getSubDealerAppFlag() {
return subDealerAppFlag;
}
public void setSubDealerAppFlag(String subDealerAppFlag) {
this.subDealerAppFlag = subDealerAppFlag;
}
public String getDealerArea() {
return dealerArea;
}
public void setDealerArea(String dealerArea) {
this.dealerArea = dealerArea;
}
public String getSubDealerCode() {
return subDealerCode;
}
public void setSubDealerCode(String subDealerCode) {
this.subDealerCode = subDealerCode;
}
public String getDealerTotalUsedAmount() {
return dealerTotalUsedAmount;
}
public void setDealerTotalUsedAmount(String dealerTotalUsedAmount) {
this.dealerTotalUsedAmount = dealerTotalUsedAmount;
}
public String getDealerAvailableAmount() {
return dealerAvailableAmount;
}
public void setDealerAvailableAmount(String dealerAvailableAmount) {
this.dealerAvailableAmount = dealerAvailableAmount;
}
public int getApprovalCountThisMonth() {
return approvalCountThisMonth;
}
public void setApprovalCountThisMonth(int approvalCountThisMonth) {
this.approvalCountThisMonth = approvalCountThisMonth;
}
public int getRefuseCountThisMonth() {
return refuseCountThisMonth;
}
public void setRefuseCountThisMonth(int refuseCountThisMonth) {
this.refuseCountThisMonth = refuseCountThisMonth;
}
public int getLoanCountThisMonth() {
return loanCountThisMonth;
}
public void setLoanCountThisMonth(int loanCountThisMonth) {
this.loanCountThisMonth = loanCountThisMonth;
}
public int getApprovalCountThisYear() {
return approvalCountThisYear;
}
public void setApprovalCountThisYear(int approvalCountThisYear) {
this.approvalCountThisYear = approvalCountThisYear;
}
public int getRefuseCountThisYear() {
return refuseCountThisYear;
}
public void setRefuseCountThisYear(int refuseCountThisYear) {
this.refuseCountThisYear = refuseCountThisYear;
}
public int getLoanCountThisYear() {
return loanCountThisYear;
}
public void setLoanCountThisYear(int loanCountThisYear) {
this.loanCountThisYear = loanCountThisYear;
}
}

View File

@ -0,0 +1,49 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class Exposure {
@XStreamAlias("OUTSTANDING")
private String outstanding;
@XStreamAlias("APPROVAL_AMT")
private String approvalAmt;
@XStreamAlias("OS_NUM")
private int osNum;
@XStreamAlias("APPROVAL_NUM")
private int approvalNum;
public String getOutstanding() {
return outstanding;
}
public void setOutstanding(String outstanding) {
this.outstanding = outstanding;
}
public String getApprovalAmt() {
return approvalAmt;
}
public void setApprovalAmt(String approvalAmt) {
this.approvalAmt = approvalAmt;
}
public int getOsNum() {
return osNum;
}
public void setOsNum(int osNum) {
this.osNum = osNum;
}
public int getApprovalNum() {
return approvalNum;
}
public void setApprovalNum(int approvalNum) {
this.approvalNum = approvalNum;
}
}

View File

@ -0,0 +1,8 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("GUAR")
public class Guar extends CustomerInfo{
}

View File

@ -0,0 +1,18 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.List;
public class GuarantorInfo {
@XStreamImplicit
private List<Guar> Guars;
public List<Guar> getGuars() {
return Guars;
}
public void setGuars(List<Guar> guars) {
Guars = guars;
}
}

View File

@ -0,0 +1,644 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class LoanInfo {
@XStreamAlias("PRODUCTID")
private String productId;
@XStreamAlias("PRODUCTNAME")
private String productName;
@XStreamAlias("PRODUCTTYPE")
private String productType;
@XStreamAlias("SUBSITYTYPECODE")
private String subsityTypeCode;
@XStreamAlias("INTERESTRATE")
private String interestRate;
@XStreamAlias("DOWNPAYMENTPERCENTAGE")
private String downPaymentPercentage;
@XStreamAlias("DOWNPAYMENTBYFINANCEPERCENTAGE")
private String downPaymentByFinancePercentage;
@XStreamAlias("DOWNPAYMENTTOTALAMOUNT")
private String downPaymentTotalAmount;
@XStreamAlias("FINANCEAMOUNTUNIT")
private String financeAmountUnit;
@XStreamAlias("FINANCEAMOUNTTOTAL")
private String financeAmountTotal;
@XStreamAlias("TERMS")
private String terms;
@XStreamAlias("INSTALLMENTUNIT")
private String installmentUnit;
@XStreamAlias("INSTALLMENTTOTAL")
private double installmentTotal;
@XStreamAlias("INTERESTUNIT")
private String interestUnit;
@XStreamAlias("INTERESTTOTAL")
private Double interestTotal;
@XStreamAlias("CUSTINTERESTUNIT")
private String custInterestUnit;
@XStreamAlias("CUSTINTERESTTOTAL")
private double custInterestTotal;
@XStreamAlias("CUSTINTERESTTOTALDEPOSIT")
private String custInterestTotalDeposit;
@XStreamAlias("DEALERINTERESTUNIT")
private String dealerInterestUnit;
@XStreamAlias("DEALERINTERESTTOTAL")
private String dealerInterestTotal;
@XStreamAlias("DEALERINTERESTTOTALDEPOSIT")
private String dealerInterestTotalDeposit;
@XStreamAlias("MAKERINTERESTUNIT")
private String makerInterestUnit;
@XStreamAlias("MAKERINTERESTTOTAL")
private double makerInterestTotal;
@XStreamAlias("MAKERINTERESTTOTALDEPOSIT")
private String makerInterestTotalDeposit;
@XStreamAlias("ISSUBSITY")
private String isSubsity;
@XStreamAlias("CONTRACTPRICETOTAL")
private String contractPriceTotal;
@XStreamAlias("MONTHINTERESTRATE")
private String monthInterestRate;
@XStreamAlias("PAYTYPE")
private String payType;
@XStreamAlias("PAYREMARK")
private String payRemark;
@XStreamAlias("ISLINKED")
private String isLinked;
@XStreamAlias("LINKEDCOMPANY")
private String linkedCompany;
@XStreamAlias("LINKEDCOMPANYTYPE")
private String linkedCompanyType;
@XStreamAlias("RESERVESTRING1")
private String reserveString1;
@XStreamAlias("RESERVESTRING2")
private String reserveString2;
@XStreamAlias("RESERVESTRING3")
private String reserveString3;
@XStreamAlias("RESERVESTRING4")
private String reserveString4;
@XStreamAlias("RESERVESTRING5")
private String reserveString5;
@XStreamAlias("ASSET_PURPOSE")
private String assetPurpose;
@XStreamAlias("BALLOON_PERCENTAGE")
private String balloonPercentage;
@XStreamAlias("BALLOON_AMOUNT")
private String balloonAmount;
@XStreamAlias("FINANCED_AMT_PCT")
private String financedAmtPct;
@XStreamAlias("RENTAL_CALCULATION_MTD")
private String rentalCalculationMtd;
@XStreamAlias("BASE_CUSTOMER_RATE")
private String baseCustomerRate;
@XStreamAlias("SUBSIDY_RTE")
private String subsidyRte;
@XStreamAlias("CALC_SUBSIDY_RTE")
private String calcSubsidyRte;
@XStreamAlias("CALC_SUBSIDY_AMT")
private String calcSubsidyAmt;
@XStreamAlias("ACTUAL_RTE")
private String actualRte;
@XStreamAlias("PAYMENT_SCHEME")
private String paymentScheme;
@XStreamAlias("DEALER_SUBSIDY_PCT")
private String dealerSubsidyPct;
@XStreamAlias("MANUFACTURER_SUBSIDY_PCT")
private String manufacturerSubsidyPct;
@XStreamAlias("CALC_DEALER_SUBSIDY_AMT")
private double calcDealerSubsidyAmt;
@XStreamAlias("CALC_MANUFACTURER_SUBSIDY_AMT")
private double calcManufacturerSubsidyAmt;
@XStreamAlias("CAR_COUNT")
private int carCount;
@XStreamAlias("EXPOSURES_NUMBER")
private int exposuresNumber;
@XStreamAlias("EXPOSURE_AMOUNT")
private String exposureAmount;
@XStreamAlias("CAR_REAL_DOWN_PAYMENT_RATIO")
private String carRealDownPaymentRatio;
@XStreamAlias("CAR_REAL_DOWN_PAYMENT_AMT")
private String carRealDownPaymentAmt;
@XStreamAlias("FINANCING_RATIO")
private double financingRatio;
public String getCarRealDownPaymentRatio() {
return carRealDownPaymentRatio;
}
public void setCarRealDownPaymentRatio(String carRealDownPaymentRatio) {
this.carRealDownPaymentRatio = carRealDownPaymentRatio;
}
public String getCarRealDownPaymentAmt() {
return carRealDownPaymentAmt;
}
public void setCarRealDownPaymentAmt(String carRealDownPaymentAmt) {
this.carRealDownPaymentAmt = carRealDownPaymentAmt;
}
public double getFinancingRatio() {
return financingRatio;
}
public void setFinancingRatio(double financingRatio) {
this.financingRatio = financingRatio;
}
public int getCarCount() {
return carCount;
}
public void setCarCount(int carCount) {
this.carCount = carCount;
}
public int getExposuresNumber() {
return exposuresNumber;
}
public void setExposuresNumber(int exposuresNumber) {
this.exposuresNumber = exposuresNumber;
}
public String getExposureAmount() {
return exposureAmount;
}
public void setExposureAmount(String exposureAmount) {
this.exposureAmount = exposureAmount;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductType() {
return productType;
}
public void setProductType(String productType) {
this.productType = productType;
}
public String getSubsityTypeCode() {
return subsityTypeCode;
}
public void setSubsityTypeCode(String subsityTypeCode) {
this.subsityTypeCode = subsityTypeCode;
}
public String getInterestRate() {
return interestRate;
}
public void setInterestRate(String interestRate) {
this.interestRate = interestRate;
}
public String getDownPaymentPercentage() {
return downPaymentPercentage;
}
public void setDownPaymentPercentage(String downPaymentPercentage) {
this.downPaymentPercentage = downPaymentPercentage;
}
public String getDownPaymentTotalAmount() {
return downPaymentTotalAmount;
}
public void setDownPaymentTotalAmount(String downPaymentTotalAmount) {
this.downPaymentTotalAmount = downPaymentTotalAmount;
}
public String getFinanceAmountUnit() {
return financeAmountUnit;
}
public void setFinanceAmountUnit(String financeAmountUnit) {
this.financeAmountUnit = financeAmountUnit;
}
public String getFinanceAmountTotal() {
return financeAmountTotal;
}
public void setFinanceAmountTotal(String financeAmountTotal) {
this.financeAmountTotal = financeAmountTotal;
}
public String getTerms() {
return terms;
}
public void setTerms(String terms) {
this.terms = terms;
}
public String getInstallmentUnit() {
return installmentUnit;
}
public void setInstallmentUnit(String installmentUnit) {
this.installmentUnit = installmentUnit;
}
public double getInstallmentTotal() {
return installmentTotal;
}
public void setInstallmentTotal(double installmentTotal) {
this.installmentTotal = installmentTotal;
}
public String getInterestUnit() {
return interestUnit;
}
public void setInterestUnit(String interestUnit) {
this.interestUnit = interestUnit;
}
public Double getInterestTotal() {
return interestTotal;
}
public void setInterestTotal(Double interestTotal) {
this.interestTotal = interestTotal;
}
public String getCustInterestUnit() {
return custInterestUnit;
}
public void setCustInterestUnit(String custInterestUnit) {
this.custInterestUnit = custInterestUnit;
}
public double getCustInterestTotal() {
return custInterestTotal;
}
public void setCustInterestTotal(double custInterestTotal) {
this.custInterestTotal = custInterestTotal;
}
public String getCustInterestTotalDeposit() {
return custInterestTotalDeposit;
}
public void setCustInterestTotalDeposit(String custInterestTotalDeposit) {
this.custInterestTotalDeposit = custInterestTotalDeposit;
}
public String getDealerInterestUnit() {
return dealerInterestUnit;
}
public void setDealerInterestUnit(String dealerInterestUnit) {
this.dealerInterestUnit = dealerInterestUnit;
}
public String getDealerInterestTotal() {
return dealerInterestTotal;
}
public void setDealerInterestTotal(String dealerInterestTotal) {
this.dealerInterestTotal = dealerInterestTotal;
}
public String getDealerInterestTotalDeposit() {
return dealerInterestTotalDeposit;
}
public void setDealerInterestTotalDeposit(String dealerInterestTotalDeposit) {
this.dealerInterestTotalDeposit = dealerInterestTotalDeposit;
}
public String getMakerInterestUnit() {
return makerInterestUnit;
}
public void setMakerInterestUnit(String makerInterestUnit) {
this.makerInterestUnit = makerInterestUnit;
}
public double getMakerInterestTotal() {
return makerInterestTotal;
}
public void setMakerInterestTotal(double makerInterestTotal) {
this.makerInterestTotal = makerInterestTotal;
}
public String getMakerInterestTotalDeposit() {
return makerInterestTotalDeposit;
}
public void setMakerInterestTotalDeposit(String makerInterestTotalDeposit) {
this.makerInterestTotalDeposit = makerInterestTotalDeposit;
}
public String getIsSubsity() {
return isSubsity;
}
public void setIsSubsity(String isSubsity) {
this.isSubsity = isSubsity;
}
public String getContractPriceTotal() {
return contractPriceTotal;
}
public void setContractPriceTotal(String contractPriceTotal) {
this.contractPriceTotal = contractPriceTotal;
}
public String getMonthInterestRate() {
return monthInterestRate;
}
public void setMonthInterestRate(String monthInterestRate) {
this.monthInterestRate = monthInterestRate;
}
public String getPayType() {
return payType;
}
public void setPayType(String payType) {
this.payType = payType;
}
public String getPayRemark() {
return payRemark;
}
public void setPayRemark(String payRemark) {
this.payRemark = payRemark;
}
public String getIsLinked() {
return isLinked;
}
public void setIsLinked(String isLinked) {
this.isLinked = isLinked;
}
public String getLinkedCompany() {
return linkedCompany;
}
public void setLinkedCompany(String linkedCompany) {
this.linkedCompany = linkedCompany;
}
public String getLinkedCompanyType() {
return linkedCompanyType;
}
public void setLinkedCompanyType(String linkedCompanyType) {
this.linkedCompanyType = linkedCompanyType;
}
public String getReserveString1() {
return reserveString1;
}
public void setReserveString1(String reserveString1) {
this.reserveString1 = reserveString1;
}
public String getReserveString2() {
return reserveString2;
}
public void setReserveString2(String reserveString2) {
this.reserveString2 = reserveString2;
}
public String getReserveString3() {
return reserveString3;
}
public void setReserveString3(String reserveString3) {
this.reserveString3 = reserveString3;
}
public String getReserveString4() {
return reserveString4;
}
public void setReserveString4(String reserveString4) {
this.reserveString4 = reserveString4;
}
public String getReserveString5() {
return reserveString5;
}
public void setReserveString5(String reserveString5) {
this.reserveString5 = reserveString5;
}
public String getAssetPurpose() {
return assetPurpose;
}
public void setAssetPurpose(String assetPurpose) {
this.assetPurpose = assetPurpose;
}
public String getBalloonPercentage() {
return balloonPercentage;
}
public void setBalloonPercentage(String balloonPercentage) {
this.balloonPercentage = balloonPercentage;
}
public String getBalloonAmount() {
return balloonAmount;
}
public void setBalloonAmount(String balloonAmount) {
this.balloonAmount = balloonAmount;
}
public String getFinancedAmtPct() {
return financedAmtPct;
}
public void setFinancedAmtPct(String financedAmtPct) {
this.financedAmtPct = financedAmtPct;
}
public String getRentalCalculationMtd() {
return rentalCalculationMtd;
}
public void setRentalCalculationMtd(String rentalCalculationMtd) {
this.rentalCalculationMtd = rentalCalculationMtd;
}
public String getBaseCustomerRate() {
return baseCustomerRate;
}
public void setBaseCustomerRate(String baseCustomerRate) {
this.baseCustomerRate = baseCustomerRate;
}
public String getSubsidyRte() {
return subsidyRte;
}
public void setSubsidyRte(String subsidyRte) {
this.subsidyRte = subsidyRte;
}
public String getCalcSubsidyRte() {
return calcSubsidyRte;
}
public void setCalcSubsidyRte(String calcSubsidyRte) {
this.calcSubsidyRte = calcSubsidyRte;
}
public String getCalcSubsidyAmt() {
return calcSubsidyAmt;
}
public void setCalcSubsidyAmt(String calcSubsidyAmt) {
this.calcSubsidyAmt = calcSubsidyAmt;
}
public String getActualRte() {
return actualRte;
}
public void setActualRte(String actualRte) {
this.actualRte = actualRte;
}
public String getPaymentScheme() {
return paymentScheme;
}
public void setPaymentScheme(String paymentScheme) {
this.paymentScheme = paymentScheme;
}
public String getDealerSubsidyPct() {
return dealerSubsidyPct;
}
public void setDealerSubsidyPct(String dealerSubsidyPct) {
this.dealerSubsidyPct = dealerSubsidyPct;
}
public String getManufacturerSubsidyPct() {
return manufacturerSubsidyPct;
}
public void setManufacturerSubsidyPct(String manufacturerSubsidyPct) {
this.manufacturerSubsidyPct = manufacturerSubsidyPct;
}
public double getCalcDealerSubsidyAmt() {
return calcDealerSubsidyAmt;
}
public void setCalcDealerSubsidyAmt(double calcDealerSubsidyAmt) {
this.calcDealerSubsidyAmt = calcDealerSubsidyAmt;
}
public double getCalcManufacturerSubsidyAmt() {
return calcManufacturerSubsidyAmt;
}
public void setCalcManufacturerSubsidyAmt(double calcManufacturerSubsidyAmt) {
this.calcManufacturerSubsidyAmt = calcManufacturerSubsidyAmt;
}
public String getDownPaymentByFinancePercentage() {
return downPaymentByFinancePercentage;
}
public void setDownPaymentByFinancePercentage(String downPaymentByFinancePercentage) {
this.downPaymentByFinancePercentage = downPaymentByFinancePercentage;
}
}

View File

@ -0,0 +1,38 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class PreviouslyVehicle {
@XStreamAlias("WORKING_TIME")
private String workingTime;
@XStreamAlias("PREVIOUSLY_VEHICLE_TYPE")
private String previouslyVehicleType;
@XStreamAlias("PREVIOUSLY_VEHICLE_LICENSE")
private String previouslyVehicleLicense;
public String getWorkingTime() {
return workingTime;
}
public void setWorkingTime(String workingTime) {
this.workingTime = workingTime;
}
public String getPreviouslyVehicleType() {
return previouslyVehicleType;
}
public void setPreviouslyVehicleType(String previouslyVehicleType) {
this.previouslyVehicleType = previouslyVehicleType;
}
public String getPreviouslyVehicleLicense() {
return previouslyVehicleLicense;
}
public void setPreviouslyVehicleLicense(String previouslyVehicleLicense) {
this.previouslyVehicleLicense = previouslyVehicleLicense;
}
}

View File

@ -0,0 +1,324 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("SINGLEVEHICLETYPE")
public class SingleVehicleType {
@XStreamAlias("MAKER")
private String maker;
@XStreamAlias("BRAND")
private String brand;
@XStreamAlias("SERIES")
private String series;
@XStreamAlias("MODEL")
private String model;
@XStreamAlias("QUANTITY")
private String quantity;
@XStreamAlias("PRICEUNIT")
private String priceUnit;
@XStreamAlias("PRICETOTAL")
private String priceTotal;
@XStreamAlias("GPS")
private String gps;
@XStreamAlias("CHASSISVEHICLEMODEL")
private String chassisVehicleModel;
@XStreamAlias("SUBSITYVEHICLEMODEL")
private String subsityVehicleModel;
@XStreamAlias("VEHICLETYPE")
private String vehicleType;
@XStreamAlias("OTHERFEE")
private String otherFee;
@XStreamAlias("PRODUCER")
private String producer;
@XStreamAlias("NEW_PRICE")
private String newPrice;
@XStreamAlias("VIN_NUMBER")
private String vinNumber;
@XStreamAlias("ENGINE_NUMBER")
private String engineNumber;
@XStreamAlias("PURPOSE")
private String purpose;
@XStreamAlias("COMMENTS")
private String comments;
@XStreamAlias("TRANSMISSION")
private String transmission;
@XStreamAlias("IS_AFFILIATED")
private String isAffiliated;
@XStreamAlias("AFFILIATED_COMP_NAME")
private String affiliatedCompName;
@XStreamAlias("AFFILIATED_COMP_CRDCODE")
private String affiliatedCompCrdcode;
@XStreamAlias("ROAD_OPERATION_LICENSE_CODE")
private String roadOperationLicenseCode;
@XStreamAlias("CAR_TYPE")
private String carType;
@XStreamAlias("BUY_USE_TYPE")
private String buyUseType;
@XStreamAlias("PURCHASE_TAX")
private String purchaseTax;
@XStreamAlias("CAR_PRICE")
private String carPrice;
@XStreamAlias("CAR_REAL_PRICE")
private String carRealPrice;
@XStreamAlias("SIDE_PRICE")
private String sidePprice;
public String getRoadOperationLicenseCode() {
return roadOperationLicenseCode;
}
public void setRoadOperationLicenseCode(String roadOperationLicenseCode) {
this.roadOperationLicenseCode = roadOperationLicenseCode;
}
public String getCarType() {
return carType;
}
public void setCarType(String carType) {
this.carType = carType;
}
public String getBuyUseType() {
return buyUseType;
}
public void setBuyUseType(String buyUseType) {
this.buyUseType = buyUseType;
}
public String getPurchaseTax() {
return purchaseTax;
}
public void setPurchaseTax(String purchaseTax) {
this.purchaseTax = purchaseTax;
}
public String getCarPrice() {
return carPrice;
}
public void setCarPrice(String carPrice) {
this.carPrice = carPrice;
}
public String getCarRealPrice() {
return carRealPrice;
}
public void setCarRealPrice(String carRealPrice) {
this.carRealPrice = carRealPrice;
}
public String getSidePprice() {
return sidePprice;
}
public void setSidePprice(String sidePprice) {
this.sidePprice = sidePprice;
}
public String getMaker() {
return maker;
}
public void setMaker(String maker) {
this.maker = maker;
}
public String getBrand() {
return brand;
}
public void setBrand(String brand) {
this.brand = brand;
}
public String getSeries() {
return series;
}
public void setSeries(String series) {
this.series = series;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String getQuantity() {
return quantity;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public String getPriceUnit() {
return priceUnit;
}
public void setPriceUnit(String priceUnit) {
this.priceUnit = priceUnit;
}
public String getPriceTotal() {
return priceTotal;
}
public void setPriceTotal(String priceTotal) {
this.priceTotal = priceTotal;
}
public String getGps() {
return gps;
}
public void setGps(String gps) {
this.gps = gps;
}
public String getChassisVehicleModel() {
return chassisVehicleModel;
}
public void setChassisVehicleModel(String chassisVehicleModel) {
this.chassisVehicleModel = chassisVehicleModel;
}
public String getSubsityVehicleModel() {
return subsityVehicleModel;
}
public void setSubsityVehicleModel(String subsityVehicleModel) {
this.subsityVehicleModel = subsityVehicleModel;
}
public String getVehicleType() {
return vehicleType;
}
public void setVehicleType(String vehicleType) {
this.vehicleType = vehicleType;
}
public String getOtherFee() {
return otherFee;
}
public void setOtherFee(String otherFee) {
this.otherFee = otherFee;
}
public String getProducer() {
return producer;
}
public void setProducer(String producer) {
this.producer = producer;
}
public String getNewPrice() {
return newPrice;
}
public void setNewPrice(String newPrice) {
this.newPrice = newPrice;
}
public String getVinNumber() {
return vinNumber;
}
public void setVinNumber(String vinNumber) {
this.vinNumber = vinNumber;
}
public String getEngineNumber() {
return engineNumber;
}
public void setEngineNumber(String engineNumber) {
this.engineNumber = engineNumber;
}
public String getPurpose() {
return purpose;
}
public void setPurpose(String purpose) {
this.purpose = purpose;
}
public String getComments() {
return comments;
}
public void setComments(String comments) {
this.comments = comments;
}
public String getTransmission() {
return transmission;
}
public void setTransmission(String transmission) {
this.transmission = transmission;
}
public String getIsAffiliated() {
return isAffiliated;
}
public void setIsAffiliated(String isAffiliated) {
this.isAffiliated = isAffiliated;
}
public String getAffiliatedCompName() {
return affiliatedCompName;
}
public void setAffiliatedCompName(String affiliatedCompName) {
this.affiliatedCompName = affiliatedCompName;
}
public String getAffiliatedCompCrdcode() {
return affiliatedCompCrdcode;
}
public void setAffiliatedCompCrdcode(String affiliatedCompCrdcode) {
this.affiliatedCompCrdcode = affiliatedCompCrdcode;
}
}

View File

@ -0,0 +1,18 @@
package com.ample.esb.bean.amp;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.List;
public class VehicleInfo {
@XStreamImplicit
private List<SingleVehicleType> SingleVehicleTypes;
public List<SingleVehicleType> getSingleVehicleTypes() {
return SingleVehicleTypes;
}
public void setSingleVehicleTypes(List<SingleVehicleType> singleVehicleTypes) {
SingleVehicleTypes = singleVehicleTypes;
}
}

View File

@ -0,0 +1,220 @@
package com.ample.esb.bean.esb;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class MessageAppHead {
/**
* 目前只有这一个北京汽车集团财务有限公司:20
*/
@XStreamAlias("BRANCH_CODE")
private String branchCode;
@XStreamAlias("CORPORATE_CODE")
private String corporateCode;
/**
* 登录账户id
*/
@XStreamAlias("OPERATOR_ID")
private String operatorId;
@XStreamAlias("CUSTOMER_ID")
private String customerId;
@XStreamAlias("SOURCE_BUSINESS_CODE")
private String sourceBusinessCode;
@XStreamAlias("ORIGINAL_BUSINESS_CODE")
private String originalBusinessCode;
/**
* 请求方系统业务日期
*/
@XStreamAlias("SOURCE_TRAN_DATE")
private String sourceTranDate;
/**
* 请求方系统业务时间
*/
@XStreamAlias("SOURCE_TRAN_TIME")
private String sourceTranTime;
@XStreamAlias("AUTH_TELLER")
private String authTeller;
@XStreamAlias("AUTH_FALG")
private String authFalg;
@XStreamAlias("AUTH_CODE")
private String authCode;
@XStreamAlias("AUTH_MSG")
private String authMsg;
@XStreamAlias("PER_PAGE_NUM")
private String perPageNum;
@XStreamAlias("CURR_PAGE_NUM")
private String currPageNum;
@XStreamAlias("PAGE_UPDOWN_FALG")
private String pageUpdownFalg;
@XStreamAlias("APP_EXPAND_CONTENT")
private String appExpandContent;
/**
* 服务方系统业务日期
*/
@XStreamAlias("TARGET_TRAN_DATE")
private String targetTranDate;
/**
* 服务方系统业务时间
*/
@XStreamAlias("TARGET_TRAN_TIME")
private String targetTranTime;
public String getBranchCode() {
return branchCode;
}
public void setBranchCode(String branchCode) {
this.branchCode = branchCode;
}
public String getCorporateCode() {
return corporateCode;
}
public void setCorporateCode(String corporateCode) {
this.corporateCode = corporateCode;
}
public String getOperatorId() {
return operatorId;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
public String getCustomerId() {
return customerId;
}
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
public String getSourceBusinessCode() {
return sourceBusinessCode;
}
public void setSourceBusinessCode(String sourceBusinessCode) {
this.sourceBusinessCode = sourceBusinessCode;
}
public String getOriginalBusinessCode() {
return originalBusinessCode;
}
public void setOriginalBusinessCode(String originalBusinessCode) {
this.originalBusinessCode = originalBusinessCode;
}
public String getSourceTranDate() {
return sourceTranDate;
}
public void setSourceTranDate(String sourceTranDate) {
this.sourceTranDate = sourceTranDate;
}
public String getSourceTranTime() {
return sourceTranTime;
}
public void setSourceTranTime(String sourceTranTime) {
this.sourceTranTime = sourceTranTime;
}
public String getAuthTeller() {
return authTeller;
}
public void setAuthTeller(String authTeller) {
this.authTeller = authTeller;
}
public String getAuthFalg() {
return authFalg;
}
public void setAuthFalg(String authFalg) {
this.authFalg = authFalg;
}
public String getAuthCode() {
return authCode;
}
public void setAuthCode(String authCode) {
this.authCode = authCode;
}
public String getAuthMsg() {
return authMsg;
}
public void setAuthMsg(String authMsg) {
this.authMsg = authMsg;
}
public String getPerPageNum() {
return perPageNum;
}
public void setPerPageNum(String perPageNum) {
this.perPageNum = perPageNum;
}
public String getCurrPageNum() {
return currPageNum;
}
public void setCurrPageNum(String currPageNum) {
this.currPageNum = currPageNum;
}
public String getPageUpdownFalg() {
return pageUpdownFalg;
}
public void setPageUpdownFalg(String pageUpdownFalg) {
this.pageUpdownFalg = pageUpdownFalg;
}
public String getTargetTranDate() {
return targetTranDate;
}
public void setTargetTranDate(String targetTranDate) {
this.targetTranDate = targetTranDate;
}
public String getTargetTranTime() {
return targetTranTime;
}
public void setTargetTranTime(String targetTranTime) {
this.targetTranTime = targetTranTime;
}
public String getAppExpandContent() {
return appExpandContent;
}
public void setAppExpandContent(String appExpandContent) {
this.appExpandContent = appExpandContent;
}
}

View File

@ -0,0 +1,54 @@
package com.ample.esb.bean.esb;
import com.ample.esb.bean.afs.AccountSyncRequest;
import com.ample.esb.bean.afs.AfsResultRequest;
import com.ample.esb.bean.amp.AmpRequest;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class MessageBody {
@XStreamAlias("REQUEST")
private AccountSyncRequest request;
public AccountSyncRequest getRequest() {
return request;
}
public void setRequest(AccountSyncRequest request) {
this.request = request;
}
@XStreamAlias("REQUEST")
private AmpRequest ampRequest;
public AmpRequest getAmpRequest() {
return ampRequest;
}
public void setAmpRequest(AmpRequest ampRequest) {
this.ampRequest = ampRequest;
}
@XStreamAlias("RESPONSE")
private Response response;
public Response getResponse() {
return response;
}
public void setResponse(Response response) {
this.response = response;
}
@XStreamAlias("REQUEST")
private AfsResultRequest afsResultRequest;
public AfsResultRequest getAfsResultRequest() {
return afsResultRequest;
}
public void setAfsResultRequest(AfsResultRequest afsResultRequest) {
this.afsResultRequest = afsResultRequest;
}
}

View File

@ -0,0 +1,327 @@
package com.ample.esb.bean.esb;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class MessageEsbHead {
@XStreamAlias("SOURCE_SYSTEM_ID")
private String sourceSystemId;
@XStreamAlias("ORIGINAL_SYSTEM_ID")
private String originalSystemId;
@XStreamAlias("TARGET_SYSTEM_ID")
private String targetSystemId;
@XStreamAlias("SERVICE_ID")
private String serviceId;
@XStreamAlias("SERVICE_VERSION")
private String serviceVersion;
@XStreamAlias("SCENES_ID")
private String scenesId;
@XStreamAlias("SCENES_VERSION")
private String scenesVersion;
/**
* 交易码
*/
@XStreamAlias("TRAN_CODE")
private String tranCode;
/**
* 返回结果时是同步还是异步 00:同步10异步
*/
@XStreamAlias("COMM_TYPE")
private String commType;
@XStreamAlias("TERMINAL_ID")
private String terminalId;
/**
* 09:零售金融客户端前端;91:各系统管理端各系统管理端发起的交易
*/
@XStreamAlias("CHANNEL_ID")
private String channelId;
@XStreamAlias("GLOBAL_SEQ_NO")
private String globalSeqNo;
@XStreamAlias("SOURCE_SEQ_NO")
private String sourceSeqNo;
@XStreamAlias("SOURCE_MACHINE_DATE")
private String sourceMachineDate;
@XStreamAlias("SOURCE_MACHINE_TIME")
private String sourceMachineTime;
@XStreamAlias("SOURCE_SECURITY_NODE")
private String sourceSecurityNode;
@XStreamAlias("TARGET_SECURITY_NODE")
private String targetSecurityNode;
/**
* 0:不涉及文件处理1涉及文件处理
*/
@XStreamAlias("FILE_FLAG")
private String fileFlag;
@XStreamAlias("ESB_EXPAND_CONTENT")
private String esbExpandContent;
@XStreamAlias("TARGET_RECIVE_DATE")
private String targetReciveDate;
@XStreamAlias("TARGET_RECIVE_TIME")
private String targetReciveTime;
@XStreamAlias("TARGET_MACHINE_DATE")
private String targetMachineDate;
@XStreamAlias("TARGET_MACHINE_TIME")
private String targetMachineTime;
@XStreamAlias("TARGET_SEQ_NO")
private String targetSeqNo;
@XStreamAlias("RET_COMM_STATUS")
private String retCommStatus;
@XStreamAlias("RET_CODE")
private String retCode;
@XStreamAlias("RET_SYSTEM_ID")
private String retSystemId;
@XStreamAlias("RET_MSG")
private String retMsg;
public String getSourceSystemId() {
return sourceSystemId;
}
public void setSourceSystemId(String sourceSystemId) {
this.sourceSystemId = sourceSystemId;
}
public String getOriginalSystemId() {
return originalSystemId;
}
public void setOriginalSystemId(String originalSystemId) {
this.originalSystemId = originalSystemId;
}
public String getTargetSystemId() {
return targetSystemId;
}
public void setTargetSystemId(String targetSystemId) {
this.targetSystemId = targetSystemId;
}
public String getServiceId() {
return serviceId;
}
public void setServiceId(String serviceId) {
this.serviceId = serviceId;
}
public String getServiceVersion() {
return serviceVersion;
}
public void setServiceVersion(String serviceVersion) {
this.serviceVersion = serviceVersion;
}
public String getScenesId() {
return scenesId;
}
public void setScenesId(String scenesId) {
this.scenesId = scenesId;
}
public String getScenesVersion() {
return scenesVersion;
}
public void setScenesVersion(String scenesVersion) {
this.scenesVersion = scenesVersion;
}
public String getTranCode() {
return tranCode;
}
public void setTranCode(String tranCode) {
this.tranCode = tranCode;
}
public String getCommType() {
return commType;
}
public void setCommType(String commType) {
this.commType = commType;
}
public String getTerminalId() {
return terminalId;
}
public void setTerminalId(String terminalId) {
this.terminalId = terminalId;
}
public String getChannelId() {
return channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
public String getGlobalSeqNo() {
return globalSeqNo;
}
public void setGlobalSeqNo(String globalSeqNo) {
this.globalSeqNo = globalSeqNo;
}
public String getSourceSeqNo() {
return sourceSeqNo;
}
public void setSourceSeqNo(String sourceSeqNo) {
this.sourceSeqNo = sourceSeqNo;
}
public String getSourceMachineDate() {
return sourceMachineDate;
}
public void setSourceMachineDate(String sourceMachineDate) {
this.sourceMachineDate = sourceMachineDate;
}
public String getSourceMachineTime() {
return sourceMachineTime;
}
public void setSourceMachineTime(String sourceMachineTime) {
this.sourceMachineTime = sourceMachineTime;
}
public String getSourceSecurityNode() {
return sourceSecurityNode;
}
public void setSourceSecurityNode(String sourceSecurityNode) {
this.sourceSecurityNode = sourceSecurityNode;
}
public String getTargetSecurityNode() {
return targetSecurityNode;
}
public void setTargetSecurityNode(String targetSecurityNode) {
this.targetSecurityNode = targetSecurityNode;
}
public String getFileFlag() {
return fileFlag;
}
public void setFileFlag(String fileFlag) {
this.fileFlag = fileFlag;
}
public String getEsbExpandContent() {
return esbExpandContent;
}
public void setEsbExpandContent(String esbExpandContent) {
this.esbExpandContent = esbExpandContent;
}
public String getTargetReciveDate() {
return targetReciveDate;
}
public void setTargetReciveDate(String targetReciveDate) {
this.targetReciveDate = targetReciveDate;
}
public String getTargetMachineTime() {
return targetMachineTime;
}
public void setTargetMachineTime(String targetMachineTime) {
this.targetMachineTime = targetMachineTime;
}
public String getTargetSeqNo() {
return targetSeqNo;
}
public void setTargetSeqNo(String targetSeqNo) {
this.targetSeqNo = targetSeqNo;
}
public String getRetCommStatus() {
return retCommStatus;
}
public void setRetCommStatus(String retCommStatus) {
this.retCommStatus = retCommStatus;
}
public String getRetCode() {
return retCode;
}
public void setRetCode(String retCode) {
this.retCode = retCode;
}
public String getRetSystemId() {
return retSystemId;
}
public void setRetSystemId(String retSystemId) {
this.retSystemId = retSystemId;
}
public String getRetMsg() {
return retMsg;
}
public void setRetMsg(String retMsg) {
this.retMsg = retMsg;
}
public String getTargetReciveTime() {
return targetReciveTime;
}
public void setTargetReciveTime(String targetReciveTime) {
this.targetReciveTime = targetReciveTime;
}
public String getTargetMachineDate() {
return targetMachineDate;
}
public void setTargetMachineDate(String targetMachineDate) {
this.targetMachineDate = targetMachineDate;
}
}

View File

@ -0,0 +1,16 @@
package com.ample.esb.bean.esb;
import com.thoughtworks.xstream.annotations.XStreamAlias;
public class Response {
@XStreamAlias("RESULT")
private String result;
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
}

View File

@ -0,0 +1,39 @@
package com.ample.esb.bean.esb;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("TRANSACTION")
public class Transaction {
@XStreamAlias("MESSAGE_ESB_HEAD")
private MessageEsbHead messageEsbHead;
@XStreamAlias("MESSAGE_APP_HEAD")
private MessageAppHead messageAppHead;
@XStreamAlias("MESSAGE_BODY")
private MessageBody messageBody;
public MessageEsbHead getMessageEsbHead() {
return messageEsbHead;
}
public void setMessageEsbHead(MessageEsbHead messageEsbHead) {
this.messageEsbHead = messageEsbHead;
}
public MessageAppHead getMessageAppHead() {
return messageAppHead;
}
public void setMessageAppHead(MessageAppHead messageAppHead) {
this.messageAppHead = messageAppHead;
}
public MessageBody getMessageBody() {
return messageBody;
}
public void setMessageBody(MessageBody messageBody) {
this.messageBody = messageBody;
}
}

View File

@ -0,0 +1,192 @@
package com.ample.esb.common;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.ample.esb.bean.esb.MessageAppHead;
import com.ample.esb.bean.esb.MessageBody;
import com.ample.esb.bean.esb.MessageEsbHead;
import com.ample.esb.bean.esb.Transaction;
import com.ample.esb.service.EsbServise;
import com.ample.esb.util.BaicPropertiesUtil;
import com.ample.esb.util.DateUtils;
import com.ample.esb.util.GlobalSeqNo;
import com.ample.esb.util.XstreamUtil;
import com.ample.sms.FileUtil;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;
import org.bouncycastle.crypto.digests.SM3Digest;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
public class EsbCommon implements EsbServise {
public Transaction createEsbTransaction() {
Transaction transaction = new Transaction();
transaction.setMessageEsbHead(esbHead());
transaction.setMessageAppHead(appHead());
transaction.setMessageBody(messgeBody());
return transaction;
}
public MessageEsbHead getCommonEsbHead(MessageEsbHead esbHead) {
esbHead.setSourceSystemId("APF");
esbHead.setOriginalSystemId("APF");
esbHead.setSourceMachineDate(DateUtils.dateNow());
esbHead.setSourceMachineTime(DateUtils.TimeNowAccurate());
String globalSeqNo = new GlobalSeqNo().getGlobalSeqNo();
esbHead.setGlobalSeqNo(globalSeqNo);
esbHead.setSourceSeqNo(globalSeqNo);
esbHead.setTerminalId("");
esbHead.setSourceSecurityNode("");
esbHead.setTargetSecurityNode("");
esbHead.setEsbExpandContent("");
return esbHead;
}
public MessageAppHead getCommonAppHead(MessageAppHead appHead){
appHead.setBranchCode("20");
appHead.setSourceTranDate(DateUtils.dateNow());
appHead.setSourceTranTime(DateUtils.TimeNowAccurate());
appHead.setCorporateCode("");
appHead.setCustomerId("");
appHead.setSourceBusinessCode("");
appHead.setOriginalBusinessCode("");
appHead.setAuthCode("");
appHead.setAuthMsg("");
appHead.setAuthFalg("");
appHead.setAuthTeller("");
appHead.setPerPageNum("");
appHead.setCurrPageNum("");
appHead.setPageUpdownFalg("");
appHead.setAppExpandContent("");
return appHead;
}
public MessageBody getCommonBody(MessageBody msgBody){
return msgBody;
}
public MessageEsbHead esbHead(){
return this.getCommonEsbHead(new MessageEsbHead());
}
public MessageAppHead appHead(){
return this.getCommonAppHead(new MessageAppHead());
}
public MessageBody messgeBody(){
return this.getCommonBody(new MessageBody());
}
public String httpSend(String url , String xmlValue){
String result = null;
HttpPost httppost = new HttpPost(url);
httppost.setHeader("Connection", "close");
httppost.setHeader("Content-Type", "application/x-www-form-urlencoded");
//setConnectTimeout设置连接超时时间单位毫秒setConnectionRequestTimeout设置从connect Manager(连接池)获取Connection 超时时间单位毫秒这个属性是新加的属性因为目前版本是可以共享连接池的setSocketTimeout请求获取数据的超时时间(即响应时间)单位毫秒
RequestConfig requestConfig = RequestConfig.custom().setConnectTimeout(65000).setConnectionRequestTimeout(65000).setSocketTimeout(65000).build();
httppost.setConfig(requestConfig);
System.out.println("ESB请求报文\n"+xmlValue);
StringEntity stringEntity = new StringEntity(xmlValue, "UTF-8");
httppost.setEntity(stringEntity);
CloseableHttpClient client = HttpClients.createDefault();
try {
HttpResponse response = client.execute(httppost);
if(response.getStatusLine().getStatusCode() == HttpStatus.SC_OK){
result = EntityUtils.toString(response.getEntity());
byte[] xmlByte = result.getBytes(StandardCharsets.ISO_8859_1);
result = new String(xmlByte,"utf-8");
System.out.println("ESB响应报文\n"+result);
}
} catch (IOException e) {
e.printStackTrace();
}
return result;
}
/**
* 国三摘要
* @param srcData
* @return
*/
public byte[] hash(byte[] srcData){
SM3Digest digest = new SM3Digest();
digest.update(srcData,0,srcData.length);
byte[] hash = new byte[digest.getDigestSize()];
digest.doFinal(hash,0);
return hash;
}
@Override
public Transaction transactionDo(){
String logPath = BaicPropertiesUtil.get("log_path");
//.创建实体类
Transaction tranRequest = createEsbTransaction();
//.转换为xml请求报文
String xmlRrquest = XstreamUtil.xmlConvert(tranRequest);
//.将xml请求报文存为文件
FileUtil.writeFile(logPath+tranRequest.getMessageEsbHead().getGlobalSeqNo()+"_request.txt", xmlRrquest);
//.保存请求信息
saveEsbLog(tranRequest);
//.获得url
String url = this.getUrl(tranRequest);
//.得到响应报文
String xmlResopnse= this.httpSend(url,xmlRrquest);
//.将xml响应报文存为文件
FileUtil.writeFile(logPath+tranRequest.getMessageEsbHead().getGlobalSeqNo()+"_response.txt", xmlResopnse);
//.转换为实体类
Transaction tranResponse = (Transaction)XstreamUtil.objectConvert(xmlResopnse);
//.更新响应信息
updateEsbLog(tranResponse);
return tranResponse;
}
public String getUrl(Transaction tran){
String tranCode = tran.getMessageEsbHead().getTranCode();
String serviceId = BaicPropertiesUtil.get(tranCode+"_serviceid");
String userId = BaicPropertiesUtil.get("userid");
String url = BaicPropertiesUtil.get("esb_url")+"userid="+userId+"&serviceid="+serviceId;
return url;
}
public void updateEsbLog(Transaction tran) {
BizObjectManager bom = null;
try {
MessageEsbHead esbHead = tran.getMessageEsbHead();
String globalSeqNo = esbHead.getGlobalSeqNo();
if(globalSeqNo.length()==0){
return;
}
bom = JBOFactory.getBizObjectManager("jbo.oti.ESB_LOG");
BizObject bo = bom.createQuery("GLOBAL_SEQ_NO=:GLOBAL_SEQ_NO").setParameter("GLOBAL_SEQ_NO",globalSeqNo).getSingleResult(true);
if(bo==null||bo.getAttribute("GLOBAL_SEQ_NO")==null||"".equals(bo.getAttribute("GLOBAL_SEQ_NO").toString())){
return;
}
bo.setAttributeValue("RET_CODE",esbHead.getRetCode());
bo.setAttributeValue("RET_MSG",esbHead.getRetMsg());
bo.setAttributeValue("RET_SYSTEM_ID",esbHead.getRetSystemId());
bo.setAttributeValue("SOURCE_MACHINE_DATE",esbHead.getSourceMachineDate());
bo.setAttributeValue("UPDATETIME", DateUtils.dateTimeNow());
bom.saveObject(bo);
} catch (JBOException e) {
e.printStackTrace();
}
}
public void saveEsbLog(Transaction tran){
BizObjectManager bom = null;
try {
bom = JBOFactory.getBizObjectManager("jbo.oti.ESB_LOG");
MessageEsbHead esbHead = tran.getMessageEsbHead();
BizObject bo = bom.newObject();
bo.setAttributeValue("GLOBAL_SEQ_NO",esbHead.getGlobalSeqNo());
bo.setAttributeValue("TARGET_SEQ_NO",esbHead.getTargetSeqNo());
bo.setAttributeValue("TARGET_SYSTEM_ID",esbHead.getTargetSystemId());
bo.setAttributeValue("SERVICE_ID",esbHead.getServiceId());
bo.setAttributeValue("TRAN_CODE",esbHead.getTranCode());
bo.setAttributeValue("INPUTTIME", DateUtils.dateTimeNow());
bom.saveObject(bo);
} catch (JBOException e) {
e.printStackTrace();
}
}
}

View File

@ -0,0 +1,183 @@
package com.ample.esb.common;
import com.ample.esb.common.cache.EsbParamCache;
import org.apache.commons.lang3.StringUtils;
import java.util.Map;
/**
* 风控中台对接参数处理类
*/
public class ParamDataUtils {
/**
* 根据系统枚举数据获取北财枚举
* @param codeNo
* @param itemNo
* @param extend 扩展字段目前查询婚姻状态时加传子女数量
* @return
*/
public static String queryBcEnumType(String codeNo, String itemNo, String extend){
if(StringUtils.isNotEmpty(extend) && "marry".equals(codeNo) && "01".equals(itemNo)){//婚姻状况 已婚 01
/**
* 00001 已婚无子女
* 00006 已婚有子女
*/
if(Integer.parseInt(extend) > 0){// 子女数量大于0
return "00006";
}else {
return "00001";
}
}
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if(null != libraryMapRes){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
if(null != resMap){
return resMap.get("bc_item_no");
}
}
return "";
}
/**
* 根据系统枚举数据获取北财枚举
* @param codeNo
* @param itemNo
* @return
*/
public static String queryBcEnumType(String codeNo, String itemNo){
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if("duties".equals(codeNo) || "personContact".equals(codeNo)){
if(null != libraryMapRes){
for(String key : libraryMapRes.keySet()){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(key);
if(itemNo.equals(resMap.get("ap_item_value"))){
return resMap.get("bc_item_no");
}
}
}
if("duties".equals(codeNo)){
return "00006";
}else {
return "00122";
}
}
if(null != libraryMapRes){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
if(null != resMap){
return resMap.get("bc_item_no");
}
}
return "";
}
/**
* 根据系统地址编码和字典编码获取北财地址编码
* @param codeNo
* @param itemNo
* @return
*/
public static String queryMapBcProvinceCode(String codeNo, String itemNo){
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if(null != libraryMapRes){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
if(null != resMap){
if(StringUtils.isEmpty(resMap.get("grant_address_code"))){
if(StringUtils.isEmpty(resMap.get("parent_address_code"))){
return resMap.get("address_code");
}
return resMap.get("parent_address_code");
}
return resMap.get("grant_address_code");
}
}
return "";
}
/**
* 根据系统地址编码和字典编码获取北财地址编码
* @param codeNo
* @param itemNo
* @return
*/
public static String queryMapBcCityCode(String codeNo, String itemNo){
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if(null != libraryMapRes){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
if(null != resMap){
if("1".equals(resMap.get("address_code_level"))){
return "";
}
if("2".equals(resMap.get("address_code_level"))){
return resMap.get("address_code");
}
if("3".equals(resMap.get("address_code_level"))){
return resMap.get("parent_address_code");
}
}
}
return "";
}
/**
* 根据系统地址编码和字典编码获取北财地址编码
* @param codeNo
* @param itemNo
* @return
*/
public static String queryMapBcCountyCode(String codeNo, String itemNo){
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if(null != libraryMapRes){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
if(null != resMap){
return resMap.get("address_code");
}
}
return "";
}
/**
* 根据系统地址编码和字典编码获取北财地址编码
* @param codeNo
* @param itemNo
* @return
*/
public static Map<String, String> queryMapEntity(String codeNo, String itemNo){
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if(null != libraryMapRes){
return (Map<String, String>) libraryMapRes.get(itemNo);
}
return null;
}
/**
* 根据系统地址编码字典编码地址全名 获取详细地址
* @param codeNo
* @param itemNo
* @param fullAddress
* @return
*/
public static String queryMapDetailAddress(String codeNo, String itemNo, String fullAddress){
Map<String, Object> libraryMap = EsbParamCache.getEsbParamCachePool();
Map<String, Object> libraryMapRes = (Map<String, Object>) libraryMap.get(codeNo);
if(null != libraryMapRes){
Map<String, String> resMap = (Map<String, String>) libraryMapRes.get(itemNo);
if(null != resMap){
String apAddress = resMap.get("ap_address_value");
fullAddress = fullAddress.replaceAll(apAddress, "");
return fullAddress;
}
}
return "";
}
}

View File

@ -0,0 +1,62 @@
package com.ample.esb.common;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.template.check.DefaultBussinessCheck;
import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
/**
* 风控中台对接必填字段检查
*
*/
public class RCRequiredDataCheck extends DefaultBussinessCheck{
@Override
public Object run(Transaction Sqlca) throws Exception {
String ObjectNo = this.getAttribute("ObjectNo").toString();
BizObjectManager lbEquipmentCarTemp = JBOFactory.getBizObjectManager(LB_EQUIPMENT_CAR_TEMP.CLASS_NAME);// 项目信息
List<BizObject> lbEquipmentCarTempBizObjectList = lbEquipmentCarTemp.createQuery("FLOWUNID=:FLOWUNID")
.setParameter("FLOWUNID", ObjectNo).getResultList(false);
if(CollectionUtils.isEmpty(lbEquipmentCarTempBizObjectList)){
putMsg("车辆信息未选择!");
setPass(false);
return null;
}
for(BizObject lbEquipmentCarTempBizObject : lbEquipmentCarTempBizObjectList){
if(null == lbEquipmentCarTempBizObject.getAttribute("car_use_type")
|| StringUtils.isEmpty(lbEquipmentCarTempBizObject.getAttribute("car_use_type").toString())){
putMsg("车辆信息中必填字段:车辆用途未填写!");
setPass(false);
return null;
}
if(null == lbEquipmentCarTempBizObject.getAttribute("MANUFACTURER_NAME")
|| StringUtils.isEmpty(lbEquipmentCarTempBizObject.getAttribute("MANUFACTURER_NAME").toString())){
putMsg("车辆信息中必填字段:生产厂商未填写!");
setPass(false);
return null;
}
if(null == lbEquipmentCarTempBizObject.getAttribute("EQUIP_PRICE")
|| StringUtils.isEmpty(lbEquipmentCarTempBizObject.getAttribute("EQUIP_PRICE").toString())){
putMsg("车辆信息中必填字段:车辆交易价格未填写!");
setPass(false);
return null;
}
if("0.00".equals(lbEquipmentCarTempBizObject.getAttribute("EQUIP_PRICE").toString())){
putMsg("车辆信息中必填字段:车辆交易价格不能为零!");
setPass(false);
return null;
}
}
putMsg("验证通过!");
setPass(true);
return null;
}
}

View File

@ -0,0 +1,99 @@
package com.ample.esb.common.address;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.*;
import com.ample.esb.common.ParamDataUtils;
import com.tenwa.reckon.util.UUIDUtil;
import jbo.oti.RC_ADDRESS_INFO;
import jbo.oti.RC_ADDRESS_LIBRARY;
import org.apache.commons.lang3.StringUtils;
import java.util.Map;
public class PersonAddressController {
private String id="";
private String province="";
private String provinceName="";
private String dressDetail="";
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public String getProvinceName() {
return provinceName;
}
public void setProvinceName(String provinceName) {
this.provinceName = provinceName;
}
public String getDressDetail() {
return dressDetail;
}
public void setDressDetail(String dressDetail) {
this.dressDetail = dressDetail;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
* 新增或更新地址
* @param tx
* @return
* */
public String saveOrUpdate(JBOTransaction tx)throws Exception {
ARE.getLog().info("[PersonAddressController] saveOrUpdate bulid Begin .................");
BizObjectManager rcAddressInfo = JBOFactory.getBizObjectManager(RC_ADDRESS_INFO.CLASS_NAME,tx);
Map<String, String> rcAddressLibraryBizObject = ParamDataUtils.queryMapEntity("ZXAreaCode", province);
if(null == rcAddressLibraryBizObject){
return "false@系统异常";
}
BizObject rcAddressInfoBizObject = rcAddressInfo.newObject();
// : 2023-8-17 判断是新增还是修改
if(StringUtils.isNotEmpty(id)){
rcAddressInfoBizObject = rcAddressInfo.createQuery("address_id=:id").setParameter("id", id).getSingleResult(true);
}else {
id = UUIDUtil.getUUID();
rcAddressInfoBizObject.setAttributeValue("address_id", id);
}
makeRcAddressInfoByLibrary(rcAddressLibraryBizObject, rcAddressInfoBizObject);
rcAddressInfo.saveObject(rcAddressInfoBizObject);
ARE.getLog().info("[PersonAddressController] saveOrUpdate bulid Begin .................");
// : 2023-8-17 返回id值
return "true@"+id;
}
/**
* 实体转换
* @param rcAddressLibraryBizObject
* @param rcAddressInfoBizObject
*/
private void makeRcAddressInfoByLibrary(Map<String, String> rcAddressLibraryBizObject, BizObject rcAddressInfoBizObject) throws JBOException {
rcAddressInfoBizObject.setAttributeValue("ap_address_value", rcAddressLibraryBizObject.get("ap_address_value"));
rcAddressInfoBizObject.setAttributeValue("ap_address_code", rcAddressLibraryBizObject.get("ap_address_code"));
rcAddressInfoBizObject.setAttributeValue("full_address", provinceName + dressDetail);
rcAddressInfoBizObject.setAttributeValue("address_detail", dressDetail);
rcAddressInfoBizObject.setAttributeValue("district_value", rcAddressLibraryBizObject.get("address_value"));
rcAddressInfoBizObject.setAttributeValue("district_code", rcAddressLibraryBizObject.get("address_code"));
rcAddressInfoBizObject.setAttributeValue("city_value", rcAddressLibraryBizObject.get("parent_address_value"));
rcAddressInfoBizObject.setAttributeValue("city_code", rcAddressLibraryBizObject.get("parent_address_code"));
rcAddressInfoBizObject.setAttributeValue("province_value", rcAddressLibraryBizObject.get("grant_address_value"));
rcAddressInfoBizObject.setAttributeValue("province_code", rcAddressLibraryBizObject.get("grant_address_code"));
}
}

View File

@ -0,0 +1,118 @@
package com.ample.esb.common.cache;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jbo.oti.RC_ADDRESS_LIBRARY;
import jbo.oti.RC_LIBRARY;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.Transaction;
import com.amarsoft.dict.als.cache.AbstractCache;
public class EsbParamCache extends AbstractCache {
private static Map<String, Object> esbParamCachePool = null;
private static EsbParamCache instance = null;
public static synchronized EsbParamCache getInstance() {
if (instance == null) {
instance = new EsbParamCache();
}
return instance;
}
public static Map<String, Object> getEsbParamCachePool() {
return esbParamCachePool;
}
public synchronized Map<String, Object> getCacheMapPool() {
if (esbParamCachePool == null)
esbParamCachePool = new HashMap<String, Object>();
return esbParamCachePool;
}
@Override
public synchronized void clear() throws Exception {
getCacheMapPool().clear();
esbParamCachePool = null;
}
@Override
public synchronized boolean load(Transaction arg0) throws Exception {
ARE.getLog().info("[CACHE] EsbParamCache20230823 bulid Begin .................");
initCodeCachePool();
ARE.getLog().info("[CACHE] EsbParamCache20230823 bulid End ...................");
return true;
}
@SuppressWarnings("unchecked")
private synchronized void initCodeCachePool() throws JBOException {
esbParamCachePool = new HashMap<String, Object>();
Map<String, Object> liveAddressMap = new HashMap<String, Object>();//懈蛂華硊 AreaCode
Map<String, Object> idAddressMap = new HashMap<String, Object>();//誧戮華硊 ZXAreaCode
BizObjectManager rcAddressLibrary = JBOFactory.getBizObjectManager(RC_ADDRESS_LIBRARY.CLASS_NAME);
// : 2023-8-17 跦擂 province 脤戙 RC_ADDRESS_LIBRARY
List<BizObject> rcAddressList= rcAddressLibrary.createQuery("1=1 ").getResultList(false);
for (BizObject address : rcAddressList) {
String apLibraryCode = address.getAttribute("ap_library_code") == null ? "" : address.getAttribute("ap_library_code").toString();
if("AreaCode".equals(apLibraryCode)){//懈蛂華硊
Map<String, String> liveMap = initMapLibrary(address);
ARE.getLog().info("[CACHE] EsbParamCache20230823 bulid info .......懈蛂華硊..........liveMap.ap_address_value=" + liveMap.get("ap_address_value"));
liveAddressMap.put(liveMap.get("ap_address_code"), liveMap);
}else if("ZXAreaCode".equals(apLibraryCode)){//誧戮華硊
Map<String, String> idMap = initMapLibrary(address);
ARE.getLog().info("[CACHE] EsbParamCache20230823 bulid info .......誧戮華硊..........idMap.ap_address_value=" + idMap.get("ap_address_value"));
idAddressMap.put(idMap.get("ap_address_code"), idMap);
}else {
ARE.getLog().info("[CACHE] EsbParamCache20230823 error ap_library_code祑都 ...................id=" + address.getAttribute("id").toString());
}
}
esbParamCachePool.put("AreaCode", liveAddressMap);
esbParamCachePool.put("ZXAreaCode", idAddressMap);
BizObjectManager rcLibrary = JBOFactory.getBizObjectManager(RC_LIBRARY.CLASS_NAME);
// : 2023-8-17 跦擂 province 脤戙 RC_ADDRESS_LIBRARY
List<BizObject> rcLibraryList= rcLibrary.createQuery("1=1 ").getResultList(false);
for (BizObject library : rcLibraryList) {
Map<String, String> libraryItemMap = initRcLibrary(library);
ARE.getLog().info("[CACHE] EsbParamCache20230823 bulid info .......[坻趼萎..........libraryItemMap.ap_address_value=" + libraryItemMap.get("ap_item_value"));
Map<String, Object> othersMap = (Map<String, Object>) esbParamCachePool.get(libraryItemMap.get("library_no"));//坻趼萎
if(null == othersMap){
othersMap = new HashMap<String, Object>();//坻趼萎
esbParamCachePool.put(libraryItemMap.get("library_no"), othersMap);
}
othersMap.put(libraryItemMap.get("ap_item_no"), libraryItemMap);
}
}
private Map<String, String> initRcLibrary(BizObject library) throws JBOException {
Map<String, String> map = new HashMap<>();
map.put("id", library.getAttribute("id") == null ? "" : library.getAttribute("id").toString());
map.put("library_no", library.getAttribute("library_no") == null ? "" : library.getAttribute("library_no").toString());
map.put("library_value", library.getAttribute("library_value") == null ? "" : library.getAttribute("library_value").toString());
map.put("ap_item_value", library.getAttribute("ap_item_value") == null ? "" : library.getAttribute("ap_item_value").toString());
map.put("ap_item_no", library.getAttribute("ap_item_no") == null ? "" : library.getAttribute("ap_item_no").toString());
map.put("bc_item_no", library.getAttribute("bc_item_no") == null ? "" : library.getAttribute("bc_item_no").toString());
map.put("bc_item_value", library.getAttribute("bc_item_value") == null ? "" : library.getAttribute("bc_item_value").toString());
return map;
}
private Map<String, String> initMapLibrary(BizObject address) throws JBOException {
Map<String, String> map = new HashMap<>();
map.put("id", address.getAttribute("id") == null ? "" : address.getAttribute("id").toString());
map.put("address_code", address.getAttribute("address_code") == null ? "" : address.getAttribute("address_code").toString());
map.put("address_value", address.getAttribute("address_value") == null ? "" : address.getAttribute("address_value").toString());
map.put("parent_address_code", address.getAttribute("parent_address_code") == null ? "" : address.getAttribute("parent_address_code").toString());
map.put("parent_address_value", address.getAttribute("parent_address_value") == null ? "" : address.getAttribute("parent_address_value").toString());
map.put("grant_address_code", address.getAttribute("grant_address_code") == null ? "" : address.getAttribute("grant_address_code").toString());
map.put("grant_address_value", address.getAttribute("grant_address_value") == null ? "" : address.getAttribute("grant_address_value").toString());
map.put("address_code_level", address.getAttribute("address_code_level") == null ? "" : address.getAttribute("address_code_level").toString());
map.put("ap_library_code", address.getAttribute("ap_library_code") == null ? "" : address.getAttribute("ap_library_code").toString());
map.put("ap_address_code", address.getAttribute("ap_address_code") == null ? "" : address.getAttribute("ap_address_code").toString());
map.put("ap_address_value", address.getAttribute("ap_address_value") == null ? "" : address.getAttribute("ap_address_value").toString());
return map;
}
}

View File

@ -0,0 +1,10 @@
package com.ample.esb.common.cache;
import com.amarsoft.dict.als.cache.AbstractCache;
import com.amarsoft.dict.als.cache.loader.AbstractLoader;
public class EsbParamLoader extends AbstractLoader {
public AbstractCache getCacheInstance() {
return EsbParamCache.getInstance();
}
}

View File

@ -0,0 +1,84 @@
package com.ample.esb.controller;
import com.amarsoft.are.jbo.*;
import com.ample.esb.bean.afs.AccountSyncRequest;
import com.ample.esb.bean.esb.Transaction;
import com.ample.esb.service.EsbServise;
import com.ample.esb.service.impl.AccountSyncServiceImpl;
import jbo.sys.USER_INFO;
public class AccountSyncController {
private String operatorId;
private String userId;
private String userName;
private String afsState;
public String accountSyncDo(JBOTransaction tx) {
EsbServise es = new AccountSyncServiceImpl(getRequestBody());
Transaction tran = es.transactionDo();
String result = resultAnalysis(tran);
return result;
}
public AccountSyncRequest getRequestBody(){
AccountSyncRequest accountSyncRequest = new AccountSyncRequest();
accountSyncRequest.setOperatorId(operatorId);
accountSyncRequest.setUserId(userId);
accountSyncRequest.setUserName(userName);
accountSyncRequest.setSystemState(afsState);
return accountSyncRequest;
}
public String resultAnalysis(Transaction tran){
String response = "";
String retCode = tran.getMessageEsbHead().getRetCode();
if("000000".equals(retCode)){
String result = tran.getMessageBody().getResponse().getResult();
if("Successful".equals(result)){
BizObjectManager bm = null;
try {
bm = JBOFactory.getBizObjectManager(USER_INFO.CLASS_NAME);
BizObject bo = bm.createQuery("USERID=:USERID").setParameter("USERID",userId).getSingleResult(true);
bo.setAttributeValue("ATTRIBUTE1",afsState);
bm.saveObject(bo);
} catch (JBOException e) {
e.printStackTrace();
}
response = "操作成功!";
}
}else{
response = "请求出现错误,错误码:"+retCode+".请联系系统管理员!";
}
return response;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getAfsState() {
return afsState;
}
public void setAfsState(String afsState) {
this.afsState = afsState;
}
public String getOperatorId() {
return operatorId;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
}

View File

@ -0,0 +1,113 @@
package com.ample.esb.controller;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
import com.ample.esb.bean.esb.*;
import com.ample.esb.util.BaicPropertiesUtil;
import com.ample.esb.util.DateUtils;
import com.ample.esb.util.XstreamUtil;
import com.ample.sms.FileUtil;
import jbo.oti.RC_SCORE_RESULT;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class AfsResultServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public void doPost(HttpServletRequest request, HttpServletResponse response) {
System.out.println("============反欺诈人工判定结果请求回调开始!============");
response.setContentType("application/xml;charset:utf-8");
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0L);
response.setCharacterEncoding("utf-8");
PrintWriter out = null;
String resultXml = null;
try {
out = response.getWriter();
BufferedReader in = new BufferedReader(new InputStreamReader(request.getInputStream(), "UTF-8"));
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = in.readLine()) != null) {
sb.append(line);
}
resultXml = sb.toString();
ARE.getLog().info("接收到Rpt记录" + resultXml);
} catch (IOException e) {
e.printStackTrace();
}
out.print(updateResult(resultXml));
out.close();
System.out.println("============反欺诈人工判定结果请求回调结束!============");
}
public String updateResult(String requestXml){
Transaction tran = (Transaction)XstreamUtil.objectConvert(requestXml);
String logPath = BaicPropertiesUtil.get("log_path");
String globalSeqNo = tran.getMessageEsbHead().getGlobalSeqNo();
String projectNo = tran.getMessageBody().getAfsResultRequest().getApplyNo();
FileUtil.writeFile(logPath + projectNo +"_"+ globalSeqNo +"_request.txt", requestXml);
String fraudAlert = tran.getMessageBody().getAfsResultRequest().getFraudAlert();
String actionTaken = tran.getMessageBody().getAfsResultRequest().getActionTaken();
String RetCommStatus = "S";
Response rs = new Response();
rs.setResult("Successful");
MessageBody mb = new MessageBody();
mb.setResponse(rs);
tran.setMessageBody(mb);
MessageEsbHead esbHead = tran.getMessageEsbHead();
esbHead.setTargetMachineDate(DateUtils.dateNow());
esbHead.setTargetMachineTime(DateUtils.TimeNowAccurate());
esbHead.setTargetReciveDate(DateUtils.dateNow());
esbHead.setTargetReciveTime(DateUtils.TimeNowAccurate());
esbHead.setRetSystemId("APF");
esbHead.setRetCode("000000");
esbHead.setRetMsg("成功");
BizObjectManager bom = null;
BizObject boRsr = null;
try {
bom = JBOFactory.getBizObjectManager(RC_SCORE_RESULT.CLASS_NAME);
boRsr = bom.createQuery("project_no=:projectNo").setParameter("projectNo",projectNo).getSingleResult(true);
boRsr.setAttributeValue("fraud_alert_code",fraudAlert);
boRsr.setAttributeValue("fraud_taken_code",actionTaken);
boRsr.setAttributeValue("update_time", DateUtils.dateTimeNowCore());
bom.saveObject(boRsr);
} catch (JBOException e) {
e.printStackTrace();
tran.setMessageBody(null);
RetCommStatus = "F";
esbHead.setRetCode("99999");
esbHead.setRetMsg("失败:"+e.getErrorMessage());
}
esbHead.setRetCommStatus(RetCommStatus);
MessageAppHead appHead = tran.getMessageAppHead();
appHead.setTargetTranDate(DateUtils.dateNow());
appHead.setTargetTranTime(DateUtils.TimeNowAccurate());
String responseXml = XstreamUtil.xmlConvert(tran);
FileUtil.writeFile(logPath + projectNo +"_"+ globalSeqNo + RetCommStatus +"_response.txt", responseXml);
return responseXml;
}
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
doPost(request, response);
}
}

View File

@ -0,0 +1,99 @@
package com.ample.esb.controller;
import com.ample.esb.util.BaicPropertiesUtil;
import com.ample.esb.util.DateUtils;
import org.apache.commons.codec.binary.Hex;
import org.bouncycastle.util.io.pem.PemObject;
import org.bouncycastle.util.io.pem.PemReader;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.*;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.X509EncodedKeySpec;
import java.util.Base64;
public class AfsUrlController {
public String encryptUrl() throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidKeySpecException, IllegalBlockSizeException, BadPaddingException, IOException {
String RSAPublicKey = BaicPropertiesUtil.get("RSAPublicKey");
String sysId= "APF";
String appKey = "BAFCN" + projectNo + "FLS";
String dateTime = DateUtils.dateTimeNow();
String hashString = BaicPropertiesUtil.get("afs_url")+"sysid="+sysId+"&appkey="+appKey+"&userId="+userId+"&datetime="+dateTime;
System.out.println("初次拼接:"+hashString);
MessageDigest md = MessageDigest.getInstance("SHA-256");
byte[] bytes = md.digest(hashString.getBytes(StandardCharsets.UTF_8));
String hashValue = Hex.encodeHexString(bytes);
String rsaString = hashString.substring(hashString.indexOf("redirect?")+"redirect?".length())+"&hash="+hashValue;
System.out.println("进行RSA加密的内容"+rsaString);
//todo 密钥文件地址
//PublicKey publicKey = encryptRsaByFile("");
PublicKey publicKey = encryptRsaByString(RSAPublicKey);
Cipher cipher = Cipher.getInstance("RSA");
cipher.init(Cipher.ENCRYPT_MODE,publicKey);
byte[] encryptBytes = cipher.doFinal(rsaString.getBytes(StandardCharsets.UTF_8));
System.out.println(Base64.getEncoder().encodeToString(encryptBytes));
return Base64.getEncoder().encodeToString(encryptBytes);
}
private String userId;
private String projectNo;
public String getAfsUrl(){
String ipAddress = BaicPropertiesUtil.get("afs_url");
String encryptData = "";
try {
encryptData = this.encryptUrl();
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
} catch (NoSuchPaddingException e) {
e.printStackTrace();
} catch (InvalidKeyException e) {
e.printStackTrace();
} catch (InvalidKeySpecException e) {
e.printStackTrace();
} catch (IllegalBlockSizeException e) {
e.printStackTrace();
} catch (BadPaddingException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
System.out.println(ipAddress+encryptData);
return ipAddress+encryptData;
}
public PublicKey encryptRsaByFile(String publicKeyPem) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {
PemReader pemReader = new PemReader(new FileReader(publicKeyPem));
PemObject pemObject = pemReader.readPemObject();
byte[] privateKeyBytes = pemObject.getContent();
pemReader.close();
PublicKey key = KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(privateKeyBytes));
return key;
}
public PublicKey encryptRsaByString(String publicKey) throws NoSuchAlgorithmException, InvalidKeySpecException {
byte[] keyByte = Base64.getMimeDecoder().decode(publicKey.getBytes());
PublicKey key = KeyFactory.getInstance("RSA").generatePublic(new X509EncodedKeySpec(keyByte));
return key;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getProjectNo() {
return projectNo;
}
public void setProjectNo(String projectNo) {
this.projectNo = projectNo;
}
}

View File

@ -0,0 +1,54 @@
package com.ample.esb.controller;
import com.amarsoft.are.jbo.JBOTransaction;
import com.ample.esb.bean.esb.Transaction;
import com.ample.esb.service.AmpService;
import com.ample.esb.service.impl.AmpServiceImpl;
import java.util.HashMap;
import java.util.Map;
public class AmpController {
private String operatorId;
private String flowUnid;
public String ampDo(JBOTransaction tx) throws Exception {
Map<String,String> map = new HashMap<String,String>();
map.put("flowUnid",flowUnid);
map.put("operatorId",operatorId);
AmpService as = new AmpServiceImpl(map);
Transaction tran = as.transactionDo();
String result = resultAnalysis(tran);
return result;
}
public String resultAnalysis(Transaction tran){
String response = "";
String retCode = tran.getMessageEsbHead().getRetCode();
if("000000".equals(retCode)){
response = "操作成功!";
}else{
response = "请求出现错误,错误码:"+retCode+".请联系系统管理员!";
}
return response;
}
public String getOperatorId() {
return operatorId;
}
public void setOperatorId(String operatorId) {
this.operatorId = operatorId;
}
public String getFlowUnid() {
return flowUnid;
}
public void setFlowUnid(String flowUnid) {
this.flowUnid = flowUnid;
}
}

View File

@ -0,0 +1,157 @@
package com.ample.esb.server;
import com.alibaba.fastjson.JSONObject;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.*;
import com.ample.esb.bean.esb.*;
import com.ample.esb.util.BaicPropertiesUtil;
import com.ample.esb.util.DateUtils;
import com.ample.esb.util.XstreamUtil;
import com.ample.sms.FileUtil;
import com.ample.sms.WriteRptThread;
import com.tenwa.httpclient.pboc.PbocXmlUtils;
import com.tenwa.reckon.util.UUIDUtil;
import jbo.oti.RC_CALLBACK_LOG;
import jbo.oti.RC_SCORE_RESULT;
import jbo.oti.RC_SCORE_RESULT_LOG;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* 评分结果推送接收接口
*/
public class ScoreResultServlet extends HttpServlet {
public ScoreResultServlet() {
}
private static final long serialVersionUID = 1L;
public void doPost(HttpServletRequest request, HttpServletResponse response) {
System.out.println("评分结果推送接收接口请求回调开始!");
response.setContentType("application/xml;charset:utf-8");
response.setHeader("Cache-Control", "no-store");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0L);
response.setCharacterEncoding("utf-8");
PrintWriter out = null;
String resultXml = null;
String res = null;
try {
out = response.getWriter();
BufferedReader in = new BufferedReader(new InputStreamReader(request.getInputStream(), "UTF-8"));
StringBuilder sb = new StringBuilder();
String line = null;
while ((line = in.readLine()) != null) {
sb.append(line);
}
resultXml = sb.toString();
ARE.getLog().info("接收到Rpt记录" + resultXml);
} catch (Exception e) {
e.printStackTrace();
}
out.print(updateResult(resultXml));
System.out.println("评分结果推送接收接口请求回调结束!");
out.close();
}
private void savePushLog(String xmlRes) throws Exception{
JBOTransaction tx = null;
try{
if (!WriteScoreResultThread.rptIsAlive()) {
WriteScoreResultThread.getRptthread().start();
}
tx = JBOFactory.createJBOTransaction();
JSONObject resStrJson = PbocXmlUtils.toJson(xmlRes);
JSONObject resJsonTransaction = resStrJson.getJSONObject("TRANSACTION");//申请号
JSONObject resJsonMessageBody = resJsonTransaction.getJSONObject("MESSAGE_BODY");//申请号
JSONObject resJsonRequest = resJsonMessageBody.getJSONObject("REQUEST");//申请号
JSONObject resJson = resJsonRequest.getJSONObject("APPLICATION");//申请号
// JSONObject resJson = resStrJson.getJSONObject("APPLICATION");//申请号
JSONObject baseInfoJson = resJson.getJSONObject("BASE_INFO");//申请号
String projectNo = baseInfoJson.getString("APPLICATION_NUMBER");//申请号
BizObjectManager rcCallbackLog = JBOFactory.getBizObjectManager(RC_CALLBACK_LOG.CLASS_NAME, tx);
BizObject rcCallbackLogBizObject = rcCallbackLog.newObject();
rcCallbackLogBizObject.setAttributeValue("project_no", projectNo);
rcCallbackLogBizObject.setAttributeValue("callback_data", xmlRes);
// 推送结果类型评分结果 score, 反欺诈 fraud
rcCallbackLogBizObject.setAttributeValue("callback_type", "score");
rcCallbackLogBizObject.setAttributeValue("handle_sts", "0");
rcCallbackLogBizObject.setAttributeValue("handle_value", "待处理");
String callBackLogId = UUIDUtil.getUUID();
rcCallbackLogBizObject.setAttributeValue("callback_id", callBackLogId);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式
String date = sdf.format(new Date()); //将系统时间转换成上方指定类型
rcCallbackLogBizObject.setAttributeValue("input_time", date);
rcCallbackLogBizObject.setAttributeValue("update_time", date);
rcCallbackLog.saveObject(rcCallbackLogBizObject);
resStrJson.put("callBackLogId", callBackLogId);
WriteScoreResultThread.scoreResultQueue.put(resStrJson);
} catch (Exception e) {
tx.rollback();
e.printStackTrace();
throw new RuntimeException(e);
} finally {
try {
if (tx != null) {
tx.commit();
}
} catch (JBOException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}
}
public String updateResult(String requestXml) {
Transaction tran = (Transaction) XstreamUtil.objectConvert(requestXml);
String logPath = BaicPropertiesUtil.get("log_path");
String globalSeqNo = tran.getMessageEsbHead().getGlobalSeqNo();
String projectNo = tran.getMessageBody().getAfsResultRequest().getApplyNo();
FileUtil.writeFile(logPath + projectNo +"_"+ globalSeqNo +"_request.txt", requestXml);
String RetCommStatus = "S";
Response rs = new Response();
rs.setResult("Successful");
MessageBody mb = new MessageBody();
mb.setResponse(rs);
tran.setMessageBody(mb);
MessageEsbHead esbHead = tran.getMessageEsbHead();
esbHead.setTargetMachineDate(DateUtils.dateNow());
esbHead.setTargetMachineTime(DateUtils.TimeNowAccurate());
esbHead.setTargetReciveDate(DateUtils.dateNow());
esbHead.setTargetReciveTime(DateUtils.TimeNowAccurate());
esbHead.setRetCode("000000");
esbHead.setRetMsg("成功");
esbHead.setRetSystemId("APF");
try {
savePushLog(requestXml);
} catch (Exception e) {
e.printStackTrace();
tran.setMessageBody(null);
RetCommStatus = "F";
esbHead.setRetCode("99999");
esbHead.setRetMsg("失败:"+e.getMessage());
}
esbHead.setRetCommStatus(RetCommStatus);
MessageAppHead appHead = tran.getMessageAppHead();
appHead.setTargetTranDate(DateUtils.dateNow());
appHead.setTargetTranTime(DateUtils.TimeNowAccurate());
String responseXml = XstreamUtil.xmlConvert(tran);
FileUtil.writeFile(logPath + projectNo +"_"+ globalSeqNo +"_response.txt", responseXml);
return responseXml;
}
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
doPost(request, response);
}
}

View File

@ -0,0 +1,345 @@
package com.ample.esb.server;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.*;
import com.ample.sms.FileUtil;
import com.tenwa.httpclient.pboc.PbocXmlUtils;
import com.tenwa.reckon.util.UUIDUtil;
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
import jbo.com.tenwa.lease.comm.LB_SMS_NOTICE_TASKS;
import jbo.oti.*;
import org.apache.commons.collections.CollectionUtils;
import org.dom4j.DocumentException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.LinkedBlockingQueue;
public class WriteScoreResultThread extends Thread{
public static LinkedBlockingQueue<JSONObject> scoreResultQueue = new LinkedBlockingQueue<>();
private static boolean STOP = false;
private static Thread rptThread = new WriteScoreResultThread();
private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
private WriteScoreResultThread() {
}
public void run() {
STOP = false;
try {
while(!STOP) {
JSONObject resJson = scoreResultQueue.take();
saveSmsRpt(resJson);
}
} catch (Exception var5) {
var5.printStackTrace();
STOP = true;
rptThread = null;
}
}
public static boolean rptIsAlive() {
return rptThread.isAlive();
}
public static Thread getRptthread() {
if (rptThread == null) {
rptThread = new WriteScoreResultThread();
}
return rptThread;
}
public void saveSmsRpt(JSONObject resJson) throws JBOException, DocumentException {
saveUpdateScoreResult("score", resJson);
}
/**
* 保存数据到实体
* @param type 处理类型评分结果 score, 反欺诈 fraud
* @param resStrJson 结果
*/
private void saveUpdateScoreResult(String type, JSONObject resStrJson) throws JBOException {
JBOTransaction tx = null;
try{
tx = JBOFactory.createJBOTransaction();
JSONObject resJsonTransaction = resStrJson.getJSONObject("TRANSACTION");//申请号
JSONObject resJsonMessageBody = resJsonTransaction.getJSONObject("MESSAGE_BODY");//申请号
JSONObject resJsonRequest = resJsonMessageBody.getJSONObject("REQUEST");//申请号
JSONObject resJson = resJsonRequest.getJSONObject("APPLICATION");//申请号
// JSONObject resJson = resStrJson.getJSONObject("APPLICATION");//申请号
JSONObject baseInfoJson = resJson.getJSONObject("BASE_INFO");//申请号
String projectNo = baseInfoJson.getString("APPLICATION_NUMBER");//申请号
String tranNo = baseInfoJson.getString("TRAN_NO");//流水号
String flowNo = queryProjectTemp(projectNo);
ARE.getLog().info("WriteScoreResultThread#saveUpdateScoreResulttranNo=" + tranNo);
// : 2023-8-24 解析结果
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式
String date = sdf.format(new Date()); //将系统时间转换成上方指定类型
String resultId = UUIDUtil.getUUID();
JSONObject blazeResultJson = resJson.getJSONObject("BLAZERESULT");//评分结果项
String resultCode = blazeResultJson.getString("RESULT_CODE");// 评分结果状态 1000为成功其他失败
String result = blazeResultJson.getString("RESULT");//评分结果 AA RR RD DD
String thirdResultUrl = "http://10.91.122.11:8081/baicaplcredit/businessFlow/rzzlCreditResultForThirdParty.jsp?applicationNo="
+ projectNo + "&transNo=" + tranNo;
JSONObject fraudResultJson = resJson.getJSONObject("FRAUD_RESULT");// 反欺诈结果
String fraudAlert = null;// 反欺诈预警结果HSC
String actionTaken = null;// 反欺诈判定结果FKS
if(null != fraudResultJson){
fraudAlert = fraudResultJson.getString("FRAUD_ALERT");// 反欺诈预警结果HSC
actionTaken = fraudResultJson.getString("ACTION_TAKEN");// 反欺诈判定结果FKS
}else {
ARE.getLog().error("WriteScoreResultThread#saveUpdateScoreResult ---FRAUD_ALERT-【反欺诈结果为空】-----------》tranNo=" + tranNo);
}
//评分结果
BizObjectManager rcScoreResult = JBOFactory.getBizObjectManager(RC_SCORE_RESULT.CLASS_NAME, tx);
BizObject rcScoreResultBizObject = rcScoreResult.createQuery("project_no=:project_no").setParameter("project_no", projectNo).getSingleResult(true);
if(null == rcScoreResultBizObject){
rcScoreResultBizObject = rcScoreResult.newObject();
rcScoreResultBizObject.setAttributeValue("score_result_id", resultId);
rcScoreResultBizObject.setAttributeValue("project_no", projectNo);
rcScoreResultBizObject.setAttributeValue("flow_no", flowNo);
rcScoreResultBizObject.setAttributeValue("input_time", date);
}else {
resultId = rcScoreResultBizObject.getAttribute("score_result_id").toString();
}
rcScoreResultBizObject.setAttributeValue("tran_no", tranNo);//流水号
rcScoreResultBizObject.setAttributeValue("score_result_code", result);// 评分结果 AA RR RD DD
rcScoreResultBizObject.setAttributeValue("score_result_url", thirdResultUrl);// 评分结果报告
rcScoreResultBizObject.setAttributeValue("fraud_alert_code", fraudAlert);// 反欺诈预警结果HSC
rcScoreResultBizObject.setAttributeValue("fraud_taken_code", actionTaken);// 反欺诈判定结果FKS
rcScoreResultBizObject.setAttributeValue("update_time", date);
rcScoreResult.saveObject(rcScoreResultBizObject);
// 评分结果明细
if("score".equals(type)){
BizObjectManager rcScoreResultDetail = JBOFactory.getBizObjectManager(RC_SCORE_RESULT_DETAIL.CLASS_NAME, tx);
List<BizObject> rcScoreResultDetailBizObjectList = rcScoreResultDetail.createQuery("project_no=:project_no").setParameter("project_no", projectNo).getResultList(true);
if(CollectionUtils.isEmpty(rcScoreResultDetailBizObjectList)){
rcScoreResultDetailBizObjectList = initScoreResultDetailBizObjectList(rcScoreResultDetail, flowNo, projectNo, tranNo, resultId, date);
}
JSONObject personListObj = resJson.getJSONObject("NCIICS");//实名认证列表
if(null == personListObj) {
ARE.getLog().warn("WriteScoreResultThread#saveUpdateScoreResult【NCIICS is null 1】 projectNo=" + projectNo);
}else{
JSONArray personList = parseArray(personListObj, "NCIIC");;//实名认证列表
if(null == personList) {
ARE.getLog().warn("WriteScoreResultThread#saveUpdateScoreResult【NCIICS is null 2】 projectNo=" + projectNo);
}else {
for(int i = 0; i < personList.size(); i++){
for(BizObject scoreResBiz : rcScoreResultDetailBizObjectList){
if(personList.getJSONObject(i).getString("APPLICANTIDNUMBER").equals(scoreResBiz.getAttribute("person_card_no").toString())){
scoreResBiz.setAttributeValue("third_state_code", personList.getJSONObject(i).getString("THIRDSTATECODE"));
scoreResBiz.setAttributeValue("name_result", personList.getJSONObject(i).getString("NAMERESULT"));
scoreResBiz.setAttributeValue("cert_id_result", personList.getJSONObject(i).getString("CERTINORESULT"));
scoreResBiz.setAttributeValue("error_message", personList.getJSONObject(i).getString("ERRORMESSAGE"));
}
}
}
}
}
JSONObject scoreResultsObj = resJson.getJSONObject("BLAZERESULT");//评分列表
if(null == scoreResultsObj) {
ARE.getLog().warn("WriteScoreResultThread#saveUpdateScoreResult【BLAZERESULT is null 1】 projectNo=" + projectNo);
}else {
JSONObject scoreResultsObjRes = scoreResultsObj.getJSONObject("SCORERESULTS");//评分列表
if (null == scoreResultsObjRes) {
ARE.getLog().warn("WriteScoreResultThread#saveUpdateScoreResult【BLAZERESULT is null 2】 projectNo=" + projectNo);
} else {
JSONArray scoreResults = parseArray(scoreResultsObjRes, "SCORERESULT");
if (null == scoreResults) {
ARE.getLog().warn("WriteScoreResultThread#saveUpdateScoreResult【BLAZERESULT is null 3】 projectNo=" + projectNo);
} else {
for(int i = 0; i < scoreResults.size(); i++){
JSONObject indexResJson = scoreResults.getJSONObject(i);
String idCard = indexResJson.getString("ID_CARD_NBR");
for(BizObject scoreResBiz : rcScoreResultDetailBizObjectList){
if(idCard.equals(scoreResBiz.getAttribute("person_card_no").toString())){
scoreResBiz.setAttributeValue("score_level", scoreResults.getJSONObject(i).getString("SCORE_LEVEL"));
}
}
}
for(BizObject scoreResBiz : rcScoreResultDetailBizObjectList){//保存评分明细
scoreResBiz.setAttributeValue("update_time", date);
scoreResBiz.setAttributeValue("third_result_url", thirdResultUrl);
scoreResBiz.setAttributeValue("tran_no", tranNo);//流水号
scoreResBiz.setAttributeValue("pboc_result_url", "www.baidu.com");
rcScoreResultDetail.saveObject(scoreResBiz);
}
}
}
}
}
// 日志保存
BizObjectManager rcScoreResultLog = JBOFactory.getBizObjectManager(RC_SCORE_RESULT_LOG.CLASS_NAME, tx);
BizObject rcScoreResultLogBizObject = rcScoreResultLog.newObject();
rcScoreResultLogBizObject.setAttributeValue("score_result_id", resultId);
rcScoreResultLogBizObject.setAttributeValue("project_no", projectNo);
rcScoreResultLogBizObject.setAttributeValue("tran_no", tranNo);
rcScoreResultLogBizObject.setAttributeValue("flow_no", flowNo);
rcScoreResultLogBizObject.setAttributeValue("score_result_url", thirdResultUrl);// 评分结果报告
rcScoreResultLogBizObject.setAttributeValue("score_result_code", result);// 评分结果 AA RR RD DD
rcScoreResultLogBizObject.setAttributeValue("fraud_alert_code", fraudAlert);// 反欺诈预警结果HSC
rcScoreResultLogBizObject.setAttributeValue("fraud_taken_code", actionTaken);// 反欺诈判定结果FKS
rcScoreResultLogBizObject.setAttributeValue("input_time", date);
rcScoreResultLog.saveObject(rcScoreResultLogBizObject);
// 更新回调接口执行状态
String callBackLogId = resStrJson.getString("callBackLogId");//处理日志logID
BizObjectManager rcCallbackLog = JBOFactory.getBizObjectManager(RC_CALLBACK_LOG.CLASS_NAME, tx);
BizObject rcCallbackLogBizObject = rcCallbackLog.createQuery("callback_id=:callback_id").setParameter("callback_id", callBackLogId).getSingleResult(true);
rcCallbackLogBizObject.setAttributeValue("handle_sts", "1");
rcCallbackLogBizObject.setAttributeValue("handle_value", "已处理");
rcCallbackLogBizObject.setAttributeValue("update_time", date);
rcCallbackLog.saveObject(rcCallbackLogBizObject);
} catch (Exception e) {
tx.rollback();
e.printStackTrace();
} finally {
try {
if (tx != null) {
tx.commit();
}
} catch (JBOException e) {
e.printStackTrace();
}
}
}
private JSONArray parseArray(JSONObject jsonObject, String key){
JSONArray resArr = null;
try {
if(isJsonArray(jsonObject, key)){
resArr = jsonObject.getJSONArray(key);//评分列表
}else {
resArr = new JSONArray();
resArr.add(jsonObject.getJSONObject(key));
}
}catch (Exception e){
e.printStackTrace();
}
return resArr;
}
private boolean isJsonArray(JSONObject jsonObject, String key){
try {
jsonObject.getJSONArray(key);
}catch (Exception e){
e.printStackTrace();
return false;
}
return true;
}
private String queryProjectTemp(String projectNo) throws JBOException {
String flowNo = null;
ARE.getLog().info("WriteScoreResultThread#saveUpdateScoreResultflowNo=" + flowNo);
BizObjectManager lbProjectInfo = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);// 项目信息
List<BizObject> lbProjectInfoBizObjectList = lbProjectInfo.createQuery("PROJECT_NO=:PROJECT_NO").setParameter("PROJECT_NO", projectNo).getResultList(false);
if(CollectionUtils.isNotEmpty(lbProjectInfoBizObjectList)){
for(BizObject lbProject : lbProjectInfoBizObjectList){
if(null == flowNo){
flowNo = lbProject.getAttribute("FLOWUNID").toString();
ARE.getLog().info("WriteScoreResultThread#saveUpdateScoreResultflowNoTempLong=" + flowNo.substring(3));
}else {
String flowNoTemp = lbProject.getAttribute("FLOWUNID").toString();
ARE.getLog().info("WriteScoreResultThread#saveUpdateScoreResultflowNoTemp=" + flowNo);
if(Long.parseLong(flowNo.substring(3)) < Long.parseLong(flowNoTemp.substring(3))){
flowNo = flowNoTemp;
}
}
}
}
return flowNo;
}
/**
* 保存详细数据
* @param rcScoreResultDetail
* @param flowNo
* @param projectNo
* @param tranNo 流水号
* @param resultId
* @return
* @throws JBOException
*/
private List<BizObject> initScoreResultDetailBizObjectList(BizObjectManager rcScoreResultDetail, String flowNo, String projectNo, String tranNo, String resultId, String date) throws JBOException {
List<BizObject> rcScoreResultDetailBizObjectList = new ArrayList<>();
// 承租人
BizObjectManager customerPerson = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME);
BizObject customerPersonBizObject = customerPerson.createQuery("flowunid=:flowunid").setParameter("flowunid", flowNo).getSingleResult(false);
BizObject rcScoreResultDetailCustomerPersonBizObject = rcScoreResultDetail.newObject();
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("score_result_detail_id", UUIDUtil.getUUID());
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("score_result_id", resultId);
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("project_no", projectNo);
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("tran_no", tranNo);
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("flow_no", flowNo);
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("person_type", "01");//承租人
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("person_name",
customerPersonBizObject.getAttribute("FULLNAME").toString());// 承租人姓名
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("person_card_type",
customerPersonBizObject.getAttribute("CERTTYPE").toString());// 承租人
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("person_card_no",
customerPersonBizObject.getAttribute("CERTID").toString());// 承租人
rcScoreResultDetailCustomerPersonBizObject.setAttributeValue("input_time", date);
rcScoreResultDetailBizObjectList.add(rcScoreResultDetailCustomerPersonBizObject);
// 共同申请人
BizObjectManager customerFamily = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY_TEMP.CLASS_NAME);
BizObject customerFamilyBizObject = customerFamily.createQuery("flowunid=:flowunid and Partner_='Y'")
.setParameter("flowunid", flowNo).getSingleResult(false);
if(null != customerFamilyBizObject){
BizObject rcScoreResultDetailCustomerFamilyBizObject = rcScoreResultDetail.newObject();
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("score_result_detail_id", UUIDUtil.getUUID());
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("score_result_id", resultId);
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("project_no", projectNo);
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("tran_no", tranNo);
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("flow_no", flowNo);
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("person_type", "02");//共同申请人
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("person_name",
customerFamilyBizObject.getAttribute("name").toString());//共同申请人姓名
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("person_card_type",
customerFamilyBizObject.getAttribute("certtype").toString());//共同申请人
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("person_card_no",
customerFamilyBizObject.getAttribute("certid").toString());//共同申请人
rcScoreResultDetailCustomerFamilyBizObject.setAttributeValue("input_time", date);
rcScoreResultDetailBizObjectList.add(rcScoreResultDetailCustomerFamilyBizObject);
}
// 担保人
BizObjectManager guaranteeUnit = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME);
List<BizObject> guaranteeUnitBizObjectList = guaranteeUnit.createQuery("FLOWUNID=:FLOWUNID").setParameter("FLOWUNID", flowNo).getResultList(false);
if(CollectionUtils.isNotEmpty(guaranteeUnitBizObjectList)){
for(BizObject guarantee : guaranteeUnitBizObjectList){
BizObject rcScoreResultDetailGuaranteeUnitBizObject = rcScoreResultDetail.newObject();
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("score_result_detail_id", UUIDUtil.getUUID());
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("score_result_id", resultId);
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("project_no", projectNo);
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("tran_no", tranNo);
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("flow_no", flowNo);
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("person_type", "03");//担保人
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("person_name",
guarantee.getAttribute("FULLNAME").toString());//担保人姓名
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("person_card_type",
guarantee.getAttribute("CERTTYPE").toString());//担保人
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("person_card_no",
guarantee.getAttribute("CERTID").toString());//担保人
rcScoreResultDetailGuaranteeUnitBizObject.setAttributeValue("input_time", date);
rcScoreResultDetailBizObjectList.add(rcScoreResultDetailGuaranteeUnitBizObject);
}
}
return rcScoreResultDetailBizObjectList;
}
}

View File

@ -0,0 +1,8 @@
package com.ample.esb.service;
import com.ample.esb.bean.amp.ApplicationTitle;
public interface AmpService extends EsbServise{
ApplicationTitle getApplicationTitle() throws Exception;
}

View File

@ -0,0 +1,7 @@
package com.ample.esb.service;
import com.ample.esb.bean.esb.Transaction;
public interface EsbServise {
Transaction transactionDo();
}

View File

@ -0,0 +1,55 @@
package com.ample.esb.service.impl;
import com.ample.esb.bean.afs.AccountSyncRequest;
import com.ample.esb.bean.esb.MessageAppHead;
import com.ample.esb.bean.esb.MessageBody;
import com.ample.esb.bean.esb.MessageEsbHead;
import com.ample.esb.common.EsbCommon;
public class AccountSyncServiceImpl extends EsbCommon {
private AccountSyncRequest accountSyncRequest;
public AccountSyncServiceImpl(AccountSyncRequest asr) {
setAccountSyncRequest(asr);
}
@Override
public MessageEsbHead esbHead() {
MessageEsbHead head = new MessageEsbHead();
head = super.getCommonEsbHead(head);
head.setTargetSystemId("AFS");
head.setServiceId("SCN0003");
head.setServiceVersion("1.0.0");
head.setScenesId("019");
head.setScenesVersion("1.0");
head.setTranCode("AFS012");
head.setCommType("00");
head.setChannelId("09");
head.setFileFlag("0");
return head;
}
@Override
public MessageAppHead appHead() {
MessageAppHead head = new MessageAppHead();
head = super.getCommonAppHead(head);
head.setOperatorId(accountSyncRequest.getOperatorId());
return head;
}
@Override
public MessageBody messgeBody() {
MessageBody body = new MessageBody();
body = super.getCommonBody(body);
body.setRequest(accountSyncRequest);
return body;
}
public AccountSyncRequest getAccountSyncRequest() {
return accountSyncRequest;
}
public void setAccountSyncRequest(AccountSyncRequest accountSyncRequest) {
this.accountSyncRequest = accountSyncRequest;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,36 @@
package com.ample.esb.util;
import java.io.IOException;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
public class BaicPropertiesUtil {
private static Map<String, String> attributes;
public static void load() {
attributes = new ConcurrentHashMap<String, String>();
Properties prop = new Properties();
try {
prop.load(BaicPropertiesUtil.class.getResourceAsStream("/baic.properties"));
for(Map.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();
}
}
public static void destroy() {
if(attributes != null) attributes.clear();
}
public static String get(String propName) {
if(attributes == null) load();
return attributes.get(propName);
}
}

View File

@ -0,0 +1,251 @@
package com.ample.esb.util;
import org.apache.commons.lang3.time.DateFormatUtils;
import java.lang.management.ManagementFactory;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.*;
import java.util.Date;
/**
* 时间工具类
*
* @author
*/
public class DateUtils extends org.apache.commons.lang3.time.DateUtils
{
public static String YYYY = "yyyy";
public static String YYYY_MM = "yyyy-MM";
public static String YYYY_MM_DD = "yyyy-MM-dd";
public static String YYYY_MM_CORE = "yyyy/MM";
public static String YYYY_MM_DD_CORE = "yyyy/MM/dd";
public static String YYYYMMDD = "yyyyMMdd";
public static String HHMMSSSSS = "HHmmssSSS";
public static String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
public static String YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS";
public static String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
public static String YYYY_MM_DD_HH_MM_SS_CORE = "yyyy/MM/dd HH:mm:ss";
private static String[] parsePatterns = {
"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM",
"yyyy/MM/dd", "yyyy/MM/dd HH:mm:ss", "yyyy/MM/dd HH:mm", "yyyy/MM",
"yyyy.MM.dd", "yyyy.MM.dd HH:mm:ss", "yyyy.MM.dd HH:mm", "yyyy.MM"};
/**
* 获取当前Date型日期
*
* @return Date() 当前日期
*/
public static Date getNowDate()
{
return new Date();
}
/**
* 获取当前日期, 默认格式为yyyy-MM-dd
*
* @return String
*/
public static String getDate()
{
return dateTimeNow(YYYY_MM_DD);
}
public static final String getTime()
{
return dateTimeNow(YYYY_MM_DD_HH_MM_SS);
}
public static final String dateNow()
{
return dateTimeNow(YYYYMMDD);
}
public static final String yearNow()
{
return dateTimeNow(YYYY);
}
public static final String dateNowCore()
{
return dateTimeNow(YYYY_MM_DD_CORE);
}
public static final String dateTimeNowCore()
{
return dateTimeNow(YYYY_MM_DD_HH_MM_SS_CORE);
}
public static final String monthNowCore(){
return dateTimeNow(YYYY_MM_CORE);
}
public static final String TimeNowAccurate()
{
return dateTimeNow(HHMMSSSSS);
}
public static final String dateTimeNow()
{
return dateTimeNow(YYYYMMDDHHMMSS);
}
public static final String dateTimeNowAccurate()
{
return dateTimeNow(YYYYMMDDHHMMSSSSS);
}
public static final String dateTimeNow(final String format)
{
return parseDateToStr(format, new Date());
}
public static final String dateTime(final Date date)
{
return parseDateToStr(YYYY_MM_DD, date);
}
public static final String parseDateToStr(final String format, final Date date)
{
return new SimpleDateFormat(format).format(date);
}
public static final Date dateTime(final String format, final String ts)
{
try
{
return new SimpleDateFormat(format).parse(ts);
}
catch (ParseException e)
{
throw new RuntimeException(e);
}
}
/**
* 日期路径 即年// 如2018/08/08
*/
public static final String datePath()
{
Date now = new Date();
return DateFormatUtils.format(now, "yyyy/MM/dd");
}
/**
* 日期路径 即年// 如20180808
*/
public static final String dateTime()
{
Date now = new Date();
return DateFormatUtils.format(now, "yyyyMMdd");
}
/**
* 日期型字符串转化为日期 格式
*/
public static Date parseDate(Object str)
{
if (str == null)
{
return null;
}
try
{
return parseDate(str.toString(), parsePatterns);
}
catch (ParseException e)
{
return null;
}
}
/**
* 获取服务器启动时间
*/
public static Date getServerStartDate()
{
long time = ManagementFactory.getRuntimeMXBean().getStartTime();
return new Date(time);
}
/**
* 计算相差天数
*/
public static int differentDaysByMillisecond(Date date1, Date date2)
{
return Math.abs((int) ((date2.getTime() - date1.getTime()) / (1000 * 3600 * 24)));
}
/**
* 计算两个时间差
*/
public static String getDatePoor(Date endDate, Date nowDate)
{
long nd = 1000 * 24 * 60 * 60;
long nh = 1000 * 60 * 60;
long nm = 1000 * 60;
// long ns = 1000;
// 获得两个时间的毫秒时间差异
long diff = endDate.getTime() - nowDate.getTime();
// 计算差多少天
long day = diff / nd;
// 计算差多少小时
long hour = diff % nd / nh;
// 计算差多少分钟
long min = diff % nd % nh / nm;
// 计算差多少秒//输出结果
// long sec = diff % nd % nh % nm / ns;
return day + "" + hour + "小时" + min + "分钟";
}
/**
* 增加 LocalDateTime ==> Date
*/
public static Date toDate(LocalDateTime temporalAccessor)
{
ZonedDateTime zdt = temporalAccessor.atZone(ZoneId.systemDefault());
return Date.from(zdt.toInstant());
}
/**
* 增加 LocalDate ==> Date
*/
public static Date toDate(LocalDate temporalAccessor)
{
LocalDateTime localDateTime = LocalDateTime.of(temporalAccessor, LocalTime.of(0, 0, 0));
ZonedDateTime zdt = localDateTime.atZone(ZoneId.systemDefault());
return Date.from(zdt.toInstant());
}
public static int yearDiffByDate(String start,String end){
int diffYear = Integer.parseInt(end.substring(0,4))-Integer.parseInt(start.substring(0,4));
if(Integer.parseInt(end.substring(4))<Integer.parseInt(start.substring(4))){
diffYear = diffYear-1;
}
return diffYear;
}
public static int monthDiffByDate(String start,String end){
int diffMonth = 0;
if(Integer.parseInt(end.substring(6))>=Integer.parseInt(start.substring(6))){
diffMonth = Integer.parseInt(end.substring(4,6))-Integer.parseInt(start.substring(4,6));
}else{
diffMonth = Integer.parseInt(end.substring(4,6))-Integer.parseInt(start.substring(4,6))-1;
}
if(diffMonth<0){
diffMonth = diffMonth + 12;
}
return diffMonth;
}
}

View File

@ -0,0 +1,27 @@
package com.ample.esb.util;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.JBOException;
import com.amarsoft.are.jbo.JBOFactory;
public class GlobalSeqNo {
public synchronized String getGlobalSeqNo() {
String globalSeqNo = null;
BizObject bo = null;
try {
bo = JBOFactory.getBizObjectManager("jbo.oti.ESB_LOG").createQuery("select max(GLOBAL_SEQ_NO) as v.GLOBAL_SEQ_NO_MAX from O where LEFT(INPUTTIME,8)=:INPUTTIME").setParameter("INPUTTIME", DateUtils.dateNow()).getSingleResult(false);
if(bo==null||bo.getAttribute("GLOBAL_SEQ_NO_MAX")==null||"".equals(bo.getAttribute("GLOBAL_SEQ_NO_MAX").toString())){
globalSeqNo = "GAPF" + DateUtils.dateNow() + "00000001";
}else{
globalSeqNo = bo.getAttribute("GLOBAL_SEQ_NO_MAX").toString();
long seqNo = Long.valueOf(globalSeqNo.substring(4))+1;
globalSeqNo = "GAPF" + seqNo;
}
} catch (JBOException e) {
e.printStackTrace();
}
return globalSeqNo;
}
}

View File

@ -0,0 +1,91 @@
package com.ample.esb.util;
import com.ample.esb.bean.esb.Transaction;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.core.util.QuickWriter;
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
import com.thoughtworks.xstream.io.xml.PrettyPrintWriter;
import com.thoughtworks.xstream.io.xml.XppDriver;
import java.io.Writer;
public class XstreamUtil {
public static String PREFIX_CDATA = "<![CDATA[";
public static String SUFFIX_CDATA = "]]>";
/**
* 全部转化
*/
public static XStream initXStream() {
return new XStream(new XppDriver() {
@Override
public HierarchicalStreamWriter createWriter(Writer out) {
return new PrettyPrintWriter(out) {
protected void writeText(QuickWriter writer, String text) {
// if (text.startsWith(PREFIX_CDATA) &&
// text.endsWith(SUFFIX_CDATA)) {
writer.write(PREFIX_CDATA + text + SUFFIX_CDATA);
// } else {
// super.writeText(writer, text);
// }
}
};
}
});
}
/**
* 初始化XStream可支持某一字段可以加入CDATA标签,如果需要某一字段使用原文,就需要在String类型的text的头加上
* "<![CDATA["和结尾处加上"]]>"标签 以供XStream输出时进行识别
* @param isAddCDATA 是否支持CDATA标签
*/
public static XStream initXStream(boolean isAddCDATA) {
XStream xstream = null;
if (isAddCDATA) {
xstream = new XStream(new XppDriver() {
@Override
public HierarchicalStreamWriter createWriter(Writer out) {
return new PrettyPrintWriter(out) {
protected void writeText(QuickWriter writer, String text) {
if (text.startsWith(PREFIX_CDATA) && text.endsWith(SUFFIX_CDATA)) {
writer.write(text);
} else {
super.writeText(writer, text);
}
}
};
}
});
} else {
xstream = new XStream();
}
return xstream;
}
public static Object objectConvert(String xml) {
if(xml.startsWith("<?xml")){
xml = xml.substring(xml.indexOf("?>")+2);
}
XStream xs = new XStream();
xs.ignoreUnknownElements();
xs.autodetectAnnotations(true);
xs.alias("TRANSACTION", Transaction.class);
return xs.fromXML(xml);
}
public static String xmlConvert(Object obj) {
String xml = xmlConvertNotTitle(obj);
xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + xml;
return xml;
}
public static String xmlConvertNotTitle(Object obj) {
XStream xs = initXStream(true);
xs.autodetectAnnotations(true);
xs.aliasSystemAttribute(null,"class");
String xml = xs.toXML(obj);
//XStream的老毛病转译会将_转成__,所以在这里转回来
xml = xml.replace("__","_");
return xml;
}
}

View File

@ -0,0 +1,45 @@
package com.ample.esb.web;
import com.amarsoft.are.ARE;
import com.amarsoft.are.jbo.*;
import jbo.app.tenwa.customer.*;
import jbo.oti.RC_SCORE_RESULT;
public class RCScoreResultCheck {
private String projectNo;
public String getProjectNo() {
return projectNo;
}
public void setProjectNo(String projectNo) {
this.projectNo = projectNo;
}
/**
* 评分结果查询
* @param tx
* @return
* @throws JBOException
*/
public String queryRCScoreResult(JBOTransaction tx) throws JBOException{//校验证件是否存在
ARE.getLog().info("RCScoreResultCheck#queryRCScoreResultprojectNo=" + projectNo);
BizObject rcScoreResultBiz = JBOFactory.createBizObjectQuery(RC_SCORE_RESULT.CLASS_NAME,"project_no=:project_no").setParameter("project_no", this.projectNo).getSingleResult(false);
if(null == rcScoreResultBiz){
return null;
}
// 反欺诈预警结果HSC
String fraud_alert_code = null == rcScoreResultBiz.getAttribute("fraud_alert_code") ? "" : rcScoreResultBiz.getAttribute("fraud_alert_code").toString();
// 反欺诈判定结果FKS
String fraud_taken_code = null == rcScoreResultBiz.getAttribute("fraud_taken_code") ? "" : rcScoreResultBiz.getAttribute("fraud_taken_code").toString();
// 评分结果 AA RR RD DD
String score_result_code = null == rcScoreResultBiz.getAttribute("score_result_code") ? "" : rcScoreResultBiz.getAttribute("score_result_code").toString();
String res = score_result_code+"@" +fraud_taken_code+"@" +fraud_alert_code;
ARE.getLog().info("RCScoreResultCheck#queryRCScoreResultres=" + res);
return score_result_code+"@" +fraud_taken_code+"@" +fraud_alert_code ;
}
}

View File

@ -23,12 +23,16 @@ public class SmsController {
public String sendMessage(JBOTransaction tx){
try{
// 实例化短信处理对象
SmsSendConn smsSendConn = new SmsSendConn(true);
//将发送过来的参数按照@切分出来
String[] smsID = ids.split("@");
if(smsID.length==0){
return "ERROR";
}
BizObjectManager bomLSNT = JBOFactory.getBizObjectManager(LB_SMS_NOTICE_TASKS.CLASS_NAME,tx);
BizObjectManager bomSS = JBOFactory.getBizObjectManager(SMS_SEND.CLASS_NAME,tx);
SmsSendManager.accountCheck();
// ʵÀý»¯ÌÐÅ´¦ÀíÔÏó
SmsSendConn smsSendConn = new SmsSendConn(true);
for(String id:smsID){
sendMessage(smsSendConn,id,bomLSNT,bomSS);
}
@ -44,12 +48,6 @@ public class SmsController {
int resultCode = -310099;
try {
Message message = createMessageByBizObject(boLSNT);
String smsObType = boLSNT.getAttribute("SEND_OBJ_TYPE").toString();
if(SmsObjType.URGE_COLLECTION.getType().equals(smsObType)){
SmsSendManager.setAccountInfo(SmsObjType.URGE_COLLECTION);
}else {
SmsSendManager.setAccountInfo(SmsObjType.NORMAL);
}
StringBuffer returnValue = new StringBuffer();
/*
发送短信
@ -96,9 +94,14 @@ public class SmsController {
String result = "查询失败";
// 实例化短信处理对象
SmsSendConn smsSendConn = new SmsSendConn(true);
SmsSendManager.setAccountInfo("02".equals(smsObjType)?SmsObjType.URGE_COLLECTION:SmsObjType.NORMAL);
// 查询余额接口
Remains remains = smsSendConn.getRemains(SmsPropertiesUtil.get("userid"));
String userId = SmsPropertiesUtil.get("userid");
if("02".equals(smsObjType)){
userId = SmsPropertiesUtil.get("urge_userid");
}
if(!SmsSendManager.accountExist(userId)){
SmsSendManager.setAccountInfo();
}
Remains remains = smsSendConn.getRemains(userId);
//remains不为空
if(remains==null)
@ -143,14 +146,18 @@ public class SmsController {
return "获取状态报告的线程启动成功!";
}
public Message createMessageByBizObject(BizObject bo) throws JBOException {
//调用短信接口
String phoneNo = bo.getAttribute("PHONE_NUMBER").getString();
String smsContent = bo.getAttribute("SMS_CONTENT").getString();
String smsId = bo.getAttribute("ID").getString();
String smsObjType = bo.getAttribute("SEND_OBJ_TYPE").getString();
String userId = SmsPropertiesUtil.get("userid");
if("02".equals(smsObjType)){
userId = SmsPropertiesUtil.get("urge_userid");
}
// 参数类
Message message = new Message();
// 设置用户账号 指定用户账号发送需要填写用户账号不指定用户账号发送无需填写用户账号
// message.setUserid(userid);
message.setUserid(userId);
// 设置手机号码 此处只能设置一个手机号码
message.setMobile(phoneNo);
// 设置内容
@ -166,7 +173,6 @@ public class SmsController {
return message;
}
public String getSmsObjType() {
return smsObjType;
}

View File

@ -46,11 +46,27 @@ public class SmsSendManager {
//globalParams.setMoFixedKey("0123456789abcdeffedcba9876543210");
// 设置用户账号信息
setAccountInfo(SmsObjType.NORMAL);
setAccountInfo();
}
public static void accountCheck(){
if(!(accountExist(SmsPropertiesUtil.get("userid"))&&accountExist(SmsPropertiesUtil.get("urge_userid")))) {
SmsSendManager.setAccountInfo();
}
}
public static boolean accountExist(String userId){
Account account = (Account) ConfigManager.accountMap.get(userId);
if (account == null) {
return false;
}else{
return true;
}
}
public static void setAccountInfo(){
setAccountInfo(SmsObjType.NORMAL);
setAccountInfo(SmsObjType.URGE_COLLECTION);
}
/**
* @description 设置用户账号信息
*/

View File

@ -135,4 +135,33 @@ public class RentNotinyDeleteAction {
}
//¸ù¾Ýǰ̨²ÎÊýÉú³ÉÎĵµ
public void deletequtationByType(JBOTransaction tx) throws Exception{
BizObjectManager bom=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME);
BizObject DOCRELATIVE=null;
if(objecttype!=null){
DOCRELATIVE=bom.createQuery(" PROJ_ID=:projectId and OBJECTTYPE=:objecttype").
setParameter("projectId",projectId).setParameter("objecttype",objecttype).getSingleResult(false);
System.out.println("deletequtationBytype---------------------------:---"+objecttype);
}
if(DOCRELATIVE!=null){
String DOCRELATIVEid=DOCRELATIVE.getAttribute("id").toString();
BizObjectManager bom1=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME);
String DOCLIBRARYid=bom1.createQuery("relative_id=:relative_id").setParameter("relative_id", DOCRELATIVEid).getSingleResult(false).getAttribute("id").toString();
BizObjectManager bom2=JBOFactory.getBizObjectManager(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME);
String DOCATTRIBUTEid=bom2.createQuery("library_id=:library_id").setParameter("library_id", DOCLIBRARYid).getSingleResult(false).getAttribute("id").toString();
Map<String,String> condtion= new HashMap<String,String>();
condtion.put("id", DOCRELATIVEid);
DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCRELATIVE.CLASS_NAME, condtion, tx);
condtion.clear();
condtion.put("id", DOCLIBRARYid);
DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCLIBRARY.CLASS_NAME, condtion, tx);
condtion.clear();
condtion.put("id", DOCATTRIBUTEid);
DataOperatorUtil.deleteJBOByCondtion(jbo.app.tenwa.doc.LB_DOCATTRIBUTE.CLASS_NAME, condtion, tx);
}
}
}

View File

@ -13,6 +13,11 @@ public interface LB_EQUIPMENT_CAR{
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.LB_EQUIPMENT_CAR";
/**
*
* 北财-车辆用途类型" STRING(32)<br>
*/
public static final String car_use_type = "car_use_type";
/**
* 标识 STRING(32)<br>
*/

View File

@ -13,6 +13,12 @@ public interface LB_EQUIPMENT_CAR_TEMP{
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.LB_EQUIPMENT_CAR_TEMP";
/**
*
* 北财-车辆用途类型" STRING(32)<br>
*/
public static final String car_use_type = "car_use_type";
/**
* 标识 STRING(32)<br>
*/

View File

@ -13,6 +13,120 @@ public interface CUSTOMER_FAMILY{
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.tenwa.customer.CUSTOMER_FAMILY";
// 20230817 北财风控中台对接-共同申请人出生日期
/**
* start_idexpiry 北财-证件有效期类型1短期2长期 STRING(32)<br>
*/
public static final String idexpiry_type = "idexpiry_type";
/**
* start_idexpiry 有效期开始时间 STRING(32)<br>
*/
public static final String start_idexpiry = "start_idexpiry";
/**
* 出生日期 STRING(32)<br>
*/
public static final String birthday = "birthday";
/**
* 子女数量 STRING(32)<br>
*/
public static final String childrens_number = "childrens_number";
/**
* 共同申请人婚姻状况 STRING(32)<br>
*/
public static final String marry_type = "marry_type";
/**
* 共同申请人居住状况 STRING(32)<br>
*/
public static final String residential_status = "residential_status";
/**
* 共同申请人单位地址关联id STRING(32)<br>
*/
public static final String work_address_code = "work_address_code";
/**
* 共同申请人单位地址关联id STRING(32)<br>
*/
public static final String work_address_id = "work_address_id";
/**
* 共同申请人居住地址编码 STRING(32)<br>
*/
public static final String live_address_code = "live_address_code";
/**
* 共同申请人居住地址关联id STRING(32)<br>
*/
public static final String live_address_id = "live_address_id";
/**
* 共同申请人户籍地址编码 STRING(32)<br>
*/
public static final String id_address_code = "id_address_code";
/**
* 共同申请人户籍地址关联id STRING(32)<br>
*/
public static final String id_address_id = "id_address_id";
// 20230817 北财风控中台对接-共同申请人新增字段
// 20230809 北财风控中台对接-共同申请人新增字段
/**
* 共同申请人身份证有效期 STRING(32)<br>
*/
public static final String idexpiry = "idexpiry";
/**
* 共同申请人民族 STRING(32)<br>
*/
public static final String nation = "nation";
/**
* 共同申请人最高学历 STRING(32)<br>
*/
public static final String education_level = "education_level";
/**
* 共同申请人单位地址 STRING(500)<br>
*/
public static final String work_address = "work_address";
/**
* 共同申请人户籍地址 STRING(500)<br>
*/
public static final String id_address = "id_address";
/**
* 共同申请人企业性质 STRING(32)<br>
*/
public static final String enterprise_nature = "enterprise_nature";
/**
* 共同申请人行业类型 STRING(32)<br>
*/
public static final String industry_type = "industry_type";
/**
* 共同申请人职业类型 STRING(32)<br>
*/
public static final String career_type = "career_type";
/**
* 共同申请人月支出 STRING(32)<br>
*/
public static final String monthly_expenses = "monthly_expenses";
// 20230809 北财风控中台对接-共同申请人新增字段
/**
* 标识 STRING(32)<br>
*/
@ -125,4 +239,10 @@ public interface CUSTOMER_FAMILY{
* 性别 STRING(32)<br>
*/
public static final String SEX = "SEX";
}

View File

@ -13,6 +13,119 @@ public interface CUSTOMER_FAMILY_HIS{
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.tenwa.customer.CUSTOMER_FAMILY_HIS";
// 20230817 北财风控中台对接-共同申请人出生日期
/**
* start_idexpiry 北财-证件有效期类型1短期2长期 STRING(32)<br>
*/
public static final String idexpiry_type = "idexpiry_type";
/**
* start_idexpiry 有效期开始时间 STRING(32)<br>
*/
public static final String start_idexpiry = "start_idexpiry";
/**
* 出生日期 STRING(32)<br>
*/
public static final String birthday = "birthday";
/**
* 子女数量 STRING(32)<br>
*/
public static final String childrens_number = "childrens_number";
/**
* 共同申请人婚姻状况 STRING(32)<br>
*/
public static final String marry_type = "marry_type";
/**
* 共同申请人居住状况 STRING(32)<br>
*/
public static final String residential_status = "residential_status";
/**
* 共同申请人单位地址关联id STRING(32)<br>
*/
public static final String work_address_code = "work_address_code";
/**
* 共同申请人单位地址关联id STRING(32)<br>
*/
public static final String work_address_id = "work_address_id";
/**
* 共同申请人居住地址编码 STRING(32)<br>
*/
public static final String live_address_code = "live_address_code";
/**
* 共同申请人居住地址关联id STRING(32)<br>
*/
public static final String live_address_id = "live_address_id";
/**
* 共同申请人户籍地址编码 STRING(32)<br>
*/
public static final String id_address_code = "id_address_code";
/**
* 共同申请人户籍地址关联id STRING(32)<br>
*/
public static final String id_address_id = "id_address_id";
// 20230817 北财风控中台对接-共同申请人新增字段
// 20230809 北财风控中台对接-共同申请人新增字段
/**
* 共同申请人身份证有效期 STRING(32)<br>
*/
public static final String idexpiry = "idexpiry";
/**
* 共同申请人民族 STRING(32)<br>
*/
public static final String nation = "nation";
/**
* 共同申请人最高学历 STRING(32)<br>
*/
public static final String education_level = "education_level";
/**
* 共同申请人单位地址 STRING(500)<br>
*/
public static final String work_address = "work_address";
/**
* 共同申请人户籍地址 STRING(500)<br>
*/
public static final String id_address = "id_address";
/**
* 共同申请人企业性质 STRING(32)<br>
*/
public static final String enterprise_nature = "enterprise_nature";
/**
* 共同申请人行业类型 STRING(32)<br>
*/
public static final String industry_type = "industry_type";
/**
* 共同申请人职业类型 STRING(32)<br>
*/
public static final String career_type = "career_type";
/**
* 共同申请人月支出 STRING(32)<br>
*/
public static final String monthly_expenses = "monthly_expenses";
// 20230809 北财风控中台对接-共同申请人新增字段
/**
* 标识 STRING(32)<br>
*/
@ -129,4 +242,5 @@ public interface CUSTOMER_FAMILY_HIS{
* 性别 STRING(32)<br>
*/
public static final String SEX = "SEX";
}

View File

@ -13,6 +13,118 @@ public interface CUSTOMER_FAMILY_TEMP{
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP";
// 20230817 北财风控中台对接-共同申请人出生日期
/**
* start_idexpiry 北财-证件有效期类型1短期2长期 STRING(32)<br>
*/
public static final String idexpiry_type = "idexpiry_type";
/**
* start_idexpiry 有效期开始时间 STRING(32)<br>
*/
public static final String start_idexpiry = "start_idexpiry";
/**
* 出生日期 STRING(32)<br>
*/
public static final String birthday = "birthday";
/**
* 子女数量 STRING(32)<br>
*/
public static final String childrens_number = "childrens_number";
/**
* 共同申请人婚姻状况 STRING(32)<br>
*/
public static final String marry_type = "marry_type";
/**
* 共同申请人居住状况 STRING(32)<br>
*/
public static final String residential_status = "residential_status";
/**
* 共同申请人单位地址关联id STRING(32)<br>
*/
public static final String work_address_code = "work_address_code";
/**
* 共同申请人单位地址关联id STRING(32)<br>
*/
public static final String work_address_id = "work_address_id";
/**
* 共同申请人居住地址编码 STRING(32)<br>
*/
public static final String live_address_code = "live_address_code";
/**
* 共同申请人居住地址关联id STRING(32)<br>
*/
public static final String live_address_id = "live_address_id";
/**
* 共同申请人户籍地址编码 STRING(32)<br>
*/
public static final String id_address_code = "id_address_code";
/**
* 共同申请人户籍地址关联id STRING(32)<br>
*/
public static final String id_address_id = "id_address_id";
// 20230817 北财风控中台对接-共同申请人新增字段
// 20230809 北财风控中台对接-共同申请人新增字段
/**
* 共同申请人身份证有效期 STRING(32)<br>
*/
public static final String idexpiry = "idexpiry";
/**
* 共同申请人民族 STRING(32)<br>
*/
public static final String nation = "nation";
/**
* 共同申请人最高学历 STRING(32)<br>
*/
public static final String education_level = "education_level";
/**
* 共同申请人单位地址 STRING(500)<br>
*/
public static final String work_address = "work_address";
/**
* 共同申请人户籍地址 STRING(500)<br>
*/
public static final String id_address = "id_address";
/**
* 共同申请人企业性质 STRING(32)<br>
*/
public static final String enterprise_nature = "enterprise_nature";
/**
* 共同申请人行业类型 STRING(32)<br>
*/
public static final String industry_type = "industry_type";
/**
* 共同申请人职业类型 STRING(32)<br>
*/
public static final String career_type = "career_type";
/**
* 共同申请人月支出 STRING(32)<br>
*/
public static final String monthly_expenses = "monthly_expenses";
// 20230809 北财风控中台对接-共同申请人新增字段
/**
* 标识 STRING(32)<br>
*/

View File

@ -13,6 +13,61 @@ public interface CUSTOMER_PERSON{
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.tenwa.customer.CUSTOMER_PERSON";
// 20230809 北财风控中台对接-承租人新增字段
/**
* start_idexpiry 北财-是否有本地户口 STRING(32)<br>
*/
public static final String shukou = "shukou";
/**
* start_idexpiry 北财-证件有效期类型1短期2长期 STRING(32)<br>
*/
public static final String idexpiry_type = "idexpiry_type";
/**
* start_idexpiry 有效期开始时间 STRING(32)<br>
*/
public static final String start_idexpiry = "start_idexpiry";
/**
* 承租人身份证有效期 STRING(32)<br>
*/
public static final String idexpiry = "idexpiry";
/**
* 承租人单位地址 STRING(32)<br>
*/
public static final String work_address_id = "work_address_id";
/**
* 承租人月支出 STRING(32)<br>
*/
public static final String monthly_expenses = "monthly_expenses";
/**
* 承租人过去曾运营车辆类型 STRING(32)<br>
*/
public static final String pre_operate_car_type = "pre_operate_car_type";
/**
* 承租人过去曾运营车辆车牌号 STRING(32)<br>
*/
public static final String pre_operate_car_no = "pre_operate_car_no";
/**
* 承租人从业时间 STRING(32)<br>
*/
public static final String pre_operate_years = "pre_operate_years";
// 20230809 北财风控中台对接-承租人新增字段
/**
* 民族 STRING(18)<br>
*/
public static final String NATIONALITY = "NATIONALITY";
/**
* 标识 STRING(40)<br>
*/
@ -65,10 +120,7 @@ public interface CUSTOMER_PERSON{
* 区县 STRING(18)<br>
*/
public static final String county = "county";
/**
* Ãñ×å STRING(18)<br>
*/
public static final String NATIONALITY = "NATIONALITY";
/**
* 户籍地址 STRING(200)<br>
*/
@ -381,4 +433,6 @@ public interface CUSTOMER_PERSON{
* 电子邮箱 STRING(32)<br>
*/
public static final String e_mail = "e_mail";
}

Some files were not shown because too many files have changed in this diff Show More