创建业务变更流程
This commit is contained in:
parent
245cbcac86
commit
683214963f
@ -147,16 +147,18 @@
|
||||
return;
|
||||
}
|
||||
}
|
||||
var contract_id= getItemValue(0,0,"contract_id");
|
||||
if(null!=contract_id&&contract_id!=""){
|
||||
contractid=contract_id;
|
||||
}
|
||||
setItemValue(0,0,"customerid",customerid);
|
||||
setItemValue(0,0,"project_id",projectid);
|
||||
if(contractid==""||contractid=="null"||contractid==null){
|
||||
setItemValue(0,0,"contract_id","");
|
||||
}else{
|
||||
setItemValue(0,0,"contract_id",contractid);
|
||||
if("BusinessChangeApply"!="<%=ApplyType%>"){//业务变更,不需要修改customerid、project_id、contract_id
|
||||
var contract_id= getItemValue(0,0,"contract_id");
|
||||
if(null!=contract_id&&contract_id!=""){
|
||||
contractid=contract_id;
|
||||
}
|
||||
setItemValue(0,0,"customerid",customerid);
|
||||
setItemValue(0,0,"project_id",projectid);
|
||||
if(contractid==""||contractid=="null"||contractid==null){
|
||||
setItemValue(0,0,"contract_id","");
|
||||
}else{
|
||||
setItemValue(0,0,"contract_id",contractid);
|
||||
}
|
||||
}
|
||||
}
|
||||
iV_all("0");
|
||||
|
||||
@ -51,7 +51,18 @@
|
||||
}
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBIdentityCheck/LBIdentityCheckResultTemp.jsp";
|
||||
var sparam="FlowUnid="+'<%=sFlowUnid%>';
|
||||
var certids=getItemValueArray(0,"certId");
|
||||
var fullNames=getItemValueArray(0,"fullName");
|
||||
var certids=getItemValueArray(0,"certId");
|
||||
if(certids.length==0){
|
||||
alert("请先选择数据!!!");
|
||||
return;
|
||||
}else if(certids.length>1){
|
||||
alert("每次只能查询一条数据,请重新选择!");
|
||||
reloadSelf();
|
||||
return;
|
||||
}
|
||||
var sparam="FlowUnid="+'<%=sFlowUnid%>'+"&fullName="+fullNames[0]+"&CertId="+certids[0];
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -6,12 +6,14 @@
|
||||
History Log:
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String fullName = CurPage.getParameter("fullName");//Á÷³Ì±àºÅ
|
||||
String CertId = CurPage.getParameter("CertId");//Á÷³Ì±àºÅ
|
||||
ASObjectModel doTemp = new ASObjectModel("LC_IDENTITY_CHECK_RESULT_TEMP");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||||
dwTemp.genHTMLObjectWindow(sFlowUnid+","+fullName+","+CertId);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
|
||||
@ -7,16 +7,18 @@
|
||||
*/
|
||||
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
|
||||
String CertId = CurPage.getParameter("CertId");//查询条件编号
|
||||
String name = CurPage.getParameter("name");//查询条件编号
|
||||
ASObjectModel doTemp = new ASObjectModel("LbCarCreditRiskShow");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
String num = "";
|
||||
if(CertId == null){
|
||||
num = sFlowUnid;
|
||||
}else{
|
||||
num = sFlowUnid+","+CertId;
|
||||
String num = sFlowUnid;
|
||||
if(CertId != null){
|
||||
num = sFlowUnid+","+CertId;
|
||||
}
|
||||
if(name!=null){
|
||||
num = sFlowUnid+","+CertId+","+name;
|
||||
}
|
||||
dwTemp.genHTMLObjectWindow(num);
|
||||
|
||||
|
||||
@ -46,6 +46,7 @@
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBPreLoanAntiFraud/LBCarCreditRiskShow.jsp";
|
||||
//var certid = getItemValue(0,getRow(0),"CERTID");
|
||||
var certids=getItemValueArray(0,"certid");
|
||||
var names=getItemValueArray(0,"NAME");
|
||||
var ids=getItemValueArray(0,"ID").toString();
|
||||
if(certids.length==0){
|
||||
alert("请先选择数据!!!");
|
||||
@ -61,7 +62,7 @@
|
||||
return;
|
||||
}
|
||||
}
|
||||
var sparam="FlowUnid="+"<%=sFlowUnid%>"+"&CertId="+certids[0];
|
||||
var sparam="FlowUnid="+"<%=sFlowUnid%>"+"&CertId="+certids[0]+"&name="+names[0];
|
||||
AsControl.OpenView(sUrl,sparam,"_self","");
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.MultiSelect = true; //添加多选框
|
||||
dwTemp.genHTMLObjectWindow(ProjectId);
|
||||
dwTemp.genHTMLObjectWindow(ProjectId+","+flowunid);
|
||||
|
||||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||||
String sButtons[][] = {
|
||||
|
||||
@ -16,8 +16,13 @@
|
||||
var product_id=sReturn[1];
|
||||
var project_id = sReturn[2];
|
||||
var project_name = sReturn[3];
|
||||
var CustomerType = sReturn[4];
|
||||
var carAttributes = sReturn[5];
|
||||
var leasehold = sReturn[6];
|
||||
var operationType = sReturn[7];
|
||||
var certtype = sReturn[8];
|
||||
var sParams = "ApplyType=<%=sApplyType%>,CurUserID=<%=CurUser.getUserID()%>";
|
||||
sParams =sParams+",ProjectId="+id+",ProductId="+product_id+",FlowKey="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
|
||||
sParams =sParams+",certtype="+certtype+",customertype="+CustomerType+",carAttributes="+carAttributes+",leasform="+leasehold+",operationType="+operationType+",ProjectId="+id+",ProductId="+product_id+",FlowKey="+project_id+",ProjectName="+project_name+",ApplyType=<%=sApplyType%>";
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.flow.action.comm.BaseFlowStartAction","initFLow",sParams);
|
||||
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_") return;
|
||||
var sReturnInfos=sReturnInfo.split("@");
|
||||
|
||||
@ -63,6 +63,7 @@
|
||||
$(".info_mid_line").css("width","50%");
|
||||
})
|
||||
function save(){
|
||||
|
||||
if(!checkinputName()){
|
||||
return;
|
||||
}
|
||||
@ -74,22 +75,23 @@
|
||||
var inputName = getItemValue(0,getRow(),"inputName");
|
||||
var inputTel = getItemValue(0,getRow(),"inputTel");
|
||||
var customerType = "<%=custype%>";
|
||||
var customerT = "<%=customertype%>";
|
||||
var projectNo=getItemValue(0,getRow(),"PROJECT_NO");
|
||||
if(projectNo.length<=0){
|
||||
alert("请填写业务申请编号!!!");
|
||||
return;
|
||||
}
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkProjectNo","projectNo="+projectNo+",id="+getItemValue(0,getRow(),"ID"));
|
||||
if("error"==sReturnInfo){
|
||||
/* if("error"==sReturnInfo){
|
||||
alert("业务申请编号已被占用,请重新填写!!!");
|
||||
return;
|
||||
}
|
||||
if(customerType=="01"){//法人
|
||||
} */
|
||||
if(customerType=="01"||customerT=="01"){//法人
|
||||
//as_save("myiframe0","frame_list.window.saveCompany();");
|
||||
frame_list.window.saveCompany(inputName,inputTel,projectNo);
|
||||
//as_save(0);
|
||||
}
|
||||
if(customerType=="03"){//自然人
|
||||
if(customerType=="03"||customerT=="03"){//自然人
|
||||
frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo);
|
||||
//as_save("myiframe0","frame_list.window.as_save(0);");
|
||||
}
|
||||
|
||||
@ -2468,6 +2468,7 @@
|
||||
<attributes>
|
||||
<attribute name="ID" label="标识编号" type="STRING" length="32"/>
|
||||
<attribute name="flowunid" label="流程编号" type="STRING" length="100"/>
|
||||
<attribute name="fullname" label="客户名称" type="STRING" length="200"/>
|
||||
<attribute name="entryid" label="进件id" type="STRING" length="100"/>
|
||||
<attribute name="score" label="风险分数" type="STRING" length="100"/>
|
||||
<attribute name="risk_name" label="风险名称" type="STRING" length="100"/>
|
||||
@ -2482,6 +2483,7 @@
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
|
||||
<attribute name="projectid" label="项目编号" TYPE="STRING" LENGTH="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -2494,8 +2496,9 @@
|
||||
<class name="LB_CAR_CREDIT_RISKITEM" label="个人风险详情正式表" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="标识编号" type="STRING" length="32"/>
|
||||
<attribute name="fullname" label="客户名称" type="STRING" length="200"/>
|
||||
<attribute name="entryid" label="进件编号" type="STRING" length="100"/>
|
||||
<attribute name="project_id" label="项目编号" type="STRING" length="100"/>
|
||||
<attribute name="projectid" label="项目编号" type="STRING" length="100"/>
|
||||
<attribute name="score" label="风险细节分数" type="STRING" length="100"/>
|
||||
<attribute name="risk_name" label="风险名称" type="STRING" length="100"/>
|
||||
<attribute name="risk_detail" label="风险详情" type="STRING" length="100"/>
|
||||
@ -2721,6 +2724,7 @@
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
|
||||
<attribute NAME="projectid" label="项目编号" TYPE="STRING" LENGTH="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -2752,6 +2756,7 @@
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="100"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="100"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="100"/>
|
||||
<attribute NAME="projectid" label="项目编号" TYPE="STRING" LENGTH="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -4070,7 +4070,8 @@
|
||||
<attribute name="inputtime" label="登记部门" type="STRING" length="200"/>
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="200"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="200"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="200"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="200"/>
|
||||
<attribute name="projectid" label="项目编号" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -4094,7 +4095,8 @@
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="200"/>
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="200"/>
|
||||
<attribute name="updateorgid" label="更新部门" type="STRING" length="200"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="200"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="200"/>
|
||||
<attribute name="projectid" label="项目编号" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -4337,7 +4339,7 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="LB_TELONLINE" label="手机号在线时长" keyAttributes="ID">
|
||||
<class name="LB_TELONLINE" label="手机号在线时长" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="ID" type="STRING" length="40"/>
|
||||
<attribute name="online_id" label="调用返回id" type="STRING" length="40"/>
|
||||
@ -4366,6 +4368,38 @@
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
|
||||
<class name="LB_TELONLINE_TEMP" label="手机号在线时长临时表" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="ID" type="STRING" length="40"/>
|
||||
<attribute name="online_id" label="调用返回id" type="STRING" length="40"/>
|
||||
<attribute name="success" label="是否调用成功" type="STRING" length="10"/>
|
||||
<attribute name="reason_code" label="调用失败时的错误码" type="STRING" length="20"/>
|
||||
<attribute name="reason_desc" label="错误详情描述" type="STRING" length="500"/>
|
||||
<attribute name="result_desc" label="结果详情(JSONOBJECT)" type="STRING" length="2000"/>
|
||||
<attribute name="nextService" label="下一步" type="STRING" length="20"/>
|
||||
<attribute name="supplementInfo" label="补充详情" type="STRING" length="2000"/>
|
||||
<attribute name="mobile_online_time_info" label="手机号在网时长信息" type="STRING" length="20"/>
|
||||
<attribute name="mobile_online_time_consistence" label="手机号在网时长调用结果" type="STRING" length="10"/>
|
||||
<attribute name="PERSON_ID" label="关联客户编号" type="STRING" length="40"/>
|
||||
<attribute name="PROJECT_ID" label="关联客户编号" type="STRING" length="40"/>
|
||||
<attribute name="USER_NAME" label="姓名" type="STRING" length="100"/>
|
||||
<attribute name="TELEPHONE" label="手机号" type="STRING" length="20"/>
|
||||
<attribute name="INPUTUSERID" label="INPUTUSERID" type="STRING" length="32"/>
|
||||
<attribute name="INPUTORGID" label="INPUTORGID" type="STRING" length="32"/>
|
||||
<attribute name="INPUTTIME" label="INPUTTIME" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEUSERID" label="UPDATEUSERID" type="STRING" length="32"/>
|
||||
<attribute name="UPDATEORGID" label="UPDATEORGID" type="STRING" length="32"/>
|
||||
<attribute name="UPDATETIME" label="UPDATETIME" type="STRING" length="32"/>
|
||||
<attribute name="FLOWUNID" label="流程编号" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="lb_telonline_temp" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VI_NORMALEND_CONTRACT" label="" keyAttributes="">
|
||||
<attributes>
|
||||
|
||||
@ -124,7 +124,7 @@ public class CreditBodyGuardAction {
|
||||
}
|
||||
//遍历personList,将执行过信贷校验的放入alreadypersonList,没执行过的就放入failedpersonList
|
||||
BizObject queryListObject = bom3
|
||||
.createQuery("select FINAL_DECISION from O where certid = '"+personList.get(v).getAttribute("certId")+"' AND flowunid=:FLOWUNID")
|
||||
.createQuery("select FINAL_DECISION from O where certid = '"+personList.get(v).getAttribute("certId")+"' and fullname='"+personList.get(v).getAttribute("fullName")+"' AND flowunid=:FLOWUNID")
|
||||
.setParameter("FLOWUNID",flowunid).getSingleResult(false);
|
||||
if(queryListObject != null){
|
||||
alreadypersonList.add(queryListObject);
|
||||
@ -140,7 +140,7 @@ public class CreditBodyGuardAction {
|
||||
}else{
|
||||
//遍历failedpersonList并查询Info表,二次校验查看在此次流程阶段是否已经执行信贷校验
|
||||
for(int m=0;m<failedpersonList.size();m++){
|
||||
BizObject queryObject1 = bom3.createQuery("select O.FINAL_DECISION from O where O.CERTID ='"+failedpersonList.get(m).getAttribute("certId")+"' AND O.flowunid=:FLOWUNID")
|
||||
BizObject queryObject1 = bom3.createQuery("select O.FINAL_DECISION from O where O.CERTID ='"+failedpersonList.get(m).getAttribute("certId")+"' and fullname='"+failedpersonList.get(m).getAttribute("fullName")+"' AND O.flowunid=:FLOWUNID")
|
||||
.setParameter("FLOWUNID", flowunid)
|
||||
.getSingleResult(false);
|
||||
//查询如果为空则插入
|
||||
@ -202,6 +202,8 @@ public class CreditBodyGuardAction {
|
||||
BizObject detailObject = bom2.newObject();
|
||||
//流程编号
|
||||
detailObject.setAttributeValue("flowunid", flowunid);
|
||||
//Ìí¼Ó¿Í»§Ãû³Æ
|
||||
detailObject.setAttributeValue("FULLNAME",failedpersonList.get(m).getAttribute("fullName").getString());
|
||||
//进件ID
|
||||
detailObject.setAttributeValue("entryid",ResponseResult.getId());
|
||||
//风险细节分数
|
||||
|
||||
@ -0,0 +1,54 @@
|
||||
package com.tenwa.lease.flow.project.commbusiness;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PERSONAL_INFO;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PERSONAL_INFO_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_HIS;
|
||||
import jbo.com.tenwa.lease.comm.LB_TELONLINE;
|
||||
import jbo.com.tenwa.lease.comm.LB_TELONLINE_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LC_IDENTITY_CHECK_RESULT;
|
||||
import jbo.com.tenwa.lease.comm.LC_IDENTITY_CHECK_RESULT_TEMP;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.date.DateAssistant;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
|
||||
|
||||
public class LBIdentityCheckFormalToTempInformationBusiness extends BaseBussiness {
|
||||
|
||||
/**
|
||||
* 身份校验信息从正式表到临时表
|
||||
*/
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
Map<String,String>fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("projectid",this.getAttribute("ProjectId").toString());
|
||||
Map<String,String>otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
//身份证校验表从临时到正式表
|
||||
DataOperatorUtil.copyJBOSet(LC_IDENTITY_CHECK_RESULT.CLASS_NAME, fromCondtion,LC_IDENTITY_CHECK_RESULT_TEMP.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(LB_CAR_CREDIT_PERSONAL_INFO.CLASS_NAME, fromCondtion,LB_CAR_CREDIT_PERSONAL_INFO_TEMP.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(LB_CAR_CREDIT_RISKITEM.CLASS_NAME, fromCondtion,LB_CAR_CREDIT_RISKITEM_TEMP.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
|
||||
DataOperatorUtil.copyJBOSet(LB_TELONLINE.CLASS_NAME, fromCondtion,LB_TELONLINE_TEMP.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.tenwa.lease.flow.project.commbusiness;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PERSONAL_INFO;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_PERSONAL_INFO_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM;
|
||||
import jbo.app.tenwa.customer.LB_CAR_CREDIT_RISKITEM_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_HIS;
|
||||
import jbo.com.tenwa.lease.comm.LB_TELONLINE;
|
||||
import jbo.com.tenwa.lease.comm.LB_TELONLINE_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.LC_IDENTITY_CHECK_RESULT;
|
||||
import jbo.com.tenwa.lease.comm.LC_IDENTITY_CHECK_RESULT_TEMP;
|
||||
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.date.DateAssistant;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService;
|
||||
import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum;
|
||||
import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp;
|
||||
|
||||
public class LBIdentityCheckTempToFormalInformationBusiness extends BaseBussiness {
|
||||
|
||||
/**
|
||||
* 身份校验信息从临时表到正式表
|
||||
*/
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
LeaseFlowBaseService service=new LeaseFlowBaseServiceImp();
|
||||
Map<String,String>fromCondtion=new HashMap<String,String>();
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
Map<String,String>otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("projectid",this.getAttribute("ProjectId").toString());
|
||||
//身份证校验表从临时到正式表
|
||||
DataOperatorUtil.copyJBOSet(LC_IDENTITY_CHECK_RESULT_TEMP.CLASS_NAME, fromCondtion,LC_IDENTITY_CHECK_RESULT.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(LB_CAR_CREDIT_PERSONAL_INFO_TEMP.CLASS_NAME, fromCondtion,LB_CAR_CREDIT_PERSONAL_INFO.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(LB_CAR_CREDIT_RISKITEM_TEMP.CLASS_NAME, fromCondtion,LB_CAR_CREDIT_RISKITEM.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
otherProperty.clear();
|
||||
otherProperty.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
|
||||
DataOperatorUtil.copyJBOSet(LB_TELONLINE_TEMP.CLASS_NAME, fromCondtion,LB_TELONLINE.CLASS_NAME, null, otherProperty,null, Sqlca);
|
||||
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
package com.tenwa.lease.flow.project.commbusiness;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ADDRESS;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ADDRESS_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_CERT;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_CERT_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_COMPANY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_INFO;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_INFO_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_TYPE;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_TYPE_TEMP;
|
||||
import jbo.com.tenwa.lease.comm.VI_CUST_TENANT;
|
||||
import jbo.com.tenwa.lease.comm.CUST_PERSON_HIS;
|
||||
import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE;
|
||||
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.baseBussion.BaseBussiness;
|
||||
import com.tenwa.lease.flow.project.businessapply.CustomerCompare;
|
||||
|
||||
public class LBProCustomerRelaTempToFormalBusiness extends BaseBussiness {
|
||||
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
Map<String,String>fromCondtion=new HashMap<String, String>();
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
List<BizObject> lults= DataOperatorUtil.getSetJBO(LB_UNION_LESSEE_TEMP.CLASS_NAME, fromCondtion, Sqlca);
|
||||
Map<String,String>toCondtion=new HashMap<String, String>();
|
||||
CustomerCompare cc=new CustomerCompare();
|
||||
Map<String,String>otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("customerid", lults.size()>0?lults.get(0).getAttribute("customer_id").toString():UUID.randomUUID().toString().replaceAll("-", ""));
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_INFO_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_INFO.CLASS_NAME, null,otherProperty,cc, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_TYPE_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_TYPE.CLASS_NAME, null,otherProperty,cc, Sqlca);
|
||||
for(BizObject union:lults){
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("customerid", union.getAttribute("customer_id").getString());
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
toCondtion.clear();
|
||||
toCondtion.put("customerid", union.getAttribute("customer_id").getString());
|
||||
if("03".equals(this.getAttribute("customertype").toString())){
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_PERSON.CLASS_NAME, toCondtion, null, cc, Sqlca);
|
||||
}else{
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_COMPANY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY.CLASS_NAME, toCondtion, null, cc, Sqlca);
|
||||
}
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_CERT.CLASS_NAME, toCondtion, null, cc, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY.CLASS_NAME, toCondtion, null, cc, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS.CLASS_NAME, toCondtion, null, cc, Sqlca);
|
||||
}
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
}
|
||||
@ -8,7 +8,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.LB_TELONLINE;
|
||||
import jbo.com.tenwa.lease.comm.LB_TELONLINE_TEMP;
|
||||
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.NameValuePair;
|
||||
@ -141,7 +141,7 @@ public class OnlineClient {
|
||||
Object reason_code = mapTypes.get("reason_code");
|
||||
Object reason_desc = mapTypes.get("reason_desc");
|
||||
//更新需要重发的数据
|
||||
JBOFactory.getBizObjectManager(LB_TELONLINE.CLASS_NAME, tx).createQuery("update O set success='"+success+"',result_desc='"+result_desc+"',"
|
||||
JBOFactory.getBizObjectManager(LB_TELONLINE_TEMP.CLASS_NAME, tx).createQuery("update O set success='"+success+"',result_desc='"+result_desc+"',"
|
||||
+ "mobile_online_time_info='"+mobile_online_time_info+"',mobile_online_time_consistence='"+mobile_online_time_consistence+"',"
|
||||
+ "nextService='"+nextService+"',reason_code='"+reason_code+"',reason_desc='"+reason_desc+"',UPDATEUSERID=:userid,UPDATEORGID=:orgid,UPDATETIME=:uptime where online_id=:id")
|
||||
.setParameter("id", onLineId).setParameter("userid",userId).setParameter("orgid",user.getOrgID()).setParameter("uptime",StringFunction.getTodayNow())
|
||||
@ -150,7 +150,7 @@ public class OnlineClient {
|
||||
Object reason_code = mapTypes.get("reason_code");
|
||||
Object reason_desc = mapTypes.get("reason_desc");
|
||||
//更新需要重发的数据
|
||||
JBOFactory.getBizObjectManager(LB_TELONLINE.CLASS_NAME, tx).createQuery("update O set success='"+success+"'"
|
||||
JBOFactory.getBizObjectManager(LB_TELONLINE_TEMP.CLASS_NAME, tx).createQuery("update O set success='"+success+"'"
|
||||
+ ",reason_code='"+reason_code+"',reason_desc='"+reason_desc+"',UPDATEUSERID=:userid,UPDATEORGID=:orgid,UPDATETIME=:uptime where online_id=:id")
|
||||
.setParameter("id", onLineId).setParameter("userid",userId).setParameter("orgid",user.getOrgID()).setParameter("uptime",StringFunction.getTodayNow())
|
||||
.executeUpdate();
|
||||
@ -181,43 +181,45 @@ public class OnlineClient {
|
||||
String certid = ds.get(i).get("certid");
|
||||
String name = ds.get(i).get("name");
|
||||
String phone = ds.get(i).get("phone");
|
||||
BizObjectManager ltbom = JBOFactory.getBizObjectManager(LB_TELONLINE.CLASS_NAME, tx);
|
||||
BizObject lton = ltbom.createQuery("PERSON_ID=:PERSON_ID and PROJECT_ID=:projectid").setParameter(LB_TELONLINE.PERSON_ID, certid).setParameter("projectid", projectId).getSingleResult(true);
|
||||
BizObjectManager ltbom = JBOFactory.getBizObjectManager(LB_TELONLINE_TEMP.CLASS_NAME, tx);
|
||||
BizObject lton = ltbom.createQuery("PERSON_ID=:PERSON_ID and PROJECT_ID=:projectid and USER_NAME=:USER_NAME and TELEPHONE=:TELEPHONE").setParameter(LB_TELONLINE_TEMP.PERSON_ID, certid).setParameter("projectid", projectId)
|
||||
.setParameter(LB_TELONLINE_TEMP.USER_NAME, name).setParameter(LB_TELONLINE_TEMP.TELEPHONE, phone).getSingleResult(true);
|
||||
Map mapTypes =null;
|
||||
//1.不存在则新增
|
||||
if(lton==null){
|
||||
String jsonStr = postOnLine(phone,"","");
|
||||
mapTypes = JSON.parseObject(jsonStr);
|
||||
lton = ltbom.newObject();
|
||||
lton.setAttributeValue(LB_TELONLINE.PROJECT_ID, projectId);
|
||||
lton.setAttributeValue(LB_TELONLINE.PERSON_ID, certid);
|
||||
lton.setAttributeValue(LB_TELONLINE.USER_NAME, name);
|
||||
lton.setAttributeValue(LB_TELONLINE.TELEPHONE, phone);
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.PROJECT_ID, projectId);
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.PERSON_ID, certid);
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.USER_NAME, name);
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.TELEPHONE, phone);
|
||||
}else{
|
||||
//2.存在则重发
|
||||
String jsonStr = postOnLine(phone,lton.getAttribute(LB_TELONLINE.nextService).getString(),lton.getAttribute(LB_TELONLINE.online_id).getString());
|
||||
String jsonStr = postOnLine(phone,lton.getAttribute(LB_TELONLINE_TEMP.nextService).getString(),lton.getAttribute(LB_TELONLINE_TEMP.online_id).getString());
|
||||
mapTypes = JSON.parseObject(jsonStr);
|
||||
}
|
||||
//2.1并根据响应回来的结果更新数据
|
||||
lton.setAttributeValue(LB_TELONLINE.success, mapTypes.get("success"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.success, mapTypes.get("success"));
|
||||
if("true".equals(mapTypes.get("success").toString())){
|
||||
lton.setAttributeValue(LB_TELONLINE.online_id, mapTypes.get("id"));
|
||||
lton.setAttributeValue(LB_TELONLINE.result_desc, mapTypes.get("result_desc"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.online_id, mapTypes.get("id"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.result_desc, mapTypes.get("result_desc"));
|
||||
String result_desc = mapTypes.get("result_desc").toString();
|
||||
Map MobileDuration = JSON.parseObject(JSON.parseObject(JSON.parseObject(result_desc).get("AUTHENTICATION_INFOQUERY").toString()).get("MobileDuration").toString());
|
||||
if(MobileDuration.get("error_info")==null){
|
||||
lton.setAttributeValue(LB_TELONLINE.mobile_online_time_info, MobileDuration.get("mobile_online_time_info"));
|
||||
lton.setAttributeValue(LB_TELONLINE.mobile_online_time_consistence, MobileDuration.get("mobile_online_time_consistence"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.mobile_online_time_info, MobileDuration.get("mobile_online_time_info"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.mobile_online_time_consistence, MobileDuration.get("mobile_online_time_consistence"));
|
||||
}
|
||||
//失败特有的参数
|
||||
lton.setAttributeValue(LB_TELONLINE.nextService, mapTypes.get("nextService"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.nextService, mapTypes.get("nextService"));
|
||||
}
|
||||
lton.setAttributeValue(LB_TELONLINE.reason_code, mapTypes.get("reason_code"));
|
||||
lton.setAttributeValue(LB_TELONLINE.reason_desc, mapTypes.get("reason_desc"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.reason_code, mapTypes.get("reason_code"));
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.reason_desc, mapTypes.get("reason_desc"));
|
||||
ASUser user = new ASUser(userId);
|
||||
lton.setAttributeValue(LB_TELONLINE.INPUTUSERID, userId);
|
||||
lton.setAttributeValue(LB_TELONLINE.INPUTORGID, user.getOrgID());
|
||||
lton.setAttributeValue(LB_TELONLINE.INPUTTIME, StringFunction.getTodayNow());
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.INPUTUSERID, userId);
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.INPUTORGID, user.getOrgID());
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.INPUTTIME, StringFunction.getTodayNow());
|
||||
lton.setAttributeValue(LB_TELONLINE_TEMP.FLOWUNID, flowunid);
|
||||
ltbom.saveObject(lton);
|
||||
}
|
||||
tx.commit();
|
||||
|
||||
@ -1,20 +1,14 @@
|
||||
package com.tenwa.makeContract.impl;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.activation.DataHandler;
|
||||
import javax.activation.DataSource;
|
||||
import javax.activation.FileDataSource;
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_FUND_INCOME;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
|
||||
import jbo.com.tenwa.entity.comm.flow.FLOW_WORK_FLAG;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_STATUS;
|
||||
@ -39,9 +33,8 @@ import com.tenwa.util.SerialNumberUtil;
|
||||
|
||||
public class McontractServiceImpl implements McontractService{
|
||||
|
||||
MakeOneCodeAndContractModel modc = new MakeOneCodeAndContractModel();
|
||||
// MakeOneCodeAndContractModel modc = new MakeOneCodeAndContractModel();
|
||||
Configure CurConfig = Configure.getInstance();
|
||||
@Override
|
||||
public ReturnMessage Mcontract(String projectNo,String carNumber, String carNo,String Mstatus){
|
||||
ReturnMessage rMage = new ReturnMessage();
|
||||
if(projectNo==null||projectNo==""||projectNo.length()<=0){
|
||||
@ -196,6 +189,7 @@ public class McontractServiceImpl implements McontractService{
|
||||
}
|
||||
|
||||
public ReturnMessage changeContract(String projectNo,String carNumber, String carNo){
|
||||
MakeOneCodeAndContractModel modc = new MakeOneCodeAndContractModel();
|
||||
ReturnMessage rMage = new ReturnMessage();
|
||||
String tempid="";//Ä£°åid
|
||||
String sTemplateParam="{'CurUserId':'8006U00000003','CurOrgId':'8006003'";//Éú³ÉwordÐèÒªµÄ²ÎÊý
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user