Merge branch 'release20211231' into ap007
This commit is contained in:
commit
769661ce0a
@ -7,7 +7,7 @@
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.genHTMLObjectWindow(id);
|
||||
dwTemp.genHTMLObjectWindow("1");
|
||||
String sButtons[][] = {
|
||||
{"true","","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}
|
||||
};
|
||||
|
||||
@ -0,0 +1,89 @@
|
||||
<%@page import="com.itextpdf.text.log.SysoCounter"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@include file="/Frame/resources/include/include_begin_info.jspf"%><%
|
||||
|
||||
String id = CurPage.getParameter("id");//ID
|
||||
String flowunid = CurPage.getParameter("flowunid");//流程编号
|
||||
String phaseNo = CurPage.getAttribute("phaseNo"); //流程节点
|
||||
String taskno=CurPage.getParameter("taskno"); //流程节点ID
|
||||
String userid=CurPage.getParameter("userid");//当前登录人
|
||||
String orgid=CurPage.getParameter("orgid");//当前登录部门
|
||||
|
||||
|
||||
String username = Sqlca.getString("select username from user_info ui where userid = '"+userid+"'");
|
||||
String orgname = Sqlca.getString("select orgname from org_info oi where orgid = '"+orgid+"'");
|
||||
|
||||
//判断修改人是否为提交人
|
||||
String comm = "select case when phaseno = '"+phaseNo+"' and inputuser = '"+userid+"' then 'false' else 'true' end as comm from communication where id = '"+id+"'";
|
||||
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Customer/Lessee/Comm/Communication/Communication_list.jsp";
|
||||
String sTempletNo = "COMMUNICATION_INFO";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.ReadOnly = "0";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
window.onload=function(){
|
||||
var today = new Date();
|
||||
setItemValue(0,0,"flowunid",'<%=flowunid%>');
|
||||
setItemValue(0,0,"phaseno",'<%=phaseNo%>');
|
||||
setItemValue(0,0,"taskno",'<%=taskno%>');
|
||||
setItemValue(0,0,"username",'<%=username%>');
|
||||
setItemValue(0,0,"orgname",'<%=orgname%>');
|
||||
setItemValue(0,0,"inputtime",getNowFormatDate());
|
||||
};
|
||||
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
|
||||
function saveRecord(){
|
||||
var comm = "<%=comm%>";
|
||||
if(comm == "false"){
|
||||
alert("只有录入人可以修改! ");
|
||||
goBack();
|
||||
}else {
|
||||
var remark = getItemValue(0,0,"remark");
|
||||
var time = getNowFormatDate();
|
||||
var param = "flowunid=<%=flowunid%>,phaseNo=<%=phaseNo%>,taskno=<%=taskno%>,userid=<%=userid%>,orgid=<%=orgid%>,remark="+remark+",time="+time+",id=<%=id%>";
|
||||
var Return = AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.Communicationsave","soleVerify",param);
|
||||
if(Return=="true"){
|
||||
alert("保存成功! ");
|
||||
goBack();
|
||||
}else{
|
||||
alert("保存失败,请联系管理员! ");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getNowFormatDate() {
|
||||
var date = new Date();
|
||||
var seperator1 = "/";
|
||||
var seperator2 = ":";
|
||||
var month = date.getMonth() + 1;
|
||||
var strDate = date.getDate();
|
||||
if (month >= 1 && month <= 9) {
|
||||
month = "0" + month;
|
||||
}
|
||||
if (strDate >= 0 && strDate <= 9) {
|
||||
strDate = "0" + strDate;
|
||||
}
|
||||
var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
|
||||
+ " " + date.getHours() + seperator2 + date.getMinutes()
|
||||
+ seperator2 + date.getSeconds();
|
||||
|
||||
|
||||
return currentdate;
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,78 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||||
|
||||
//String PG_TITLE = "微信对公账号维护"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
|
||||
String flowunid = CurPage.getParameter("ObjectNo");//流程编号
|
||||
String phaseNo = CurPage.getAttribute("PhaseNo"); //流程节点
|
||||
String taskno=CurPage.getParameter("TaskNo"); //流程节点ID
|
||||
String userid = CurPage.getUserId();//当前登录人
|
||||
String orgid = CurPage.getUser().getOrgID();//当前登录部门
|
||||
|
||||
String communicationid = Sqlca.getString("select id from communication where flowunid = '"+flowunid+"' and phaseno = '"+phaseNo+"'");
|
||||
if(communicationid==null){
|
||||
communicationid = "null";
|
||||
}
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("COMMUNICATION_LIST");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
//dwTemp.MultiSelect = true; //多选
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(20);
|
||||
dwTemp.genHTMLObjectWindow(flowunid);
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit",""},
|
||||
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
var Id;
|
||||
var contractNoArray;
|
||||
var batchNoArray;
|
||||
|
||||
|
||||
function newRecord(){
|
||||
var communicationid = "<%=communicationid%>";
|
||||
if(communicationid=="null"){
|
||||
var param = "flowunid=<%=flowunid%>&phaseNo=<%=phaseNo%>&taskno=<%=taskno%>&userid=<%=userid%>&orgid=<%=orgid%>";
|
||||
var sUrl = "/Tenwa/Customer/Lessee/Comm/Communication/Communication_info.jsp";
|
||||
AsDialog.PopView(sUrl,param,"resizable=yes;dialogWidth=1000px;dialogHeight=400px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();},"新增信息");
|
||||
}else {
|
||||
alert("此流程节点已有经销商留言,无法添加! ");
|
||||
}
|
||||
}
|
||||
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Customer/Lessee/Comm/Communication/Communication_info.jsp";
|
||||
var id = getItemValue(0,getRow(0),'ID');
|
||||
var param = "flowunid=<%=flowunid%>&phaseNo=<%=phaseNo%>&taskno=<%=taskno%>&userid=<%=userid%>&orgid=<%=orgid%>&id="+id;
|
||||
if(typeof(id)=="undefined" || id.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,param,"resizable=yes;dialogWidth=1000px;dialogHeight=400px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
|
||||
}
|
||||
|
||||
|
||||
function deleteRecord(){
|
||||
var id = getItemValue(0,getRow(0),'id');
|
||||
if(typeof(id)=="undefined" || id.length==0 ){
|
||||
alert("请选择一条信息!");
|
||||
return ;
|
||||
}
|
||||
if(confirm('确实要删除吗?')){
|
||||
var param = "flowunid=<%=flowunid%>,phaseNo=<%=phaseNo%>,taskno=<%=taskno%>,userid=<%=userid%>,orgid=<%=orgid%>,id="+id+",type=delete";
|
||||
var Return = AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.Communicationsave","soleVerify",param);
|
||||
if(Return=="true"){
|
||||
reloadSelf();
|
||||
}else{
|
||||
alert("删除失败,请联系管理员! ");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,40 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/IncludeBegin.jsp"%>
|
||||
<%
|
||||
String flowunid = CurPage.getParameter("ObjectNo");
|
||||
String plannumber=CurPage.getParameter("plannumber");
|
||||
String planCName=CurPage.getParameter("planCName");
|
||||
String calType=CurPage.getParameter("calType");
|
||||
String IsHistory=CurPage.getParameter("IsHistory");
|
||||
String RightType=CurPage.getParameter("RightType");
|
||||
String productId=CurPage.getParameter("ProductId");
|
||||
String projectId=CurPage.getParameter("ProjectId");
|
||||
String khcertid = Sqlca.getString("select ci.certid from lb_union_lessee_temp lul left join customer_info ci on ci.customerid = lul.CUSTOMER_ID where lul.IS_MAIN = 'Y' and lul.flowunid='"+flowunid+"'");
|
||||
String gtcertid = Sqlca.getString("select ci.certid from lb_union_lessee_temp lul left join customer_info ci on ci.customerid = lul.CUSTOMER_ID where lul.IS_MAIN = 'N' and lul.flowunid='"+flowunid+"'");
|
||||
String dbcertid = Sqlca.getString("select CERTID from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID asc limit 1");
|
||||
String dbcertid2 = Sqlca.getString("select CERTID from lb_guarantee_unit_temp where flowunid='"+flowunid+"' order by CERTID desc limit 1");
|
||||
//客户传参
|
||||
String params="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+khcertid+"&type=client";
|
||||
//共同承租人传参
|
||||
String params2="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+gtcertid+"&type=jointly";
|
||||
//担保人1传参
|
||||
String params3="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid+"&type=guarantee";
|
||||
//担保人2参数
|
||||
String params4="flowunid="+flowunid+"&plannumber="+plannumber+"&planCName="+planCName+"&calType="+calType+"&IsHistory="+IsHistory+"&RightType="+RightType+"&ProductId="+productId+"&projectId="+projectId+"&certId="+dbcertid2+"&type=guarantee";
|
||||
//参数:0.是否显示, 1.标题,2.URL,3,参数串, 4. Strip高度(默认600px),5. 是否有关闭按钮(默认无) 6. 是否缓存(默认是)
|
||||
// String userid = CurUser.getUserID();
|
||||
String orgid = CurUser.getOrgID();
|
||||
String sTabStrip[][] = {
|
||||
{"true", "客户", "/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp",params, "", "", "false"},
|
||||
{"true", "共同承租人", "/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp",params2, "", "", "false"},
|
||||
{"true", "担保人", "/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp",params3, "", "", "false"},
|
||||
{"true", "担保人2", "/Tenwa/Customer/Lessee/Comm/CustomerHistory/CustomerHistory_Info_temp.jsp",params4, "", "", "false"},
|
||||
};
|
||||
%>
|
||||
<%@ include file="/Resources/CodeParts/Tab01.jsp"%>
|
||||
<script type="text/javascript">
|
||||
window.onload=function(){
|
||||
AsControl.RunJavaMethodTrans("com.tenwa.voucher.CreateVoucherProcess.InsertCustomerHistoryInfo","InsertCustomerHistoryInfoTemp","flowunid=<%=flowunid%>");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/IncludeEnd.jsp"%>
|
||||
@ -0,0 +1,47 @@
|
||||
<%@page import="com.itextpdf.text.log.SysoCounter"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@include file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%
|
||||
/*
|
||||
Author: undefined 2023-09-04
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
|
||||
String sTempletNo = "CustomerHistoryInfoTemp";//--模板号--
|
||||
String flowunId=CurPage.getParameter("flowunid");//流程编号
|
||||
String certId=CurPage.getParameter("certId");//客户证件号
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
//dwTemp.genHTMLObjectWindow("1");
|
||||
dwTemp.genHTMLObjectWindow(flowunId+","+certId);
|
||||
|
||||
String compClientID = request.getParameter("CompClientID");
|
||||
|
||||
dwTemp.replaceColumn("loaned", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"400px\" frameborder=\"0\" src=\""+sWebRootPath+ "/Tenwa/Customer/Lessee/Comm/CustomerHistory/LoanedInfo.jsp?CompClientID=" +compClientID+"&certId="+certId+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
dwTemp.replaceColumn("outstand", "<iframe type='iframe' id='frame_list' name=\"frame_list\" width=\"100%\" height=\"400px\" frameborder=\"0\" src=\""+sWebRootPath+ "/Tenwa/Customer/Lessee/Comm/CustomerHistory/OutstandInfo.jsp?CompClientID=" +compClientID+"&certId="+certId+"\"></iframe>", CurPage.getObjectWindowOutput());
|
||||
|
||||
|
||||
String sButtons[][] = {
|
||||
// {"true","","Button","保存","保存所有修改","saveRecord()","","","","btn_icon_save"}
|
||||
};
|
||||
|
||||
|
||||
%>
|
||||
<%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
<style type="text/css">
|
||||
#div_1270{
|
||||
width: 72px;
|
||||
}
|
||||
.info_td_left{
|
||||
width: 92px;
|
||||
}
|
||||
.info_td_right{
|
||||
display:flex;
|
||||
justify-content:space-between;
|
||||
}
|
||||
</style>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,35 @@
|
||||
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
|
||||
<%
|
||||
|
||||
String certId = CurPage.getParameter("certId");
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("LoanedList");
|
||||
doTemp.appendJboWhere(" and O.CONTRACT_STATUS >= 31 and O.CONTRACT_STATUS <> '104' ");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1";//--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1";//只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(certId);
|
||||
String sButtons[][] = {
|
||||
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function afterSearch(){
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var userId=getItemValue(0,i,"USERID");
|
||||
if(userId=="system"){
|
||||
getObj(0,i,"ENDTIME").innerHTML=getObj(0,i,"BEGINTIME").textContent;
|
||||
}
|
||||
getObj(0,i,"ACTION").innerHTML= '<a href=# onclick="javascript:viewHisTab()">申请详情</a> ';
|
||||
|
||||
}
|
||||
setColumnWidth(0,"ACTION",100);
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,35 @@
|
||||
<%@page import="com.tenwa.comm.dataRightmanager.DataRightManager"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
<%@include file="/Tenwa/Core/FlowManager/BaseFunction/BaseFlowListFunction.jspf" %>
|
||||
<%
|
||||
|
||||
String certId = CurPage.getParameter("certId");
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("LoanedList");
|
||||
doTemp.appendJboWhere(" and O.CONTRACT_STATUS < 31 ");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1";//--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1";//只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(certId);
|
||||
String sButtons[][] = {
|
||||
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function afterSearch(){
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
var userId=getItemValue(0,i,"USERID");
|
||||
if(userId=="system"){
|
||||
getObj(0,i,"ENDTIME").innerHTML=getObj(0,i,"BEGINTIME").textContent;
|
||||
}
|
||||
getObj(0,i,"ACTION").innerHTML= '<a href=# onclick="javascript:viewHisTab()">申请详情</a> ';
|
||||
|
||||
}
|
||||
setColumnWidth(0,"ACTION",100);
|
||||
}
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -17,7 +17,7 @@
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "0"; //只读模式
|
||||
dwTemp.MultiSelect = true;
|
||||
dwTemp.setPageSize(20);
|
||||
dwTemp.setPageSize(100);
|
||||
dwTemp.genHTMLObjectWindow(paymentNumber);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
@ -26,6 +26,7 @@
|
||||
{"ReadOnly".equals(rightType)?"false":"true","","Button","计算罚息减免额","计算罚息减免额","createPenaltyAdjust()","","","","btn_icon_add",""}
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<div id="penaltyDetail" class="penaltyDetail" style="position: relative;left: 30px;bottom: 60px;height: 150px;font-size: 16px;"></div>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
//var myDate=new Date().format("yyyy/MM/dd");
|
||||
@ -93,4 +94,3 @@
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
<div id="penaltyDetail" class="penaltyDetail" style="position: relative;left: 30px;bottom: 60px;height: 150px;font-size: 16px;"></div>
|
||||
|
||||
@ -60,6 +60,14 @@
|
||||
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))){
|
||||
doTemp.setVisible("VETO",true);
|
||||
}else {
|
||||
doTemp.setVisible("VETO",false);
|
||||
}
|
||||
|
||||
if(("业务申请流程".equals(flowName)||"业务变更流程".equals(flowName))&&("0030".equals(phaseNo)||"0040".equals(phaseNo)||"0050".equals(phaseNo)||"0060".equals(phaseNo)||"0070".equals(phaseNo))){
|
||||
dwTemp.getDataObject().setVisible("subjectname", true);
|
||||
}else {
|
||||
@ -677,6 +685,15 @@
|
||||
$('#SECONDOPINION').append(sReturn);
|
||||
}
|
||||
});
|
||||
//拒单理由
|
||||
var vo = getItemValue(0,0,"secondchoice");
|
||||
if(vo=="0010"||vo=="0040"){
|
||||
showItem(0,"VETO");
|
||||
setItemRequired(0,"VETO",true);
|
||||
}else {
|
||||
hideItem(0,"VETO");
|
||||
setItemRequired(0,"VETO",false);
|
||||
}
|
||||
}
|
||||
|
||||
function changeThirdChoice(){//根据信审意见,遍历相应的下拉选项
|
||||
@ -734,6 +751,8 @@
|
||||
$('#THIRDOPINION').append(sReturn);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function checkOpinion(scoreDefaultResultChoice){
|
||||
@ -764,7 +783,7 @@
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function save(){
|
||||
// 评分结果 AA RR RD DD
|
||||
var score_result_code = "<%=score_result_code%>";
|
||||
|
||||
@ -548,11 +548,12 @@
|
||||
return;
|
||||
}
|
||||
}
|
||||
RepeatReault = frame_list.checkRepeat(emergencyTel);//传参校验基本信息手机号和配偶是否重复
|
||||
if(RepeatReault=="false"){
|
||||
alert("紧急联系人1和配偶手机号有重复!");
|
||||
return;
|
||||
}
|
||||
//2023/09/11 新增逻辑自然人承租人有配偶,配偶必须为紧急联系人
|
||||
// RepeatReault = frame_list.checkRepeat(emergencyTel);//传参校验基本信息手机号和配偶是否重复
|
||||
// if(RepeatReault=="false"){
|
||||
// alert("紧急联系人1和配偶手机号有重复!");
|
||||
// return;
|
||||
// }
|
||||
}
|
||||
//检验紧急联系人2手机号重复
|
||||
if(typeof(remark)!=undefined && remark != ''){
|
||||
@ -570,11 +571,13 @@
|
||||
return;
|
||||
}
|
||||
}
|
||||
RepeatReault = frame_list.checkRepeat(remark);//传参校验基本信息手机号和配偶是否重复
|
||||
if(RepeatReault=="false"){
|
||||
alert("紧急联系人2和配偶手机号有重复!");
|
||||
return;
|
||||
}
|
||||
// 123213
|
||||
// 2023/09/11 新增逻辑自然人承租人有配偶,配偶必须为紧急联系人
|
||||
// RepeatReault = frame_list.checkRepeat(remark);//传参校验基本信息手机号和配偶是否重复
|
||||
// if(RepeatReault=="false"){
|
||||
// alert("紧急联系人2和配偶手机号有重复!");
|
||||
// return;
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -139,14 +139,17 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
function checkNameAndCertId(){//校验姓名和证件号
|
||||
function checkNameAndCertId(){//校验自然人承租人年龄
|
||||
//var customerName = getItemValue(0,getRow(),"CustomerName");
|
||||
var certId = getItemValue(0,getRow(),"certid");
|
||||
var customerType = getItemValue(0,getRow(),"Customer_type");
|
||||
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
||||
var sParams = "certId="+certId+",customerType="+customerType;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkNameAndCertId",sParams);
|
||||
return sReturnInfo;
|
||||
if(customerType=="03"){
|
||||
//var sParams = "CustomerName="+customerName+",certId="+certId+",customerType="+customerType;
|
||||
var sParams = "certId="+certId;
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkAndCertId",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*~[Describe=保存并初始化数据;InputParam=无;OutPutParam=无;]~*/
|
||||
@ -265,11 +268,11 @@
|
||||
/*~[Describe=确认新增申请;InputParam=无;OutPutParam=无;]~*/
|
||||
function doCreation()
|
||||
{
|
||||
// var result = checkNameAndCertId();
|
||||
// if(result=="2"){
|
||||
// alert("证件号已存在!请重新输入!");
|
||||
// return;
|
||||
// }
|
||||
var result = checkNameAndCertId();
|
||||
if(result=="false"){
|
||||
alert("年龄不满足!");
|
||||
return;
|
||||
}
|
||||
if(!checkCertInfo(true)) return ;
|
||||
if(!iV_all(0)) return ;
|
||||
saveRecord();
|
||||
|
||||
@ -345,6 +345,21 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_CONTACT_US" label="" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="主键" type="STRING" length="32"/>
|
||||
<attribute name="name" label="公司名称" type="STRING" length="500"/>
|
||||
<attribute name="e_mail" label="公司邮箱" type="STRING" length="500"/>
|
||||
<attribute name="tel" label="联系电话" type="STRING" length="500"/>
|
||||
<attribute name="work_time" label="工作时间" type="STRING" length="500"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_contact_us" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LM_PRODUCT_DISTRIBUTOR_GROUP" label="" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="主键" type="STRING" length="40"/>
|
||||
@ -912,6 +927,105 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
|
||||
<class name="CUSTOMER_HISTORY_INFO_TEMP" label="客户历史信息临时" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="唯一标识" type="STRING" length="32"/>
|
||||
<attribute name="customerid" label="客户编号" type="STRING" length="40"/>
|
||||
<attribute name="customername" label="客户名称" type="STRING" length="200"/>
|
||||
<attribute name="certtype" label="证件类型" type="STRING" length="20"/>
|
||||
<attribute name="certid" label="证件号" type="STRING" length="20"/>
|
||||
<attribute name="customertype" label="客户类别" type="STRING" length="20"/>
|
||||
<attribute name="flowunid" label="流程编号" type="STRING" length="32"/>
|
||||
<attribute name="project_id" label="项目编号" type="STRING" length="32"/>
|
||||
<attribute name="clientbuynumber" label="客户购买次数" type="STRING" length="10"/>
|
||||
<attribute name="clientfinancingamount" label="客户融资金额" type="STRING" length="32"/>
|
||||
<attribute name="clientclosedaccount" label="客户已结清单数" type="STRING" length="10"/>
|
||||
<attribute name="clientunsettled" label="客户未结清单数" type="STRING" length="10"/>
|
||||
<attribute name="clientvehiclepopulation" label="客户车辆总数" type="STRING" length="10"/>
|
||||
<attribute name="clientclosedvehicle" label="客户结清车辆数" type="STRING" length="10"/>
|
||||
<attribute name="clientoutstandingvehicle" label="客户未结清车辆数" type="STRING" length="10"/>
|
||||
<attribute name="clientloanbalance" label="客户贷款余额" type="STRING" length="10"/>
|
||||
<attribute name="clientoverdueamount" label="客户逾期金额" type="STRING" length="10"/>
|
||||
<attribute name="jointlybuynumber" label="共同购买次数" type="STRING" length="10"/>
|
||||
<attribute name="jointlyfinancingamount" label="共同融资金额" type="STRING" length="32"/>
|
||||
<attribute name="jointlyclosedaccount" label="共同已结清单数" type="STRING" length="10"/>
|
||||
<attribute name="jointlyunsettled" label="共同未结清单数" type="STRING" length="10"/>
|
||||
<attribute name="jointlyveh" label="共同车辆总数" type="STRING" length="10"/>
|
||||
<attribute name="jointlyclosedvehicle" label="共同结清车辆数" type="STRING" length="10"/>
|
||||
<attribute name="jointlyout" label="共同未结清车辆数" type="STRING" length="10"/>
|
||||
<attribute name="jointlyloanbalance" label="共同贷款余额" type="STRING" length="10"/>
|
||||
<attribute name="jointlyoverdueamount" label="共同逾期金额" type="STRING" length="10"/>
|
||||
<attribute name="guaranteebuynumber" label="担保单数" type="STRING" length="10"/>
|
||||
<attribute name="guaranteefin" label="担保金额" type="STRING" length="32"/>
|
||||
<attribute name="guaranteeclosedaccount" label="担保已结清单数" type="STRING" length="10"/>
|
||||
<attribute name="guaranteeunsettled" label="担保未结清单数" type="STRING" length="10"/>
|
||||
<attribute name="guaranteeveh" label="担保车辆总数" type="STRING" length="10"/>
|
||||
<attribute name="guaranteeclosedvehicle" label="担保结清车辆数" type="STRING" length="10"/>
|
||||
<attribute name="guaranteeout" label="担保未结清车辆数" type="STRING" length="10"/>
|
||||
<attribute name="guaranteeloanbalance" label="担保贷款余额" type="STRING" length="10"/>
|
||||
<attribute name="guaranteeoverdueamount" label="担保逾期金额" type="STRING" length="10"/>
|
||||
<attribute name="remark" label="备注" type="STRING" length="250"/>
|
||||
<attribute name="customer_num" label="客户编码" type="STRING" length="32"/>
|
||||
<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="exposure" label="敞口" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="customer_history_info_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VI_CUSTOMERHISTORY" label="放款订单信息" keyAttributes="">
|
||||
<attributes>
|
||||
<attribute name="CUSTOMER_ID" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="CERTID" label="证件号" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_NO" label="合同编号" type="STRING" length="32"/>
|
||||
<attribute name="CUSTOMER_NAME" label="客户名称" type="STRING" length="200"/>
|
||||
<attribute name="CHARACTERS" label="客户角色" type="STRING" length="200"/>
|
||||
<attribute name="DISTRIBUTOR_NAME" label="经销商名称" type="STRING" length="200"/>
|
||||
<attribute name="CAR_NUM" label="车辆台数" type="STRING" length="32"/>
|
||||
<attribute name="FIRST_PAYMENT_RATIO" label="首付款比例" type="STRING" length="32"/>
|
||||
<attribute name="CLEAN_LEASE_MONEY" label="融资额" type="STRING" length="32"/>
|
||||
<attribute name="LEASE_TERM" label="合同期次" type="STRING" length="32"/>
|
||||
<attribute name="STATUS_NAME" label="合同状态名称" type="STRING" length="32"/>
|
||||
<attribute name="CONTRACT_STATUS" label="合同状态" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="vi_customerhistory" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="COMMUNICATION" label="经销商留言信息" keyAttributes="">
|
||||
<attributes>
|
||||
<attribute name="id" label="合同ID" type="STRING" length="32"/>
|
||||
<attribute name="taskno" label="流程节点ID" type="STRING" length="32"/>
|
||||
<attribute name="flowunid" label="流程编号" type="STRING" length="32"/>
|
||||
<attribute name="phaseno" label="流程节点" type="STRING" length="200"/>
|
||||
<attribute name="inputuser" label="录入人" type="STRING" length="200"/>
|
||||
<attribute name="inputorg" label="录入部门" type="STRING" length="200"/>
|
||||
<attribute name="inputtime" label="录入时间" type="STRING" length="32"/>
|
||||
<attribute name="updateuser" label="修改人" type="STRING" length="32"/>
|
||||
<attribute name="updatetime" label="修改时间" type="STRING" length="32"/>
|
||||
<attribute name="remark" label="备注信息" type="STRING" length="1000"/>
|
||||
<attribute name="username" label="录入人名称" type="STRING" length="200"/>
|
||||
<attribute name="orgname" label="录入部门名称" type="STRING" length="200"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="communication" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
<package name="jbo.com.tenwa.entity.comm.taxinfo" >
|
||||
<class name="TAX_INFO" label="税率信息维护" keyAttributes="ID">
|
||||
|
||||
@ -2659,22 +2659,23 @@
|
||||
<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"/>
|
||||
<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>
|
||||
@ -2720,22 +2721,23 @@
|
||||
<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"/>
|
||||
<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>
|
||||
|
||||
@ -144,6 +144,7 @@
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
<attribute name="VETO" label="拒单理由" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -294,6 +295,7 @@
|
||||
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
|
||||
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
|
||||
<attribute name="CORPUS_SOURCE" label="资方名称" type="STRING" length="10"/>
|
||||
<attribute name="VETO" label="拒单理由" type="STRING" length="10"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -1,13 +1,17 @@
|
||||
#客户号
|
||||
cifMaster=60000002922
|
||||
cifMaster=60000078430
|
||||
#操作员
|
||||
entUserId=100001
|
||||
#操作密码
|
||||
password=1q2w3e4r
|
||||
#前置机地址
|
||||
cgbUrl=http://114.242.219.170:63312/CGBClient/BankAction
|
||||
#cgbUrl=http://114.242.219.170:63312/CGBClient/BankAction
|
||||
cgbUrl=http://127.0.0.1:9528/CGBClient/BankAction
|
||||
#cgbUrl=http://192.168.7.11:9528/CGBClient/BankAction
|
||||
|
||||
#本方账号
|
||||
ownAccBank=广发银行
|
||||
ownAccName=安鹏融资租赁(天津)有限公司
|
||||
ownAccNumber=9550880217136700372
|
||||
#广发银行
|
||||
ownAccBank=\u5e7f\u53d1\u94f6\u884c
|
||||
#安鹏融资租赁(天津)有限公司
|
||||
ownAccName=\u9020\u6570\u5ba1\u6e29\u8ba9\u6709\u9650\u516c\u53f8
|
||||
ownAccNumber=9550885271830400172
|
||||
|
||||
@ -15,6 +15,7 @@ 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.apache.commons.lang3.StringUtils;
|
||||
import org.dom4j.DocumentException;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
@ -79,11 +80,24 @@ public class WriteScoreResultThread extends Thread{
|
||||
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#saveUpdateScoreResult:tranNo=" + tranNo);
|
||||
// : 2023-8-24 解析结果
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式
|
||||
String date = sdf.format(new Date()); //将系统时间转换成上方指定类型
|
||||
String flowNo = queryProjectTemp(projectNo);
|
||||
if(StringUtils.isEmpty(flowNo)){
|
||||
ARE.getLog().error("WriteScoreResultThread#saveUpdateScoreResult ---【查询流程编号为空,非本系统数据】-----------》:projectNo=" + projectNo + "---》:tranNo=" + tranNo);
|
||||
// 更新回调接口执行状态
|
||||
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", "2");
|
||||
rcCallbackLogBizObject.setAttributeValue("handle_value", "非本系统数据");
|
||||
rcCallbackLogBizObject.setAttributeValue("update_time", date);
|
||||
rcCallbackLog.saveObject(rcCallbackLogBizObject);
|
||||
return;
|
||||
}
|
||||
ARE.getLog().info("WriteScoreResultThread#saveUpdateScoreResult:tranNo=" + tranNo);
|
||||
// : 2023-8-24 解析结果
|
||||
|
||||
String resultId = UUIDUtil.getUUID();
|
||||
JSONObject blazeResultJson = resJson.getJSONObject("BLAZERESULT");//评分结果项
|
||||
String resultCode = blazeResultJson.getString("RESULT_CODE");// 评分结果状态 1000为成功,其他失败
|
||||
|
||||
@ -57,59 +57,43 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
||||
Map<String, String> mapXml = new HashMap<String, String>();
|
||||
try {
|
||||
BizObjectManager bomLCP = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_CARD_PAYMENT");
|
||||
int start = 0;
|
||||
int maxCount = 100;
|
||||
List<BizObject> boLOEDs=null;
|
||||
int size = bomLCP.createQuery("O.STATUS='正在处理' ").getTotalCount();
|
||||
if (size == 0) {
|
||||
logger.info("没有需要查询的通联支付信息");
|
||||
List<BizObject> boLOEDs = bomLCP.createQuery("O.STATUS='正在处理'").getResultList(true);
|
||||
if (boLOEDs == null || boLOEDs.size() == 0) {
|
||||
logger.error("没有需要查询的通联支付信息");
|
||||
return;
|
||||
}
|
||||
while (size > start) {
|
||||
logger.info("开始第" + start + "至" + (start + maxCount) + "次循环");
|
||||
boLOEDs = bomLCP.createQuery("O.STATUS='正在处理' ").setFirstResult(start).setMaxResults(maxCount).getResultList(true);
|
||||
for (BizObject boLCP : boLOEDs) {
|
||||
try {
|
||||
BizObject object = JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_PROJECT_INFO").createQuery("O.id=:id").setParameter("id", boLCP.getAttribute("PROJECT_ID").toString()).getSingleResult(false);
|
||||
allinpay = new AllinpayProperties(object.getAttribute("subjectid").toString());
|
||||
String quertSn = boLCP.getAttribute("REQ_SN").toString();
|
||||
String num = boLCP.getAttribute("NUM").toString();
|
||||
localFilePath = boLCP.getAttribute("FULLPATH").toString();
|
||||
String time = DateAssistant.getTodayNow();
|
||||
sqlMap.put("QUERYTIME", time);
|
||||
sqlMap.put("NUM", Integer.parseInt(num) + "");
|
||||
mapXml.put("quertSn", quertSn);
|
||||
sqlMap = sendMessageByProxy(mapXml, sqlMap);
|
||||
|
||||
if (boLOEDs == null || boLOEDs.size() == 0) {
|
||||
logger.error("没有需要查询的通联支付信息>>>>>>>>>>:");
|
||||
break;
|
||||
}
|
||||
for (BizObject boLCP : boLOEDs) {
|
||||
try {
|
||||
|
||||
BizObject object = JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.LB_PROJECT_INFO").createQuery("O.id=:id").setParameter("id", boLCP.getAttribute("PROJECT_ID").toString()).getSingleResult(false);
|
||||
|
||||
allinpay = new AllinpayProperties(object.getAttribute("subjectid").toString());
|
||||
String quertSn= boLCP.getAttribute("REQ_SN").toString();
|
||||
String num = boLCP.getAttribute("NUM").toString();
|
||||
localFilePath = boLCP.getAttribute("FULLPATH").toString();
|
||||
String time = DateAssistant.getTodayNow();
|
||||
sqlMap.put("QUERYTIME", time);
|
||||
sqlMap.put("NUM", Integer.parseInt(num) + "");
|
||||
mapXml.put("quertSn", quertSn);
|
||||
sqlMap = sendMessageByProxy(mapXml, sqlMap);
|
||||
|
||||
if (localFilePath == null) {
|
||||
LocalDateTime ldt = LocalDateTime.now();
|
||||
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
localFilePath = ConfigConstant.filePath.replaceAll("\\{uuid\\}",UUIDUtil.getUUID()).replaceAll("\\{YYYYMMDD\\}", dtf.format(ldt));
|
||||
sqlMap.put("FULLPATH", localFilePath);
|
||||
}
|
||||
saveRequestTxt(sqlMap);
|
||||
updateMessage(bomLCP, boLCP, sqlMap);
|
||||
localFilePath = null;
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>通联支付结果查询失败>>>>>>>>id:" +boLCP.getAttribute("id").toString());
|
||||
e.printStackTrace();
|
||||
}finally {
|
||||
sqlMap.clear();
|
||||
mapXml.clear();
|
||||
if (localFilePath == null) {
|
||||
LocalDateTime ldt = LocalDateTime.now();
|
||||
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||
localFilePath = ConfigConstant.filePath.replaceAll("\\{uuid\\}", UUIDUtil.getUUID()).replaceAll("\\{YYYYMMDD\\}", dtf.format(ldt));
|
||||
sqlMap.put("FULLPATH", localFilePath);
|
||||
}
|
||||
saveRequestTxt(sqlMap);//记录日志文件 文件路径 LC_CARD_PAYMENT:FULLPATH
|
||||
updateMessage(bomLCP, boLCP, sqlMap);
|
||||
localFilePath = null;
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>通联支付结果查询失败>>>>>>>>id:" + boLCP.getAttribute("id").toString());
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
sqlMap.clear();
|
||||
mapXml.clear();
|
||||
}
|
||||
boLOEDs=null;
|
||||
start +=100;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(">>>>>>>>>>>通联支付结果查询失败>>>>>>>>:");
|
||||
logger.error(">>>>>>>>>>>通联支付结果查询失败>>>>>>>>");
|
||||
e.printStackTrace();
|
||||
}
|
||||
logger.info(">>>>>>>>>>>结束通联支付结果查询>>>>>>>>");
|
||||
@ -289,6 +273,7 @@ public class AllinpayPaymentQueryRun implements Runnable{
|
||||
String collectMsg = boLRP.getAttribute("batch_status")==null?"":boLRP.getAttribute("collect_msg").toString();
|
||||
|
||||
if("处理成功".equals(status)&&boLCP.getAttribute("FINISH_AMOUNT")!=null&&!"".equals(boLCP.getAttribute("FINISH_AMOUNT").toString())){
|
||||
//插入实收记录
|
||||
insertMessage(boLRP,finishAmount,tx);
|
||||
//租金计划表状态处理
|
||||
BizObjectManager bomIncome = JBOFactory.getBizObjectManager(LC_RENT_INCOME.CLASS_NAME,tx);
|
||||
|
||||
@ -0,0 +1,122 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
|
||||
public class Communicationsave {
|
||||
|
||||
private String type;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
private String flowunid;
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
private String phaseNo;
|
||||
public String getPhaseNo() {
|
||||
return phaseNo;
|
||||
}
|
||||
public void setPhaseNo(String phaseNo) {
|
||||
this.phaseNo = phaseNo;
|
||||
}
|
||||
private String taskno;
|
||||
public String getTaskno() {
|
||||
return taskno;
|
||||
}
|
||||
public void setTaskno(String taskno) {
|
||||
this.taskno = taskno;
|
||||
}
|
||||
|
||||
private String userid;
|
||||
public String getUserid() {
|
||||
return userid;
|
||||
}
|
||||
public void setUserid(String userid) {
|
||||
this.userid = userid;
|
||||
}
|
||||
|
||||
private String orgid;
|
||||
public String getOrgid() {
|
||||
return orgid;
|
||||
}
|
||||
public void setOrgid(String orgid) {
|
||||
this.orgid = orgid;
|
||||
}
|
||||
private String remark;
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
private String time;
|
||||
public String getTime() {
|
||||
return time;
|
||||
}
|
||||
public void setTime(String time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
|
||||
public String soleVerify(JBOTransaction tx) throws Exception {
|
||||
tx= JBOFactory.createJBOTransaction();
|
||||
String returns="true";
|
||||
String id = this.id;
|
||||
String type = this.type;
|
||||
String taskno = this.taskno;
|
||||
String flowunid = this.flowunid;
|
||||
String phaseNo = this.phaseNo;
|
||||
String userid = this.userid;
|
||||
String orgid = this.orgid;
|
||||
String remark = this.remark;
|
||||
try {
|
||||
Transaction sqlca = Transaction.createTransaction(tx);
|
||||
String ssql = "";
|
||||
if("null".equals(id)){
|
||||
ssql = "insert into communication(id,taskno,flowunid,phaseno,inputuser,inputorg,inputtime,remark)"+
|
||||
"VALUES(replace(uuid(),'-',''),'"+taskno+"','"+flowunid+"','"+phaseNo+"','"+userid+"','"+orgid+"',replace(now(),'-','/'),'"+remark+"')";
|
||||
|
||||
}else {
|
||||
if ("delete".equals(type)){
|
||||
ssql = "delete from communication where id = '"+id+"'";
|
||||
}else {
|
||||
ssql= "update communication set remark = '"+remark+"' where id = '"+id+"'";
|
||||
}
|
||||
}
|
||||
SqlObject sqlObject = new SqlObject(ssql);
|
||||
sqlca.executeSQL(sqlObject);
|
||||
tx.commit();
|
||||
return returns;
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
returns = "false";
|
||||
return returns;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,313 @@
|
||||
package com.tenwa.voucher.CreateVoucherProcess;
|
||||
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
import com.tenwa.comm.util.date.DateAssistant;
|
||||
import com.tenwa.lease.flow.project.businessapply.LBBusinessPrimary;
|
||||
import com.tenwa.reckon.util.Conn;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class InsertCustomerHistoryInfo {
|
||||
|
||||
private String flowunid;
|
||||
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
}
|
||||
|
||||
|
||||
public void setFlowunid(String flowunid) {
|
||||
this.flowunid = flowunid;
|
||||
}
|
||||
|
||||
//获取客户历史信息
|
||||
public void InsertCustomerHistoryInfoTemp(JBOTransaction tx) throws Exception{
|
||||
try {
|
||||
tx= JBOFactory.createJBOTransaction();
|
||||
Conn conn = new Conn(tx);
|
||||
String flowunid = this.flowunid;
|
||||
//获取客户基本信息
|
||||
String sql = "select ci.customerid,ci.customername,ci.certtype,ci.certid,(case when lul.IS_MAIN = 'Y' then '主承租人' else '共同承租人' end) as customertype,ci.customer_num,lul.FLOWUNID,lul.project_id from customer_info ci left join lb_union_lessee_temp lul on lul.customer_id = ci.customerid where lul.FLOWUNID = '" + flowunid + "' \n" +
|
||||
"union \n" +
|
||||
"select lgu.ASSUROR as customerid,lgu.FULLNAME as customername,lgu.CERTTYPE,lgu.certid,'担保人' as customertype,'' as customer_num,lgu.FLOWUNID,lgu.project_id from lb_guarantee_unit_temp lgu where lgu.FLOWUNID = '" + flowunid + "'";
|
||||
List<Map<String, String>> customerinfo = conn.executeQuery(sql);
|
||||
String customerid = "";
|
||||
String certid = "";
|
||||
|
||||
//避免项目的历史客户信息重复录入
|
||||
for (int i = customerinfo.size()-1; i >= 0; i--) {
|
||||
String cfsql = "select id from customer_history_info_temp where certid = '"+customerinfo.get(i).get("certid")+"' and flowunid = '"+customerinfo.get(i).get("flowunid")+"'";
|
||||
List<Map<String, String>> cfinfo = conn.executeQuery(cfsql);
|
||||
if(cfinfo.size()>0){
|
||||
customerinfo.remove(i);
|
||||
}
|
||||
}
|
||||
|
||||
if(customerinfo.size()>0){
|
||||
for (int i = 0; i < customerinfo.size(); i++) {
|
||||
customerid = customerinfo.get(i).get("customerid");
|
||||
certid = customerinfo.get(i).get("certid");
|
||||
|
||||
//获取客户为主承租人订单总数
|
||||
String gm_nu = "select count(lul.id) as num from lb_union_lessee lul where lul.CUSTOMER_ID = '"+customerid+"' and lul.IS_MAIN = 'Y' group by lul.CUSTOMER_ID";
|
||||
List<Map<String, String>> gm_number = conn.executeQuery(gm_nu);
|
||||
String gmnum = "";
|
||||
if(gm_number.size()>0){
|
||||
gmnum = gm_number.get(0).get("num");
|
||||
}else {
|
||||
gmnum = "0";
|
||||
}
|
||||
///获取客户为主承租融资金额和
|
||||
String sum_rz = "select format(sum(nvl(CLEAN_LEASE_MONEY,0)),2) as CLEAN_LEASE_MONEY from lb_union_lessee lul left join lb_contract_info lci on lci.id = lul.CONTRACT_ID left join lc_calc_condition lcc on lcc.CONTRACT_ID = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'Y' and lci.CONTRACT_STATUS >=31 and lci.CONTRACT_STATUS <> '104' group by lul.customer_id";
|
||||
List<Map<String, String>> rz = conn.executeQuery(sum_rz);
|
||||
String CLEAN_LEASE_MONEY = "";
|
||||
if(rz.size()>0){
|
||||
CLEAN_LEASE_MONEY = rz.get(0).get("clean_lease_money");
|
||||
}else {
|
||||
CLEAN_LEASE_MONEY = "0";
|
||||
}
|
||||
//获取客户为主承租已结清合同数
|
||||
String jq_contract_num = "select count(lci.ID) as num from lb_union_lessee lul left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'Y' and lci.CONTRACT_STATUS in ('100','105') group by lul.customer_id";
|
||||
List<Map<String, String>> jq_num = conn.executeQuery(jq_contract_num);
|
||||
String jq_number = "";
|
||||
if(jq_num.size()>0){
|
||||
jq_number = jq_num.get(0).get("num");
|
||||
}else {
|
||||
jq_number = "0";
|
||||
}
|
||||
//获取客户为主承租未结清合同数
|
||||
String wjq_contract_num = "select count(lci.ID) as num from lb_union_lessee lul left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'Y' and lci.CONTRACT_STATUS >=31 and lci.CONTRACT_STATUS <= 100 group by lul.customer_id";
|
||||
List<Map<String, String>> wjq_num = conn.executeQuery(wjq_contract_num);
|
||||
String wjq_number = "";
|
||||
if(wjq_num.size()>0){
|
||||
wjq_number = wjq_num.get(0).get("num");
|
||||
}else {
|
||||
wjq_number = "0";
|
||||
}
|
||||
//获取客户为主承租车辆总和
|
||||
String car_num = "select count(lec.ID) as num from lb_union_lessee lul left join lb_equipment_car lec on lec.CONTRACT_ID = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'Y' and lec.car_attribute = 'head' group by lul.customer_id";
|
||||
List<Map<String, String>> car_number = conn.executeQuery(car_num);
|
||||
String carnumber = "";
|
||||
if(car_number.size()>0){
|
||||
carnumber = car_number.get(0).get("num");
|
||||
}else {
|
||||
carnumber = "0";
|
||||
}
|
||||
//获取客户为主承租结清车辆总和
|
||||
String car_jq_num = "select count(lec.ID) as num from lb_union_lessee lul left join lb_equipment_car lec on lec.CONTRACT_ID = lul.CONTRACT_ID left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'Y' and lci.CONTRACT_STATUS in ('100','105') and lec.car_attribute = 'head' group by lul.customer_id";
|
||||
List<Map<String, String>> car_jq_number = conn.executeQuery(car_jq_num);
|
||||
String carjqnumber = "";
|
||||
if(car_jq_number.size()>0){
|
||||
carjqnumber = car_jq_number.get(0).get("num");
|
||||
}else {
|
||||
carjqnumber = "0";
|
||||
}
|
||||
//获取客户为主承租未结清车辆总和
|
||||
String car_wjq_num = "select count(lec.ID) as num from lb_union_lessee lul left join lb_equipment_car lec on lec.CONTRACT_ID = lul.CONTRACT_ID left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'Y' and lci.CONTRACT_STATUS >='31' and lci.CONTRACT_STATUS <= '100' and lec.car_attribute = 'head' group by lul.customer_id";
|
||||
List<Map<String, String>> car_wjq_number = conn.executeQuery(car_wjq_num);
|
||||
String carwjqnumber = "";
|
||||
if(car_wjq_number.size()>0){
|
||||
carwjqnumber = car_wjq_number.get(0).get("num");
|
||||
}else {
|
||||
carwjqnumber = "0";
|
||||
}
|
||||
//获取客户为主承租剩余租金,罚息
|
||||
String money_num = "select format(sum(nvl(rent_over,0)),2) as rent_over,format(sum(nvl(penalty_over,0)),2) as penalty_over from lb_union_lessee lul left join vi_rent_plan_sum vrps on lul.contract_id = vrps.contract_id where lul.CUSTOMER_ID = '"+customerid+"' and lul.IS_MAIN = 'Y' group by lul.CUSTOMER_ID";
|
||||
List<Map<String, String>> money_number = conn.executeQuery(money_num);
|
||||
String czr_rent_over = "";
|
||||
String czr_penalty_over = "";
|
||||
if(money_number.size()>0){
|
||||
czr_rent_over = money_number.get(0).get("rent_over");
|
||||
}else {
|
||||
czr_rent_over = "0";
|
||||
}
|
||||
if(money_number.size()>0){
|
||||
czr_penalty_over = money_number.get(0).get("rent_over");
|
||||
}else {
|
||||
czr_penalty_over = "0";
|
||||
}
|
||||
//获取客户为共同承租人订单总数
|
||||
String gt_gm_nu = "select count(lul.id) as num from lb_union_lessee lul where lul.CUSTOMER_ID = '"+customerid+"' and lul.IS_MAIN = 'N' group by lul.CUSTOMER_ID";
|
||||
List<Map<String, String>> gt_gm_number = conn.executeQuery(gt_gm_nu);
|
||||
String gtgmnumber = "";
|
||||
if(gt_gm_number.size()>0){
|
||||
gtgmnumber = gt_gm_number.get(0).get("num");
|
||||
}else {
|
||||
gtgmnumber = "0";
|
||||
}
|
||||
//获取客户为共同承租人融资额和
|
||||
String gt_sum_rz = "select format(sum(nvl(CLEAN_LEASE_MONEY,0)),2) as CLEAN_LEASE_MONEY from lb_union_lessee lul left join lb_contract_info lci on lci.id = lul.CONTRACT_ID left join lc_calc_condition lcc on lcc.CONTRACT_ID = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'N' and lci.CONTRACT_STATUS >=31 and lci.CONTRACT_STATUS <> '104' group by lul.customer_id";
|
||||
List<Map<String, String>> gt_rz = conn.executeQuery(gt_sum_rz);
|
||||
String GT_CLEAN_LEASE_MONEY = "";
|
||||
if(gt_rz.size()>0){
|
||||
GT_CLEAN_LEASE_MONEY = gt_rz.get(0).get("clean_lease_money");
|
||||
}else {
|
||||
GT_CLEAN_LEASE_MONEY = "0";
|
||||
}
|
||||
//获取客户为共同承租人已结清单数
|
||||
String gt_jq_contract_num = "select count(lci.ID) as num from lb_union_lessee lul left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'N' and lci.CONTRACT_STATUS in ('100','105') group by lul.customer_id";
|
||||
List<Map<String, String>> gt_jq_num = conn.executeQuery(gt_jq_contract_num);
|
||||
String gt_jq_number = "";
|
||||
if(gt_jq_num.size()>0){
|
||||
gt_jq_number = gt_jq_num.get(0).get("num");
|
||||
}else {
|
||||
gt_jq_number = "0";
|
||||
}
|
||||
//获取客户为共同承租人未结清单数
|
||||
String gt_wjq_contract_num = "select count(lci.ID) as num from lb_union_lessee lul left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'N' and lci.CONTRACT_STATUS >=31 and lci.CONTRACT_STATUS <= 100 group by lul.customer_id";
|
||||
List<Map<String, String>> gt_wjq_num = conn.executeQuery(gt_wjq_contract_num);
|
||||
String gt_wjq_number = "";
|
||||
if(gt_wjq_num.size()>0){
|
||||
gt_wjq_number = gt_wjq_num.get(0).get("num");
|
||||
}else {
|
||||
gt_wjq_number = "0";
|
||||
}
|
||||
//获取客户为共同承租人车辆总和
|
||||
String gt_car_num = "select count(lec.ID) as num from lb_union_lessee lul left join lb_equipment_car lec on lec.CONTRACT_ID = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'N' and lec.car_attribute = 'head' group by lul.customer_id";
|
||||
List<Map<String, String>> gt_car_number = conn.executeQuery(gt_car_num);
|
||||
String gtcarnumber = "";
|
||||
if(gt_car_number.size()>0){
|
||||
gtcarnumber = gt_car_number.get(0).get("num");
|
||||
}else {
|
||||
gtcarnumber = "0";
|
||||
}
|
||||
//获取客户为共同承租人结清车辆总和
|
||||
String gt_car_jq_num = "select count(lec.ID) as num from lb_union_lessee lul left join lb_equipment_car lec on lec.CONTRACT_ID = lul.CONTRACT_ID left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'N' and lci.CONTRACT_STATUS in ('100','105') and lec.car_attribute = 'head' group by lul.customer_id";
|
||||
List<Map<String, String>> gt_car_jq_number = conn.executeQuery(gt_car_jq_num);
|
||||
String gtcarjqnumber = "";
|
||||
if(gt_car_jq_number.size()>0){
|
||||
gtcarjqnumber = gt_car_jq_number.get(0).get("num");
|
||||
}else {
|
||||
gtcarjqnumber = "0";
|
||||
}
|
||||
//获取客户为共同承租人未结清车辆总和
|
||||
String gt_car_wjq_num = "select count(lec.ID) as num from lb_union_lessee lul left join lb_equipment_car lec on lec.CONTRACT_ID = lul.CONTRACT_ID left join lb_contract_info lci on lci.id = lul.CONTRACT_ID where lul.customer_id = '"+customerid+"' and lul.IS_MAIN = 'N' and lci.CONTRACT_STATUS >='31' and lci.CONTRACT_STATUS <= '100' and lec.car_attribute = 'head' group by lul.customer_id";
|
||||
List<Map<String, String>> gt_car_wjq_number = conn.executeQuery(gt_car_wjq_num);
|
||||
String gtcarwjqnumber = "";
|
||||
if(gt_car_wjq_number.size()>0){
|
||||
gtcarwjqnumber = gt_car_wjq_number.get(0).get("num");
|
||||
}else {
|
||||
gtcarwjqnumber = "0";
|
||||
}
|
||||
//获取客户为共同承租人剩余租金,罚息
|
||||
String gt_money_num = "select format(sum(nvl(rent_over,0)),2) as rent_over,format(sum(nvl(penalty_over,0)),2) as penalty_over from lb_union_lessee lul left join vi_rent_plan_sum vrps on lul.contract_id = vrps.contract_id where lul.CUSTOMER_ID = '"+customerid+"' and lul.IS_MAIN = 'N' group by lul.CUSTOMER_ID";
|
||||
List<Map<String, String>> gt_money_number = conn.executeQuery(gt_money_num);
|
||||
String gt_rent_over = "";
|
||||
String gt_penalty_over = "";
|
||||
if(gt_money_number.size()>0){
|
||||
gt_rent_over = gt_money_number.get(0).get("rent_over");
|
||||
}else {
|
||||
gt_rent_over = "0";
|
||||
}
|
||||
if(gt_money_number.size()>0){
|
||||
gt_penalty_over = gt_money_number.get(0).get("penalty_over");
|
||||
}else {
|
||||
gt_penalty_over = "0";
|
||||
}
|
||||
//获取客户为担保人订单总数
|
||||
String db_gm_nu = "select count(lgu.id) as num from lb_guarantee_unit lgu where lgu.certid = '"+certid+"' group by lgu.certid";
|
||||
List<Map<String, String>> db_gm_number = conn.executeQuery(db_gm_nu);
|
||||
String dbgmnumber = "";
|
||||
if(db_gm_number.size()>0){
|
||||
dbgmnumber = db_gm_number.get(0).get("num");
|
||||
}else {
|
||||
dbgmnumber = "0";
|
||||
}
|
||||
//获取客户为担保人融资额和
|
||||
String db_sum_rz = "select format(sum(nvl(CLEAN_LEASE_MONEY,0)),2) as CLEAN_LEASE_MONEY from lb_guarantee_unit lgu left join lb_contract_info lci on lci.id = lgu.CONTRACT_ID left join lc_calc_condition lcc on lcc.CONTRACT_ID = lgu.CONTRACT_ID where lgu.certid = '"+certid+"' and lci.CONTRACT_STATUS >=31 and lci.CONTRACT_STATUS <> '104' group by lgu.certid";
|
||||
List<Map<String, String>> db_rz = conn.executeQuery(db_sum_rz);
|
||||
String DB_CLEAN_LEASE_MONEY = "";
|
||||
if(db_rz.size()>0){
|
||||
DB_CLEAN_LEASE_MONEY = db_rz.get(0).get("clean_lease_money");
|
||||
}else {
|
||||
DB_CLEAN_LEASE_MONEY = "0";
|
||||
}
|
||||
//获取客户为担保人已结清单数
|
||||
String db_jq_contract_num = "select count(lci.ID) as num from lb_guarantee_unit lgu left join lb_contract_info lci on lci.id = lgu.CONTRACT_ID where lgu.certid = '"+certid+"' and lci.CONTRACT_STATUS in ('100','105') group by lgu.certid";
|
||||
List<Map<String, String>> db_jq_num = conn.executeQuery(db_jq_contract_num);
|
||||
String db_jq_number = "";
|
||||
if(db_jq_num.size()>0){
|
||||
db_jq_number = db_jq_num.get(0).get("num");
|
||||
}else {
|
||||
db_jq_number = "0";
|
||||
}
|
||||
//获取客户为担保人未结清单数
|
||||
String db_wjq_contract_num = "select count(lci.ID) as num from lb_guarantee_unit lgu left join lb_contract_info lci on lci.id = lgu.CONTRACT_ID where lgu.certid = '"+certid+"' and lci.CONTRACT_STATUS >=31 and lci.CONTRACT_STATUS <= 100 group by lgu.certid";
|
||||
List<Map<String, String>> db_wjq_num = conn.executeQuery(db_wjq_contract_num);
|
||||
String db_wjq_number = "";
|
||||
if(db_wjq_num.size()>0){
|
||||
db_wjq_number = db_wjq_num.get(0).get("num");
|
||||
}else {
|
||||
db_wjq_number = "0";
|
||||
}
|
||||
//获取客户为担保人车辆总和
|
||||
String db_car_num = "select count(lec.ID) as num from lb_guarantee_unit lgu left join lb_equipment_car lec on lec.CONTRACT_ID = lgu.CONTRACT_ID where lgu.certid = '"+certid+"' and lec.car_attribute = 'head' group by lgu.certid";
|
||||
List<Map<String, String>> db_car_number = conn.executeQuery(db_car_num);
|
||||
String dbcarnumber = "";
|
||||
if(db_car_number.size()>0){
|
||||
dbcarnumber = db_car_number.get(0).get("num");
|
||||
}else {
|
||||
dbcarnumber = "0";
|
||||
}
|
||||
//获取客户为担保人结清车辆总和
|
||||
String db_car_jq_num = "select count(lec.ID) as num from lb_guarantee_unit lgu left join lb_equipment_car lec on lec.CONTRACT_ID = lgu.CONTRACT_ID left join lb_contract_info lci on lci.id = lgu.CONTRACT_ID where lgu.certid = '"+certid+"' and lci.CONTRACT_STATUS in ('100','105') and lec.car_attribute = 'head' group by lgu.certid";
|
||||
List<Map<String, String>> db_car_jq_number = conn.executeQuery(db_car_jq_num);
|
||||
String dbcarjqnumber = "";
|
||||
if(db_car_jq_number.size()>0){
|
||||
dbcarjqnumber = db_car_jq_number.get(0).get("num");
|
||||
}else {
|
||||
dbcarjqnumber = "0";
|
||||
}
|
||||
//获取客户为担保人结清车辆总和
|
||||
String db_car_wjq_num = "select count(lec.ID) as num from lb_guarantee_unit lgu left join lb_equipment_car lec on lec.CONTRACT_ID = lgu.CONTRACT_ID left join lb_contract_info lci on lci.id = lgu.CONTRACT_ID where lgu.certid = '"+certid+"' and lci.CONTRACT_STATUS >='31' and lci.CONTRACT_STATUS <= '100' and lec.car_attribute = 'head' group by lgu.certid";
|
||||
List<Map<String, String>> db_car_wjq_number = conn.executeQuery(db_car_wjq_num);
|
||||
String dbcarwjqnumber = "";
|
||||
if(db_car_wjq_number.size()>0){
|
||||
dbcarwjqnumber = db_car_wjq_number.get(0).get("num");
|
||||
}else {
|
||||
dbcarwjqnumber = "0";
|
||||
}
|
||||
//获取客户为担保人剩余租金,罚息
|
||||
String db_money_num = "select format(sum(nvl(rent_over,0)),2) as rent_over,format(sum(nvl(penalty_over,0)),2) as penalty_over from lb_guarantee_unit lgu left join vi_rent_plan_sum vrps on lgu.contract_id = vrps.contract_id where lgu.certid = '"+certid+"' group by lgu.certid";
|
||||
List<Map<String, String>> db_money_number = conn.executeQuery(db_money_num);
|
||||
String db_rent_over = "";
|
||||
String db_penalty_over = "";
|
||||
if(db_money_number.size()>0){
|
||||
db_rent_over = db_money_number.get(0).get("rent_over");
|
||||
}else {
|
||||
db_rent_over = "0";
|
||||
}
|
||||
if(db_money_number.size()>0){
|
||||
db_penalty_over = db_money_number.get(0).get("penalty_over");
|
||||
}else {
|
||||
db_penalty_over = "0";
|
||||
}
|
||||
//客户敞口计算
|
||||
Transaction sqlca = Transaction.createTransaction(tx);
|
||||
BigDecimal exposureMoney = LBBusinessPrimary.obtainExposureMoney(sqlca,flowunid);
|
||||
//录入客户历史信息表
|
||||
String ssql = "insert into customer_history_info_temp(id,customerid,customername,certtype,certid,customertype,customer_num,flowunid,project_id,clientbuynumber,clientfinancingamount,clientclosedaccount,clientunsettled,clientvehiclepopulation,clientclosedvehicle,clientoutstandingvehicle,clientloanbalance,clientoverdueamount,jointlybuynumber,jointlyfinancingamount,jointlyclosedaccount,jointlyunsettled,jointlyveh,jointlyclosedvehicle,jointlyout,jointlyloanbalance,jointlyoverdueamount,guaranteebuynumber,guaranteefin,guaranteeclosedaccount,guaranteeunsettled,guaranteeveh,guaranteeclosedvehicle,guaranteeout,guaranteeloanbalance,guaranteeoverdueamount,exposure)"+
|
||||
"VALUES(replace(uuid(),'-',''),'"+customerinfo.get(i).get("customerid")+"','"+customerinfo.get(i).get("customername")+"','"+customerinfo.get(i).get("certtype")+"','"+customerinfo.get(i).get("certid")+"','"+customerinfo.get(i).get("customertype")+"','"+customerinfo.get(i).get("customer_num")+"','"+flowunid+"','"+customerinfo.get(i).get("project_id")+"','"+gmnum+"','"+CLEAN_LEASE_MONEY+"','"+jq_number+"','"+wjq_number+"','"+carnumber+"','"+carjqnumber+"','"+carwjqnumber+"','"+czr_rent_over+"','"+czr_penalty_over+"',"+
|
||||
"'"+gtgmnumber+"','"+GT_CLEAN_LEASE_MONEY+"','"+gt_jq_number+"','"+gt_wjq_number+"','"+gtcarnumber+"','"+gtcarjqnumber+"','"+gtcarwjqnumber+"','"+gt_rent_over+"','"+gt_penalty_over+"',"+
|
||||
"'"+dbgmnumber+"','"+DB_CLEAN_LEASE_MONEY+"','"+db_jq_number+"','"+db_wjq_number+"','"+dbcarnumber+"','"+dbcarjqnumber+"','"+dbcarwjqnumber+"','"+db_rent_over+"','"+db_penalty_over+"','"+exposureMoney+"')";
|
||||
|
||||
SqlObject sqlObject = new SqlObject(ssql);
|
||||
sqlca.executeSQL(sqlObject);
|
||||
tx.commit();
|
||||
}
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
76
src_jbo/jbo/com/tenwa/entity/comm/flow/COMMUNICATION.java
Normal file
76
src_jbo/jbo/com/tenwa/entity/comm/flow/COMMUNICATION.java
Normal file
@ -0,0 +1,76 @@
|
||||
package jbo.com.tenwa.entity.comm.flow;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 放款订单信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface COMMUNICATION {
|
||||
|
||||
/**
|
||||
* 放款订单信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.flow.COMMUNICATION";
|
||||
/**
|
||||
* ID STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 流程节点ID STRING(32)<br>
|
||||
*/
|
||||
public static final String taskno = "taskno";
|
||||
/**
|
||||
* 流程编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String flowunid = "flowunid";
|
||||
|
||||
/**
|
||||
* 流程节点 STRING(32)<br>
|
||||
*/
|
||||
public static final String phaseno = "phaseno";
|
||||
|
||||
/**
|
||||
* 录入人 STRING(200)<br>
|
||||
*/
|
||||
public static final String inputuser = "inputuser";
|
||||
|
||||
/**
|
||||
* 录入部门 STRING(200)<br>
|
||||
*/
|
||||
public static final String inputorg = "inputorg";
|
||||
|
||||
/**
|
||||
* 录入时间 STRING(10<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
|
||||
/**
|
||||
* 修改人 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateuser = "updateuser";
|
||||
|
||||
/**
|
||||
* 修改时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
|
||||
/**
|
||||
* 备注信息 STRING(1000)<br>
|
||||
*/
|
||||
public static final String remark = "remark";
|
||||
|
||||
/**
|
||||
* 录入人名称 STRING(1000)<br>
|
||||
*/
|
||||
public static final String username = "username";
|
||||
|
||||
/**
|
||||
* 录入部门名称 STRING(1000)<br>
|
||||
*/
|
||||
public static final String orgname = "orgname";
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,192 @@
|
||||
package jbo.com.tenwa.entity.comm.flow;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 客户历史信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface CUSTOMER_HISTORY_INFO_TEMP {
|
||||
/**
|
||||
* 客户历史信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.flow.CUSTOMER_HISTORY_INFO_TEMP";
|
||||
/**
|
||||
* ID STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 客户编号 STRING(40)<br>
|
||||
*/
|
||||
public static final String customerid = "customerid";
|
||||
/**
|
||||
* 客户名称 STRING(200)<br>
|
||||
*/
|
||||
public static final String customername = "customername";
|
||||
/**
|
||||
* 证件类型 STRING(20)<br>
|
||||
*/
|
||||
public static final String certtype = "certtype";
|
||||
/**
|
||||
* 证件号 STRING(20)<br>
|
||||
*/
|
||||
public static final String certid = "certid";
|
||||
/**
|
||||
* 客户类别 STRING(20)<br>
|
||||
*/
|
||||
public static final String customertype = "customertype";
|
||||
/**
|
||||
* 流程编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String flowunid = "flowunid";
|
||||
/**
|
||||
* 项目编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String project_id = "project_id";
|
||||
/**
|
||||
* 客户购买次数 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientbuynumber = "clientbuynumber";
|
||||
/**
|
||||
* 客户融资金额 STRING(32)<br>
|
||||
*/
|
||||
public static final String clientfinancingamount = "clientfinancingamount";
|
||||
/**
|
||||
* 客户已结清单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientclosedaccount = "clientclosedaccount";
|
||||
/**
|
||||
* 客户未结清单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientunsettled = "clientunsettled";
|
||||
/**
|
||||
* 客户车辆总数 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientvehiclepopulation = "clientvehiclepopulation";
|
||||
/**
|
||||
* 客户结清车辆数 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientclosedvehicle = "clientclosedvehicle";
|
||||
/**
|
||||
* 客户未结清车辆数 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientoutstandingvehicle = "clientoutstandingvehicle";
|
||||
/**
|
||||
* 客户贷款余额 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientloanbalance = "clientloanbalance";
|
||||
/**
|
||||
* 客户逾期金额 STRING(10)<br>
|
||||
*/
|
||||
public static final String clientoverdueamount = "clientoverdueamount";
|
||||
/**
|
||||
* 共同购买次数 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlybuynumber = "jointlybuynumber";
|
||||
/**
|
||||
* 共同融资金额 STRING(32)<br>
|
||||
*/
|
||||
public static final String jointlyfinancingamount = "jointlyfinancingamount";
|
||||
/**
|
||||
* 共同已结清单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyclosedaccount = "jointlyclosedaccount";
|
||||
/**
|
||||
* 共同未结清单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyunsettled = "jointlyunsettled";
|
||||
/**
|
||||
* 共同车辆总数 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyveh = "jointlyveh";
|
||||
/**
|
||||
* 共同结清车辆数 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyclosedvehicle = "jointlyclosedvehicle";
|
||||
/**
|
||||
* 共同未结清车辆数 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyout = "jointlyout";
|
||||
/**
|
||||
* 共同贷款余额 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyloanbalance = "jointlyloanbalance";
|
||||
/**
|
||||
* 共同逾期金额 STRING(10)<br>
|
||||
*/
|
||||
public static final String jointlyoverdueamount = "jointlyoverdueamount";
|
||||
/**
|
||||
* 担保单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteebuynumber = "guaranteebuynumber";
|
||||
/**
|
||||
* 担保金额 STRING(32)<br>
|
||||
*/
|
||||
public static final String guaranteefin = "guaranteefin";
|
||||
/**
|
||||
* 担保已结清单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeclosedaccount = "guaranteeclosedaccount";
|
||||
/**
|
||||
* 担保未结清单数 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeunsettled = "guaranteeunsettled";
|
||||
/**
|
||||
* 担保车辆总数 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeveh = "guaranteeveh";
|
||||
/**
|
||||
* 担保结清车辆数 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeclosedvehicle = "guaranteeclosedvehicle";
|
||||
/**
|
||||
* 担保未结清车辆数 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeout = "guaranteeout";
|
||||
/**
|
||||
* 担保贷款余额 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeloanbalance = "guaranteeloanbalance";
|
||||
/**
|
||||
* 担保逾期金额 STRING(10)<br>
|
||||
*/
|
||||
public static final String guaranteeoverdueamount = "guaranteeoverdueamount";
|
||||
/**
|
||||
* 备注 STRING(250)<br>
|
||||
*/
|
||||
public static final String remark = "remark";
|
||||
/**
|
||||
* 客户编码 STRING(32)<br>
|
||||
*/
|
||||
public static final String customer_num = "customer_num";
|
||||
/**
|
||||
* 登记人 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 登记机构 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
/**
|
||||
* 更新人 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateuserid = "updateuserid";
|
||||
/**
|
||||
* 更新部门 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateorgid = "updateorgid";
|
||||
/**
|
||||
* 更新时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
/**
|
||||
* 敞口 STRING(32)<br>
|
||||
*/
|
||||
public static final String exposure = "exposure";
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package jbo.com.tenwa.entity.comm.flow;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 放款订单信息 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface VI_CUSTOMERHISTORY {
|
||||
|
||||
/**
|
||||
* 放款订单信息<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.flow.VI_CUSTOMERHISTORY";
|
||||
/**
|
||||
* 客户ID STRING(32)<br>
|
||||
*/
|
||||
public static final String CUSTOMER_ID = "CUSTOMER_ID";
|
||||
/**
|
||||
* 证件号 STRING(32)<br>
|
||||
*/
|
||||
public static final String CERTID = "CERTID";
|
||||
/**
|
||||
* 合同编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String CONTRACT_NO = "CONTRACT_NO";
|
||||
|
||||
/**
|
||||
* 客户名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String CUSTOMER_NAME = "CUSTOMER_NAME";
|
||||
|
||||
/**
|
||||
* 客户角色 STRING(200)<br>
|
||||
*/
|
||||
public static final String CHARACTERS = "CHARACTERS";
|
||||
|
||||
/**
|
||||
* 经销商名称 STRING(200)<br>
|
||||
*/
|
||||
public static final String DISTRIBUTOR_NAME = "DISTRIBUTOR_NAME";
|
||||
|
||||
/**
|
||||
* 车辆台数 STRING(10<br>
|
||||
*/
|
||||
public static final String CAR_NUM = "CAR_NUM";
|
||||
|
||||
/**
|
||||
* 首付款比例 STRING(32)<br>
|
||||
*/
|
||||
public static final String FIRST_PAYMENT_RATIO = "FIRST_PAYMENT_RATIO";
|
||||
|
||||
/**
|
||||
* 融资额 STRING(32)<br>
|
||||
*/
|
||||
public static final String CLEAN_LEASE_MONEY = "CLEAN_LEASE_MONEY";
|
||||
|
||||
/**
|
||||
* 合同期次 STRING(32)<br>
|
||||
*/
|
||||
public static final String LEASE_TERM = "LEASE_TERM";
|
||||
|
||||
/**
|
||||
* 合同状态名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String STATUS_NAME = "STATUS_NAME";
|
||||
|
||||
/**
|
||||
* 合同状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String CONTRACT_STATUS = "CONTRACT_STATUS";
|
||||
|
||||
}
|
||||
@ -1,32 +1,36 @@
|
||||
package jbo.com.tenwa.entity.comm.own;
|
||||
|
||||
import java.lang.String;
|
||||
public interface LB_CONTACT_US {
|
||||
|
||||
/**
|
||||
* <br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.own.LB_CONTACT_US";
|
||||
/**
|
||||
* id STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 公司名称 STRING(100)<br>
|
||||
*/
|
||||
public static final String name = "name";
|
||||
/**
|
||||
* 电子邮箱 STRING(20)<br>
|
||||
*/
|
||||
public static final String e_mail = "e_mail";
|
||||
/**
|
||||
* 客户电话 STRING(20)<br>
|
||||
*/
|
||||
public static final String tel = "tel";
|
||||
/**
|
||||
* 工作时间 STRING(20)<br>
|
||||
*/
|
||||
public static final String work_time = "work_time";
|
||||
/**
|
||||
* - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
}
|
||||
*/
|
||||
public interface LB_CONTACT_US{
|
||||
/**
|
||||
* <br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.com.tenwa.entity.comm.own.LB_CONTACT_US";
|
||||
/**
|
||||
* 主键 STRING(32)<br>
|
||||
*/
|
||||
public static final String ID = "ID";
|
||||
/**
|
||||
* 公司名称 STRING(500)<br>
|
||||
*/
|
||||
public static final String name = "name";
|
||||
/**
|
||||
* 公司邮箱 STRING(500)<br>
|
||||
*/
|
||||
public static final String e_mail = "e_mail";
|
||||
/**
|
||||
* 联系电话 STRING(500)<br>
|
||||
*/
|
||||
public static final String tel = "tel";
|
||||
/**
|
||||
* 工作时间 STRING(500)<br>
|
||||
*/
|
||||
public static final String work_time = "work_time";
|
||||
}
|
||||
@ -269,4 +269,8 @@ public interface LB_PROJECT_INFO{
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
/**
|
||||
* 拒单理由 STRING(10)<br>
|
||||
*/
|
||||
public static final String VETO = "VETO";
|
||||
}
|
||||
@ -269,4 +269,8 @@ public interface LB_PROJECT_INFO_TEMP{
|
||||
* 资方名称 STRING(10)<br>
|
||||
*/
|
||||
public static final String CORPUS_SOURCE = "CORPUS_SOURCE";
|
||||
/**
|
||||
* 拒单理由 STRING(10)<br>
|
||||
*/
|
||||
public static final String VETO = "VETO";
|
||||
}
|
||||
@ -52,7 +52,9 @@ public class LBCgb0032LogDao {
|
||||
JBOTransaction jboTransaction = null;
|
||||
try {
|
||||
jboTransaction = JBOFactory.createJBOTransaction();
|
||||
return updateStatus(jboTransaction, id, statusEnum);
|
||||
int num = updateStatus(jboTransaction, id, statusEnum);
|
||||
jboTransaction.commit();
|
||||
return num;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (jboTransaction != null) {
|
||||
@ -78,8 +80,10 @@ public class LBCgb0032LogDao {
|
||||
JBOTransaction jboTransaction = null;
|
||||
try {
|
||||
jboTransaction = JBOFactory.createJBOTransaction();
|
||||
return recordLog(jboTransaction, id, recordNum, tranCode,
|
||||
int num = recordLog(jboTransaction, id, recordNum, tranCode,
|
||||
tranSeq, statusEnum);
|
||||
jboTransaction.commit();
|
||||
return num;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (jboTransaction != null) {
|
||||
|
||||
@ -30,11 +30,14 @@ package com.tenwa.cgbbank.dto;
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.tenwa.cgb.conf.CGBconfProperties;
|
||||
import com.tenwa.util.GlobalConst;
|
||||
import jbo.app.tenwa.calc.LC_EBANK;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @program: apzl_leasing
|
||||
@ -49,6 +52,7 @@ public class CGB0032ResBodyRecord {
|
||||
String dealMoney;
|
||||
String financingSymbol;
|
||||
String usableMoney;
|
||||
@JsonProperty("Abstract")
|
||||
String Abstract;
|
||||
String dealBranch;
|
||||
String upBill;
|
||||
@ -244,16 +248,18 @@ public class CGB0032ResBodyRecord {
|
||||
|
||||
|
||||
|
||||
public BizObject convertToEbank(BizObjectManager manager, String userId, String orgId) throws JBOException {
|
||||
public BizObject convertToEbank(BizObjectManager manager, String userId, String orgId) throws Exception {
|
||||
String nowDateTime = LocalDateTime.now().format(GlobalConst.dateTimeFormatter);
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
|
||||
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy/MM/dd"); //日期格式
|
||||
String factDate = sdf1.format(sdf.parse(this.dealDate)); //将系统时间转换成上方指定类型
|
||||
BizObject bizObject = manager.newObject();
|
||||
bizObject.setAttributeValue(LC_EBANK.ID, "");
|
||||
// bizObject.setAttributeValue(LC_EBANK.EBANK_NUMBER, );
|
||||
bizObject.setAttributeValue(LC_EBANK.EBANK_SN, this.cbsTranSeq);
|
||||
bizObject.setAttributeValue(LC_EBANK.EBANK_SN, this.serialNo);
|
||||
bizObject.setAttributeValue(LC_EBANK.MONEY_TYPE, "currency_type1");
|
||||
bizObject.setAttributeValue(LC_EBANK.FACT_MONEY, this.dealMoney);
|
||||
bizObject.setAttributeValue(LC_EBANK.FACT_DATE, this.dealDate);
|
||||
bizObject.setAttributeValue(LC_EBANK.FACT_DATE, factDate);
|
||||
bizObject.setAttributeValue(LC_EBANK.NOWITH_MONEY, 0);
|
||||
bizObject.setAttributeValue(LC_EBANK.RATE, 0);
|
||||
bizObject.setAttributeValue(LC_EBANK.OWN_BANK, CGBconfProperties.OWNACCBANK);
|
||||
@ -263,7 +269,7 @@ public class CGB0032ResBodyRecord {
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_BANK, "ÒøÐÐ");
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_ACCOUNT, this.name);
|
||||
bizObject.setAttributeValue(LC_EBANK.CLIENT_ACC_NUMBER, this.oppoAccno);
|
||||
bizObject.setAttributeValue(LC_EBANK.HAD_MONEY, this.dealMoney);
|
||||
bizObject.setAttributeValue(LC_EBANK.HAD_MONEY,"0.00");
|
||||
bizObject.setAttributeValue(LC_EBANK.MAYOPE_MONEY, this.dealMoney);
|
||||
// bizObject.setAttributeValue(LC_EBANK.FUND_MONEY, );
|
||||
bizObject.setAttributeValue(LC_EBANK.INVALID, "N");
|
||||
@ -274,7 +280,7 @@ public class CGB0032ResBodyRecord {
|
||||
bizObject.setAttributeValue(LC_EBANK.UPDATEUSERID, userId);
|
||||
bizObject.setAttributeValue(LC_EBANK.UPDATEORGID, orgId);
|
||||
bizObject.setAttributeValue(LC_EBANK.UPDATETIME, nowDateTime);
|
||||
bizObject.setAttributeValue(LC_EBANK.DEBIT_MONEY, this.dealMoney);
|
||||
// bizObject.setAttributeValue(LC_EBANK.DEBIT_MONEY, this.dealMoney);
|
||||
bizObject.setAttributeValue(LC_EBANK.BUSINESS_TYPE, "Æû³µ");
|
||||
bizObject.setAttributeValue(LC_EBANK.CUSTOMER_TYPE, "Íⲿ¿ÍÉÌ");
|
||||
return bizObject;
|
||||
|
||||
@ -45,6 +45,12 @@ public class CGBMessageHead {
|
||||
* @description: 企业上送报文留空(填空格),银行默认返回000
|
||||
*/
|
||||
String retCode;
|
||||
|
||||
/**
|
||||
* ·µ»ØÏûÏ¢
|
||||
* @description:
|
||||
*/
|
||||
String retMsg;
|
||||
|
||||
/**
|
||||
* 操作员
|
||||
@ -106,8 +112,16 @@ public class CGBMessageHead {
|
||||
public void setRetCode(String retCode) {
|
||||
this.retCode = retCode;
|
||||
}
|
||||
|
||||
public String getRetMsg() {
|
||||
return retMsg;
|
||||
}
|
||||
|
||||
public String getEntUserId() {
|
||||
public void setRetMsg(String retMsg) {
|
||||
this.retMsg = retMsg;
|
||||
}
|
||||
|
||||
public String getEntUserId() {
|
||||
return entUserId;
|
||||
}
|
||||
|
||||
@ -122,4 +136,5 @@ public class CGBMessageHead {
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
}
|
||||
@ -7,6 +7,8 @@ import com.tenwa.cgbbank.dto.*;
|
||||
import com.tenwa.cgbbank.enums.CGB0032LogStatusEnum;
|
||||
import com.tenwa.cgbbank.helper.CGBBankInterfaceHelper;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.lease.app.ebank.EbankUse;
|
||||
|
||||
import jbo.loan.LB_CGB_0032_LOG;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@ -38,9 +40,9 @@ public class CGBBankService {
|
||||
private static LBCgb0032LogDao lbCgb0032LogDao = LBCgb0032LogDao.getInstance();
|
||||
|
||||
// 默认操作人ID
|
||||
private String defOperUserId = "admin";
|
||||
private String defOperUserId = "8009U00000056";
|
||||
// 默认操作人部门ID
|
||||
private String defOperOrgId = "8009001";
|
||||
private String defOperOrgId = "8009014";
|
||||
|
||||
private static final Integer QUERY_PAGE_SIZE = 20;
|
||||
|
||||
@ -57,6 +59,7 @@ public class CGBBankService {
|
||||
try {
|
||||
jboTransaction = JBOFactory.createJBOTransaction();
|
||||
lbCgb0032LogBizObj = init(jboTransaction, account, queryDate);
|
||||
jboTransaction.commit();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (jboTransaction != null) try {
|
||||
@ -68,6 +71,24 @@ public class CGBBankService {
|
||||
}
|
||||
|
||||
queryAndSaveTransactionDetailsToEbank(lbCgb0032LogBizObj);
|
||||
//执行完成后,调用生成凭证方法
|
||||
// com.tenwa.lease.app.ebank.EbankUse
|
||||
JBOTransaction jboTransactionV = null;
|
||||
try {
|
||||
jboTransactionV = JBOFactory.createJBOTransaction();
|
||||
EbankUse eu = new EbankUse();
|
||||
eu.createEbankVoucher2(jboTransactionV);
|
||||
jboTransactionV.commit();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
if (jboTransactionV != null) try {
|
||||
jboTransactionV.rollback();
|
||||
} catch (JBOException e1) {
|
||||
e1.printStackTrace();
|
||||
}
|
||||
throw new RuntimeException("生成凭证失败");
|
||||
}
|
||||
System.out.println("调用广发银行接口完成!!!");
|
||||
}
|
||||
|
||||
private BizObject init(JBOTransaction jboTransaction, String account, String queryDate) throws JBOException {
|
||||
@ -107,7 +128,8 @@ public class CGBBankService {
|
||||
try {
|
||||
cgb0032ResBodyCGBBEDC = cgbBankInterfaceHelper.queryTransactionDetails(reqBody);
|
||||
} catch (Exception e) {
|
||||
// 在请求银行接口出现异常后,保存请求错误信息到【广发银行网银流水每日日志】表
|
||||
e.printStackTrace();
|
||||
// 在请求银行接口出现异常后,保存请求错误信息到【广发银行网银流水每日日志】表
|
||||
lbCgb0032LogDao.recordLog(lbCgb0032LogId, recordNum, reqBody.getBeginRecTranCode(),
|
||||
reqBody.getBeginRecTranSeq(), CGB0032LogStatusEnum.S2);
|
||||
throw new RuntimeException("调用广发银行【交易明细查询-分页接口】失败!");
|
||||
@ -122,9 +144,12 @@ public class CGBBankService {
|
||||
BizObjectManager bizObjectManager = JBOFactory.getBizObjectManager("jbo.app.tenwa.calc.LC_EBANK", jboTransaction);
|
||||
// 转换成网银流水
|
||||
for (CGB0032ResBodyRecord record : records) {
|
||||
if (record.getFinancingSymbol().equals("+")) {
|
||||
BizObject lc = bizObjectManager.createQuery("ebank_sn=:ebankSn").setParameter("ebankSn", record.getSerialNo()).getSingleResult(false);
|
||||
if (lc == null && record.getLoanSign().equals("+") && !(record.getOppoAccno().indexOf("9915810001415816")>=0 || record.getOppoAccno().indexOf("9912900000582902")>=0 )) {
|
||||
BizObject bizObject = record.convertToEbank(bizObjectManager, defOperUserId, defOperOrgId);
|
||||
bizObjectManager.saveObject(bizObject);
|
||||
bizObject.setAttributeValue("EBANK_NUMBER", bizObject.getAttribute("ID"));
|
||||
bizObjectManager.saveObject(bizObject);
|
||||
recordNum++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,8 +33,8 @@ public class PbocXmlUtils {
|
||||
|
||||
//查询申请类型 01-人工申请(通过前置系统发起的申请)
|
||||
msgBody.put("appType", "01");
|
||||
msgBody.put("rptUser", CodeManager.getItemName("pboc_query_strategy", "finDept"));//报告使用人 登录征信查询前置系统的用户账号
|
||||
msgBody.put("rptUserdept", CodeManager.getItemName("pboc_query_strategy", "finDept"));//填写部门机构代码
|
||||
msgBody.put("rptUser", CodeManager.getItemName("pboc_query_strategy", "rptUser"));//报告使用人 登录征信查询前置系统的用户账号
|
||||
msgBody.put("rptUserdept", CodeManager.getItemName("pboc_query_strategy", "rptUserdept"));//填写部门机构代码
|
||||
|
||||
// msgBody.put("reqId", applyId);
|
||||
msgBody.put("custName", params.get("fullName"));
|
||||
|
||||
@ -81,9 +81,10 @@ public class AutoRefresh implements Job {
|
||||
caTj.queryBatchCollectStatus(tx);
|
||||
}
|
||||
tx.commit();
|
||||
QuartzUtil.insertLog(plan_date, "com.tenwa.lease.app.quartzmession.AutoRefresh", "success", "银联成功", curUserId);
|
||||
//通联卡扣回盘
|
||||
new AllinpayPaymentQueryRun().allinpayPaymentQuerySt();
|
||||
QuartzUtil.insertLog(plan_date, "com.tenwa.lease.app.quartzmession.AutoRefresh", "success", "成功", curUserId);
|
||||
QuartzUtil.insertLog(plan_date, "com.tenwa.lease.app.quartzmession.AutoRefresh", "success", "通联成功", curUserId);
|
||||
} catch (Exception e) {
|
||||
if (tx != null) tx.rollback();
|
||||
e.printStackTrace();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package com.tenwa.lease.flow.project.businessapply;
|
||||
|
||||
import com.tenwa.reckon.util.Conn;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
@ -17,6 +18,8 @@ import jbo.sys.CODE_LIBRARY;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
@ -148,7 +151,8 @@ public class CustomerInfoCheck {
|
||||
//BizObject mobileLU=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT.CLASS_NAME,"MOBILE=:mobile").setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
//BizObject mobileLUT=JBOFactory.createBizObjectQuery(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME,"FLOWUNID=:flowunid and MOBILE=:mobile").setParameter("flowunid", this.flowunid).setParameter("mobile", this.mobile).getSingleResult(false);
|
||||
//if(mobileP==null && mobilePT==null && mobileF==null && mobileFT==null && mobileLU==null && mobileLUT==null){
|
||||
if(mobilePT==null && mobileFT==null && emergencycontacttel==null && remark==null && mobileFTSpouse==null){
|
||||
if(mobilePT==null && mobileFT==null && emergencycontacttel==null && remark==null && mobileFTSpouse==null)
|
||||
{
|
||||
return "SUCCESS";
|
||||
}else{
|
||||
if("Lessee".equals(CustomerName)){
|
||||
@ -173,17 +177,19 @@ public class CustomerInfoCheck {
|
||||
if(!id.equals(certId)){
|
||||
return "手机号跟承租人手机号重复!";
|
||||
}
|
||||
}else if(emergencycontacttel!=null){
|
||||
}
|
||||
else if(emergencycontacttel!=null){
|
||||
String id = emergencycontacttel.getAttribute("ID").getString();
|
||||
if(!id.equals(certId)){
|
||||
return "手机号跟紧急联系人1手机号重复!";
|
||||
}
|
||||
}else if(remark!=null){
|
||||
}
|
||||
else if(remark!=null){
|
||||
String id = remark.getAttribute("ID").getString();
|
||||
if(!id.equals(certId)){
|
||||
return "手机号跟紧急联系人2手机号重复!";
|
||||
}
|
||||
}
|
||||
}
|
||||
/*if(mobileLUT!=null){
|
||||
String id = mobileLUT.getAttribute("ID").getString();
|
||||
if(!id.equals(certId)){
|
||||
@ -269,6 +275,33 @@ public class CustomerInfoCheck {
|
||||
}
|
||||
return CustomerId;
|
||||
}
|
||||
|
||||
|
||||
public String checkAndCertId(JBOTransaction tx)throws Exception{
|
||||
String CustomerId="";
|
||||
Transaction Sqlca=null;
|
||||
Conn conn = new Conn(tx);
|
||||
String typr = "";
|
||||
try {
|
||||
Sqlca=Transaction.createTransaction(tx);
|
||||
String sql = "select \n" +
|
||||
"case when 18 < t.age+0 and t.age+0 < 65 then 'true' else 'false' end as zt\n" +
|
||||
"from (\n" +
|
||||
"select\n" +
|
||||
"\t(substring(now(),1,4)-substring('"+certId+"',7,4))-(substring('"+certId+"',11,4)-date_format(now(),'%m%d')>0) as age\n" +
|
||||
"from\n" +
|
||||
"\tdual\n" +
|
||||
") t";
|
||||
List<Map<String, String>> age = conn.executeQuery(sql);
|
||||
typr = age.get(0).get("zt");
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
return "ERROR";
|
||||
}
|
||||
return typr;
|
||||
}
|
||||
|
||||
|
||||
//检车身份证号是否重复
|
||||
public String checkCertidRepeat(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager cptManage = JBOFactory.getBizObjectManager(CUSTOMER_PERSON_TEMP.CLASS_NAME, tx);
|
||||
|
||||
@ -0,0 +1,124 @@
|
||||
package com.tenwa.lease.flow.project.businessapply;
|
||||
|
||||
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.ASResultSet;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_INFO_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class LBBusinessPrimary extends BaseBussiness {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String flowUnid = this.getAttribute("ObjectNo").toString();
|
||||
String custType = this.getAttribute("CustomerType").toString();
|
||||
BigDecimal exposureMoney = obtainExposureMoney(Sqlca, flowUnid);
|
||||
BigDecimal compareMoney = BigDecimal.ZERO;
|
||||
String routeType = this.getAttribute("routeType").toString();
|
||||
if ("40".equals(routeType)) {//个人小于等于60万,法人小于等于100万
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(600000) : BigDecimal.valueOf(1000000);
|
||||
} else if ("50".equals(routeType)) {//个人小于等于100万,法人小于等于200万
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(1000000) : BigDecimal.valueOf(2000000);
|
||||
} else if ("60".equals(routeType)) {//个人小于等于200万,法人小于等于300万
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(2000000) : BigDecimal.valueOf(3000000);
|
||||
} else if ("70".equals(routeType)) {//个人小于等于300万,法人小于等于500万
|
||||
compareMoney = "03".equals(custType) ? BigDecimal.valueOf(3000000) : BigDecimal.valueOf(5000000);
|
||||
} else if ("80".equals(routeType)) {//个人大于300万,法人大于500万
|
||||
return "true";
|
||||
}
|
||||
if (exposureMoney.compareTo(compareMoney) > -1) {
|
||||
return "false";
|
||||
} else {
|
||||
return "true";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 条件判断金额获取逻辑
|
||||
* 主借人或者共借人或担保人出现在其他合同(全条线业务)中作为主借或者共借人或担保人(重复合同取一次计算)
|
||||
* 全部合同的(已放款的贷款余额 + 待放款的贷款金额 + 已核准未放款贷款金额 - 保证金金额) + 本单申请的(贷款金额 - 保证金金额)+ 当前在信审节点中[流程状态不属于(0010,1020,1000,8000)]申请的(贷款金额 - 保证金金额)
|
||||
*/
|
||||
public static BigDecimal obtainExposureMoney(Transaction Sqlca,String flowUnid) throws Exception{
|
||||
BizObjectManager citManage = JBOFactory.getBizObjectManager(CUSTOMER_INFO_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObjectManager cftManage = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY_TEMP.CLASS_NAME, Sqlca);
|
||||
BizObjectManager lgutManage = JBOFactory.getBizObjectManager(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, Sqlca);
|
||||
//证件号列表
|
||||
ArrayList<String> certIdList = new ArrayList<>();
|
||||
//承租人
|
||||
BizObject cit = citManage.createQuery(" flowunid=:flowunid ").setParameter("flowunid",flowUnid ).getSingleResult(false);
|
||||
if (StringUtils.isNotBlank(cit.getAttribute("certid").getString())) certIdList.add(cit.getAttribute("certid").getString());
|
||||
//配偶
|
||||
BizObject cft = cftManage.createQuery(" flowunid=:flowunid ").setParameter("flowunid",flowUnid ).getSingleResult(false);
|
||||
if (cft!=null && StringUtils.isNotBlank(cft.getAttribute("certid").getString())) certIdList.add(cft.getAttribute("certid").getString());
|
||||
//担保人
|
||||
List<BizObject> lugList = lgutManage.createQuery(" flowunid=:flowunid ").setParameter("flowunid",flowUnid ).getResultList(false);
|
||||
if (CollectionUtils.isNotEmpty(lugList)) {
|
||||
lugList.forEach(item -> {
|
||||
try {
|
||||
if (StringUtils.isNotBlank(item.getAttribute("certid").getString())) {
|
||||
certIdList.add(item.getAttribute("CERTID").getString());
|
||||
}
|
||||
} catch (JBOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (certIdList.size() == 0) throw new RuntimeException("信审初审-路由判断证件信息为空!");
|
||||
String certIdJoin = certIdList.stream().collect(Collectors.joining("','", "'", "'"));
|
||||
|
||||
//所有合同金额
|
||||
StringBuilder allContractSql = new StringBuilder("select ifnull(sum(bc_money),0) as bcMoney,group_concat(proj_id separator '\\',\\'') as proj_ids from (select lpi.id as proj_id,CLEAN_LEASE_MONEY-ifnull(CAUTION_MONEY,0) as bc_money");
|
||||
allContractSql.append(" from lb_project_info lpi")
|
||||
.append(" left join lc_proj_condition lpc on lpc.PROJECT_ID = lpi.id")
|
||||
.append(" left join lb_contract_info lci on lci.PROJECT_ID = lpi.id")
|
||||
.append(" left join lb_union_lessee lul on lul.PROJECT_ID = lpi.id")
|
||||
.append(" left join customer_info ci on ci.customerid = lul.CUSTOMER_ID")
|
||||
.append(" left join CUSTOMER_FAMILY cf on cf.PROJECT_ID = lpi.id and cf.Partner_ = 'Y'")
|
||||
.append(" left join LB_GUARANTEE_UNIT lgu on lgu.PROJECT_ID = lpi.ID")
|
||||
.append(" where lpi.PROJECT_STATUS = '13'")
|
||||
.append(" and (ci.certid in ("+certIdJoin+") or cf.certid in ("+certIdJoin+") or lgu.CERTID in ("+certIdJoin+"))")
|
||||
.append(" group by lpi.id) t");
|
||||
ASResultSet rsAll = Sqlca.getASResultSet(new SqlObject(allContractSql.toString()));
|
||||
BigDecimal allContractMoney = BigDecimal.ZERO;
|
||||
String projIds = null;
|
||||
if (rsAll.next()) {
|
||||
allContractMoney = rsAll.getBigDecimal("bcMoney");
|
||||
projIds = rsAll.getString("proj_ids");
|
||||
}
|
||||
//项目下实收金额
|
||||
BigDecimal incomeMoney = BigDecimal.ZERO;
|
||||
if (StringUtils.isNotBlank(projIds)) {
|
||||
String incomeMoneySql = "select ifnull(sum(corpus),0) as all_income from lc_rent_income where PROJECT_ID in ('" + projIds + "')";
|
||||
ASResultSet incomeMoneyRs = Sqlca.getASResultSet(new SqlObject(incomeMoneySql));
|
||||
if (incomeMoneyRs.next()) {
|
||||
incomeMoney = incomeMoneyRs.getBigDecimal("all_income");
|
||||
}
|
||||
}
|
||||
//流程中金额获取 信审初审节点 (包含当前流程)
|
||||
String InFlowSql = "select ifnull(sum(_money),0) as inFlowMoney from ( select lcct.CLEAN_LEASE_MONEY - ifnull(lcct.CAUTION_MONEY, 0) as _money from flow_object fo join lc_calc_condition_temp lcct on fo.objectno = lcct.FLOWUNID left join customer_info_temp cit on cit.flowunid = fo.objectno left join customer_family_temp cft on cft.flowunid = fo.objectno and cft.Partner_ = 'Y' left join lb_guarantee_unit_temp lgut on lgut.FLOWUNID = fo.objectno where flowno = 'BusinessApplyFlow' and phaseno not in ('1000', '8000', '0010', '1020') and isnull(lcct.CLEAN_LEASE_MONEY) = 0"
|
||||
+ " and (cit.certid in ("+certIdJoin+") or cft.certid in ("+certIdJoin+") or lgut.CERTID in ("+certIdJoin+")) group by fo.objectno) t";
|
||||
ASResultSet rsIn = Sqlca.getASResultSet(new SqlObject(InFlowSql));
|
||||
BigDecimal inFlowMoney = BigDecimal.valueOf(0);
|
||||
if (rsIn.next()) {
|
||||
inFlowMoney = rsIn.getBigDecimal("inFlowMoney");
|
||||
}
|
||||
return allContractMoney.subtract(incomeMoney).add(inFlowMoney);
|
||||
}
|
||||
|
||||
}
|
||||
@ -26,9 +26,10 @@ public class CGBOnlineBankingTransactionRecordsPullJob implements Job {
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
||||
String yesterday = LocalDate.now().minusDays(1).format(GlobalConst.dateFormatterNone);
|
||||
String yesterday = LocalDate.now().format(GlobalConst.dateFormatterNone);
|
||||
try {
|
||||
cgbBankService.startProcess(CGBconfProperties.OWNACCNUMBER, yesterday);
|
||||
cgbBankService.startProcess(CGBconfProperties.OWNACCNUMBER, yesterday);
|
||||
|
||||
} catch (Throwable e) {
|
||||
log.error("定时任务拉取广发银行网银流水失败!拉取日期:" + yesterday + ",本方账号:" + CGBconfProperties.OWNACCNUMBER, e);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user