yc征信授权电子签页面修改为批量-逻辑调整

This commit is contained in:
zhanglei 2021-07-20 16:11:12 +08:00
parent 2e90cbf06d
commit dd84040679
5 changed files with 504 additions and 10 deletions

View File

@ -0,0 +1,423 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%><%
/*
Author: undefined 2020-04-30
Content:
History Log:
*/
String sFlowUnid = CurPage.getParameter("FlowUnid");//流程编号
String SubjectId = CurPage.getParameter("SubjectId");//主体编号
String userId = CurUser.getUserID();
String projectNo = Sqlca.getString("select PROJECT_NO from lb_project_info_temp where FLOWUNID='"+sFlowUnid+"'");
System.out.println("征信授权书 projectNo=" + projectNo);
String flowno = Sqlca.getString("select flowno from flow_object where objectno='"+sFlowUnid+"'");
System.out.println("征信授权书 flowno=" + flowno);
String flag = "false";
String sTempletNo= "creditAuthList";
String projectId = null;
if("BusinessApplyFlow".equals(flowno)){//业务申请BusinessApplyFlow
System.out.println("征信授权书 业务申请 flowno=" + flowno);
}else {
System.out.println("征信授权书 非业务申请 flowno=" + flowno);
if(null == projectNo || "".equals(projectNo)){
projectId = Sqlca.getString("select proj_id from flow_bussiness_object where flow_unid='"+sFlowUnid+"'");
}else {
projectId = Sqlca.getString("select ID from lb_project_info where PROJECT_NO='"+projectNo+"'");
}
System.out.println("征信授权书 非业务申请 projectId=" + projectId);
sTempletNo= "creditAuthListLoan";
}
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.MultiSelect=true; //多选
dwTemp.setPageSize(10);
if("BusinessApplyFlow".equals(flowno)){//业务申请BusinessApplyFlow
dwTemp.genHTMLObjectWindow(sFlowUnid);
System.out.println("征信授权书 业务申请 flowno=" + flowno);
dwTemp.MultiSelect=true; //多选
if(CurUser.hasRole("401")){
flag = "true";
}
}else {
dwTemp.genHTMLObjectWindow(projectId);
}
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
{flag,"All","Button","生成征信授权书","生成征信授权书","createCreditPdf()","","","","btn_icon_generate",""},
{flag,"All","Button","发起电子签约","发起电子签约","signOnLine()","","","","btn_icon_generate",""},
{flag,"All","Button","查看签约状态","查看签约状态","getStatus()","","","","btn_icon_detail",""},
{flag,"All","Button","重发签约短信","重发签约短信","sendMessageAgain()","","","","btn_icon_refresh",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
$(document).ready(function(){
for(var i=0;i<getRowCount(0);i++){
$("#DIV_Data_myiframe0_"+i+"_4").css("color","Blue");
}
})
function showPDF(filePath,name){
var sUrl="/Ample/Doc/showPDF.jsp";
var param="filePath="+filePath;
AsControl.OpenPage(sUrl,param,"",name);
}
function downloadFile(filePath,fileName){
if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");
var src = sWebRootPath+"/servlet/view/docDownloadServletByPath?CompClientID=<%=sCompClientID%>&filePath="+encodeURIComponent(encodeURIComponent(filePath))+"&fileName="+encodeURIComponent(encodeURIComponent(fileName));
window.open(src, "downloadTemplate");
}
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
var filelist=getObj(0,i,"fileList").innerHTML;
var obj=eval('('+filelist+')');
var html="";
for(var file in obj){
html+='<a onclick=downloadFile(\''+obj[file]['filepath']+'\',\''+obj[file]['filename']+'\')><font color="blue">'+obj[file]['filename']+'</font></a>';
html+='【上传时间:'+obj[file]['inputtime']+'】';
// if(obj[file]['pdf']=="true"){
// html+='<a class="btn_icon btn_icon_search" onclick="showPDF(\''+obj[file]['filepath']+'\',\''+obj[file]['filename']+'\');">&nbsp;</a>';
// }
html+='</br>';
}
getObj(0,i,"fileList").innerHTML=html;
getObj(0,i,"fileList").style["white-space"]="pre-wrap";
}
}
<%--//在加载完表格后调用--%>
<%--function afterSearch(){--%>
<%--for(var i=0;i<getRowCount(0);i++){--%>
<%--var html="";--%>
<%--html+='<a onclick=downloadFile(\''+getItemValue(0,i,"ID")+'\')><font color="blue">'+"下载&nbsp&nbsp&nbsp&nbsp&nbsp"+'</font></a>';--%>
<%--getObj(0,i,"FILENAME").innerHTML=html+'<font >'+getObj(0,i,"FILENAME").innerHTML+'</font>';--%>
<%--}--%>
<%--}--%>
<%--function downloadFile(id){--%>
<%--if(typeof(id)==undefined || id=='') {--%>
<%--alert("请先生成征信授权书再下载!");--%>
<%--return;--%>
<%--}--%>
<%--if(!frames["downloadTemplate"]) $("<iframe name='downloadTemplate' style='display:none;'></iframe>").appendTo("body");--%>
<%--window.open(sWebRootPath+"/servlet/view/docDownloadServlet?CompClientID=<%=sCompClientID%>&sqlString=save@"+id, "downloadTemplate");--%>
<%--}--%>
function createCreditPdf(){
var fullNames=getItemValueArray(0,"fullName");
var certIds=getItemValueArray(0,"certId");
var phones=getItemValueArray(0,"phone");
var creditauths=getItemValueArray(0,"creditauth");
var credittypes=getItemValueArray(0,"credittype");
var relations=getItemValueArray(0,"relation");
var signTypes=getItemValueArray(0,"sign_type");
var sendProcessList=getItemValueArray(0,"sendprocess");
var projectNo = "<%=projectNo%>";
var flowunid = "<%=sFlowUnid%>";
if(typeof(relations)=="undefined"||relations==null||relations==""){alert("请选择");return;}
var number = 0;
for(var i=0; i < relations.length;i++) {
var signType = signTypes[i];
var sendProcess = sendProcessList[i];
//什么情况下,可以生成合同文件,
if("SIGNING" == signType || "COMPLETE" == signType || "1" == sendProcess){
alert(relation+": " + fullName + " 对应签约状态和发送状态不符合生成征信授权pdf文件要求。");
return;
}
}
for(var i=0; i < relations.length;i++) {
var fullName = fullNames[i];
var certId = certIds[i];
var phone = phones[i];
var creditauth = creditauths[i];
var credittype = credittypes[i];
var relation = relations[i];
var objectType = credittype;
var param = {};
var tempParam = {};
var sparam = "";
if ("担保人" == relation) {
var checkCreditAuth = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthDeleteAction", "checkCreditAuth", "flowUnid=" + flowunid);
if ("" == checkCreditAuth || "Ent02" == checkCreditAuth) {
if(1==relations.length){
alert("当前担保人类型不支持线上签约!");
return;
}else {
number++;
continue;
}
}
}
//模板号 征信授权书_安鹏
var tempId = "65b12cbfd98611eb970e00163e0ad612";
/**creditauth
*
征信授权书_安鹏 99001
征信授权书_邮储 99002
借款服务确认书_邮储99003
*/
if ("申请人" == relation && "征信授权书_邮储" == creditauth) {
tempId = "65bd277ad98611eb970e00163e0ad612";//申请人的情况下征信授权书_邮储
} else if ("申请人" == relation && "借款服务确认书_邮储" == creditauth) {
tempId = "134f3d88e2f811eb970e00163e0ad612";//申请人的情况下借款服务确认书_邮储
}
//生成文件关联关系
param["templateNo"] = tempId;//申请人多个模板时,需修改模板信息
tempParam["OBJECTTYPE"] = objectType;//申请人多个模板时,需修改模板信息
tempParam["insurance_no"] = flowunid;
tempParam["contract_no"] = certId;
tempParam["contract_id"] = "<%=projectNo%>";
tempParam["project_id"] = "<%=projectNo%>";
tempParam["PROJ_ID"] = "<%=projectNo%>";//注意变量名,不要改
tempParam["CONTRACT_ID"] = "<%=projectNo%>";//注意变量名,不要改
tempParam["CUST_ID"] = certId;//注意变量名,不要改
tempParam["PLAN_NUMBER"] = phone;//注意变量名,不要改
tempParam["customername"] = fullName;
//生成模板固定参数
tempParam["CurUserId"] = "<%=CurUser.getUserID()%>";
tempParam["CurOrgId"] = "<%=CurUser.getOrgID()%>";
tempParam["fileSavePath"] = "<%=CurConfig.getConfigure("FileSavePath")%>";
/**
征信授权书_安鹏 99001
征信授权书_邮储 99002
借款服务确认书_邮储99003
*/
if("申请人" == relation){
//目前征信授权算上邮储一共3个模板
var relationApplyCount = 3;
for(var i=0; i < relationApplyCount; i++ ){
if(i == 1){
//征信授权书_邮储 99002
objectType="99002";
tempId = "65bd277ad98611eb970e00163e0ad612";//申请人的情况下征信授权书_邮储
param["templateNo"] = tempId;
tempParam["OBJECTTYPE"] = objectType;
}else if(i == 2){
//借款服务确认书_邮储 99003
objectType="99003";
tempId = "134f3d88e2f811eb970e00163e0ad612";//申请人的情况下借款服务确认书_邮储
param["templateNo"] = tempId;
tempParam["OBJECTTYPE"] = objectType;
}
param["templateParam"] = JSON.stringify(tempParam).replace(/,/g, "@");//生成模板的参数据
for (var key in param) {
if (sparam.length > 0) {
sparam += ",";
}
sparam += key + "=" + param[key];
}
var deleteresult = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthDeleteAction", "deleteCreditAuth", "certId=" + certId + ",projectNo=" + projectNo + ",objectType=" + objectType);
var result = RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction", "createOfficeByTemplate", sparam);
// word转pdf
var id = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthSignAction", "wordToPdfCreditAuth",
"projectNo=" + projectNo + ",operationType=" + objectType
+ ",fullName=" + fullName + ",certId=" + certId + ",phone=" + phone + ",flowUnid=" + flowunid);
if (typeof (id) == "undefined" || id.length <= 0 || id == "") {
RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthDeleteAction", "deleteCreditAuth", "certId=" + certId + ",projectNo=" + projectNo + ",objectType=" + objectType);
alert("征信授权文件生成失败!!!");
return;
}
if(i == 0){
if (typeof (id) == "undefined" || id.length <= 0 || id == "") {
RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthDeleteAction", "deleteCreditAuth", "certId=" + certId + ",projectNo=" + projectNo + ",objectType=" + objectType);
}else {
number++;
}
}
}
}else {
param["templateParam"] = JSON.stringify(tempParam).replace(/,/g, "@");//生成模板的参数据
for (var key in param) {
if (sparam.length > 0) {
sparam += ",";
}
sparam += key + "=" + param[key];
}
var deleteresult = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthDeleteAction", "deleteCreditAuth", "certId=" + certId + ",projectNo=" + projectNo + ",objectType=" + objectType);
var result = RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction", "createOfficeByTemplate", sparam);
// word转pdf
var id = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthSignAction", "wordToPdfCreditAuth",
"projectNo=" + projectNo + ",operationType=" + objectType
+ ",fullName=" + fullName + ",certId=" + certId + ",phone=" + phone + ",flowUnid=" + flowunid);
if (typeof (id) == "undefined" || id.length <= 0 || id == "") {
RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthDeleteAction", "deleteCreditAuth", "certId=" + certId + ",projectNo=" + projectNo + ",objectType=" + objectType);
} else {
number++;
}
}
}
if(relations.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("生成失败!!!");
}else if(number==relations.length){
alert("生成成功!!!");
}else{
alert("部分生成成功!!!");
}
reloadSelf();
}
/**
* 发起电子签约
*/
function signOnLine(){
var fullNames=getItemValueArray(0,"fullName");
var certIds=getItemValueArray(0,"certId");
var phones=getItemValueArray(0,"phone");
var creditauths=getItemValueArray(0,"creditauth");
var credittypes=getItemValueArray(0,"credittype");
var relations=getItemValueArray(0,"relation");
var signTypes=getItemValueArray(0,"sign_type");
var sendProcessList=getItemValueArray(0,"sendprocess");
var attributeIds=getItemValueArray(0,"ID");
var projectNo = "<%=projectNo%>";
var flowunid = "<%=sFlowUnid%>";
if(typeof(relations)=="undefined"||relations==null||relations==""){alert("请选择");return;}
for(var i=0; i < relations.length;i++) {
var relation = relations[i];
var fullName = fullNames[i];
var signType = signTypes[i];
var sendProcess = sendProcessList[i];
//只有签约状态为:草稿,发送状态为:未发送,才可以发起电子签约。
if("DRAFT" != signType || "0" != sendProcess){
alert(relation+": " + fullName + " 对应签约状态和发送状态,不符合发起电子签约要求。");
return;
}
}
var number = 0;
for(var i=0; i < relations.length;i++) {
var fullName = fullNames[i];
var signType = signTypes[i];
var certId = certIds[i];
var phone = phones[i];
var creditauth = creditauths[i];
var credittype = credittypes[i];
var relation = relations[i];
var attributeId = attributeIds[i];
var objectType = credittype;
var operationType = objectType;
//自然人电子签约
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthActionNewUtils", "signIng",
"attributeId=" + attributeId + ",projectNo=" + projectNo + ",operationType=" + objectType + ",relation=" + relation
+ ",fullName=" + fullName + ",certId=" + certId + ",phone=" + phone + ",flowUnid=" + flowunid + ",creditauth=" + credittype);
if("success" == sReturn) {
number++;
}
}
if(relations.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("发起电子签约失败!!!");
}else if(number==relations.length){
alert("发起电子签约成功!!!");
}else{
alert("部分发起电子签约成功!!!");
}
location.reload();
}
//查询电子签约状态
function getStatus(){
var fullNames=getItemValueArray(0,"fullName");
var certIds=getItemValueArray(0,"certId");
var phones=getItemValueArray(0,"phone");
var creditauths=getItemValueArray(0,"creditauth");
var credittypes=getItemValueArray(0,"credittype");
var relations=getItemValueArray(0,"relation");
var signTypes=getItemValueArray(0,"sign_type");
var sendProcessList=getItemValueArray(0,"sendprocess");
var attributeIds=getItemValueArray(0,"ID");
var projectNo = "<%=projectNo%>";
var flowunid = "<%=sFlowUnid%>";
if(typeof(relations)=="undefined"||relations==null||relations==""){alert("请选择");return;}
for(var i=0; i < relations.length;i++) {
var relation = relations[i];
var fullName = fullNames[i];
var signType = signTypes[i];
var sendProcess = sendProcessList[i];
//只有签约状态为:草稿,发送状态为:未发送,才可以发起电子签约。
if("SIGNING" != signType || "1" != sendProcess){
alert(relation+": " + fullName + " 请先发起电子签约。");
return;
}
}
var number = 0;
var resMsg = "";
for(var i=0; i < relations.length;i++) {
var fullName = fullNames[i];
var signType = signTypes[i];
var certId = certIds[i];
var phone = phones[i];
var creditauth = creditauths[i];
var credittype = credittypes[i];
var relation = relations[i];
var attributeId = attributeIds[i];
var objectType = credittype;
var operationType = objectType;
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthActionNewUtils", "contractSignStatus",
"attributeId=" + attributeId + ",projectNo=" + projectNo + ",operationType=" + objectType + ",relation=" + relation
+ ",fullName=" + fullName + ",certId=" + certId + ",phone=" + phone + ",flowUnid=" + flowunid);
resMsg += relation + "" + fullName + "" + sReturn + "";
}
AsDebug.showMessage("提示",resMsg,"","",true,'','','',function(){
window.location.reload();
});
}
//重新发送短信
function sendMessageAgain(){
var fullNames=getItemValueArray(0,"fullName");
var certIds=getItemValueArray(0,"certId");
var phones=getItemValueArray(0,"phone");
var creditauths=getItemValueArray(0,"creditauth");
var credittypes=getItemValueArray(0,"credittype");
var relations=getItemValueArray(0,"relation");
var signTypes=getItemValueArray(0,"sign_type");
var sendProcessList=getItemValueArray(0,"sendprocess");
var attributeIds=getItemValueArray(0,"ID");
var projectNo = "<%=projectNo%>";
var flowunid = "<%=sFlowUnid%>";
if(typeof(relations)=="undefined"||relations==null||relations==""){alert("请选择");return;}
for(var i=0; i < relations.length;i++) {
var relation = relations[i];
var fullName = fullNames[i];
var signType = signTypes[i];
var sendProcess = sendProcessList[i];
//只有签约状态为:草稿,发送状态为:未发送,才可以发起电子签约。
if("SIGNING" != signType || "1" != sendProcess){
alert(relation+": " + fullName + " 请先发起电子签约。");
return;
}
}
var number = 0;
var resMsg = "";
for(var i=0; i < relations.length;i++) {
var fullName = fullNames[i];
var signType = signTypes[i];
var certId = certIds[i];
var phone = phones[i];
var creditauth = creditauths[i];
var credittype = credittypes[i];
var relation = relations[i];
var attributeId = attributeIds[i];
var objectType = credittype;
var operationType = objectType;
var sReturn = RunJavaMethodTrans("com.tenwa.channelportal.action.alpha.CreditAuthActionNewUtils", "sendMessageAgain",
"attributeId=" + attributeId + ",projectNo=" + projectNo + ",operationType=" + objectType + ",relation=" + relation
+ ",fullName=" + fullName + ",certId=" + certId + ",phone=" + phone + ",flowUnid=" + flowunid);
resMsg += relation + "" + fullName + "" + sReturn + "";
}
AsDebug.showMessage("提示",resMsg,"","",true,'','','',function(){
window.location.reload();
});
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -2756,6 +2756,22 @@
</managerProperties>
</manager>
</class>
<class name="VI_LB_IDENTITY_CHECK_CREDITAUTH_LOAN" label="身份校验视图表" keyAttributes="">
<attributes>
<attribute name="fullName" label="姓名" type="STRING"/>
<attribute name="certId" label="身份证编号" type="STRING"/>
<attribute name="relation" label="身份" type="STRING"/>
<attribute name="flowunid" label="流程编号" type="STRING"/>
<attribute name="phone" label="电话号" type="STRING"/>
<attribute name="creditauth" label="授权模板名称" type="STRING"/>
<attribute name="credittype" label="授权模板类型" type="STRING"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="vi_lb_identity_check_creditauth_loan" />
</managerProperties>
</manager>
</class>
<class name="LB_CAR_CREDIT_PERSONAL_INFO_TEMP" label="个人风险信息表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识编号" type="STRING" length="32"/>

View File

@ -248,7 +248,7 @@ public class CreditAuthActionNewUtils {
String msg = checkPerson(docAttrIdMap);
if(null != msg){
logger.info("申请人添加合同文件失败 msg=" + msg);
return "flase@" + msg;
return "false@" + msg;
}
for(String createType : docAttrIdMap.keySet()){
String attrId = docAttrIdMap.get(createType);
@ -300,23 +300,26 @@ public class CreditAuthActionNewUtils {
logger.info("sendMessageAgain20210708 个人征信授权 projectNo="+ projectNo+ " fullName="+ fullName);
BizObjectManager contBom = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME, tx);
BizObject bo = null;
bo = contBom.createQuery("select singcontract_id,filename from O where attribute_id=:attributeId"
+" and file_flag = 'yes' and sendprocess = '1'")
bo = contBom.createQuery("attribute_id=:attributeId and file_flag='yes' and sendprocess='1' ")
.setParameter("attributeId", attributeId).getSingleResult(true);
if(bo == null ) {
// 查询lb_doc_contract_list表
bo = contBom.createQuery("attribute_id=:attributeId and file_flag='yes' and (sendprocess='0' or sendprocess='1' ) ")
bo = contBom.createQuery("attribute_id=:attributeId and file_flag='yes' and sendprocess='0' ")
.setParameter("attributeId", attributeId).getSingleResult(true);
if (bo == null) {
logger.info("sendMessageAgain20210708 请检查合同文件是否生成");
logger.info("sendMessageAgain20210708 请检查合同文件是否生成 projectNo="+ projectNo+ " fullName="+ fullName);
return "请检查合同文件是否生成!";
}
logger.info("sendMessageAgain20210708 请先发起电子签约 projectNo="+ projectNo+ " fullName="+ fullName);
return "请先发起电子签约!!!";
}
String signSts = bo.getAttribute("SIGN_TYPE").toString();
String signSts = bo.getAttribute("sign_type").toString();
if("COMPLETE".equals(signSts)){
logger.info("sendMessageAgain20210708 该订单合同已生成 projectNo="+ projectNo+ " fullName="+ fullName);
return "success";
}
if("SIGNING".equals(signSts)){
logger.info("sendMessageAgain20210708 重发短信开始 projectNo="+ projectNo+ " fullName="+ fullName);
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME, tx);
BizObject pbo = pbm.createQuery("FLOWUNID=:flowUnid").setParameter("flowUnid", flowUnid).getSingleResult(true);
String subjectId = pbo.getAttribute("subjectid").getString();
@ -324,6 +327,7 @@ public class CreditAuthActionNewUtils {
KHSQContractSignActionTwoUtil catu = new KHSQContractSignActionTwoUtil();
return catu.messageSend(subjectId, signContractId);
}
logger.info("sendMessageAgain20210708 个人征信授权 projectNo="+ projectNo+ " fullName="+ fullName + " signSts="+ signSts);
return "success";
} catch (Exception e) {
try {

View File

@ -11,6 +11,7 @@ import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.dict.als.manage.NameManager;
import com.tenwa.channelportal.action.alpha.CreditAuthTypesMap;
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
@ -26,11 +27,18 @@ public class DocListCreditAuth {
* @throws Exception
*/
public static String findFileListByUser(String certId, String relation, String flowunid) throws Exception {
// : 2021/7/19 ²éѯÎļþÐÅÏ¢
String projectNo = null;
if(flowunid.startsWith("FBO")){
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);
BizObject pbo = pbm.createQuery("FLOWUNID=:flowUnid").setParameter("flowUnid", flowunid).getSingleResult(true);
projectNo = pbo.getAttribute("PROJECT_NO").toString();
}else {
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO.CLASS_NAME);
BizObject pbo = pbm.createQuery("ID=:ID").setParameter("ID", flowunid).getSingleResult(true);
projectNo = pbo.getAttribute("PROJECT_NO").toString();
}
// TODO: 2021/7/19 查询文件信息
BizObjectManager pbm = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);
BizObject pbo = pbm.createQuery("FLOWUNID=:flowUnid").setParameter("flowUnid", flowunid).getSingleResult(true);
String projectNo = pbo.getAttribute("PROJECT_NO").toString();
Map<String, String> creditAuthTypesMap = CreditAuthTypesMap.initOther();
if("ÉêÇëÈË".equals(relation)){
creditAuthTypesMap = CreditAuthTypesMap.initApplicant();

View File

@ -0,0 +1,43 @@
package jbo.app.tenwa.customer;
import java.lang.String;
/**
* 身份校验视图表 - JBO命名常量类<br><br>
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
*/
public interface VI_LB_IDENTITY_CHECK_CREDITAUTH_LOAN {
/**
* 身份校验视图表<br><br>
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.tenwa.customer.VI_LB_IDENTITY_CHECK_CREDITAUTH_LOAN";
/**
* 姓名 STRING(20)<br>
*/
public static final String fullName = "fullName";
/**
* 身份证编号 STRING(20)<br>
*/
public static final String certId = "certId";
/**
* 身份 STRING(20)<br>
*/
public static final String relation = "relation";
/**
* 流程编号 STRING(20)<br>
*/
public static final String flowunid = "flowunid";
/**
* 电话号 STRING(20)<br>
*/
public static final String phone = "phone";
/**
* 电话号 STRING(20)<br>
*/
public static final String creditauth = "creditauth";
public static final String credittype = "credittype";
}