更改业务申请发起脚本

This commit is contained in:
user 2018-06-29 11:05:12 +08:00
parent c9a5115f15
commit e607c9cadc

View File

@ -50,30 +50,14 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
bmLCI.setAttributeValue("VERSIONID", this.getAttribute("versionid"));
boCRT.setAttributeValue("flowunid", this.getAttribute("FlowUnid"));
//根据身份证号判断是否存在该客户如果有则带出客户编号
String certId = this.getAttribute("certid").toString();
BizObject bmbo = bmCPT.createQuery("certid=:certid").setParameter("certid", certId).getSingleResult(false);
if(bmbo != null){
customerId = bmbo.getAttribute("CUSTOMERID").toString();
String customerName = bmbo.getAttribute("FULLNAME").toString();
boCRT.setAttributeValue("customerid", customerId);
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
boCRT.setAttributeValue("CERTID", certId);
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
boCRT.setAttributeValue("BALANCESHEET", "申请人");
}else{
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
boCRT.setAttributeValue("customerid", customerId);
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
boCRT.setAttributeValue("BALANCESHEET", "申请人");
}
boCRT.setAttributeValue("customerid", customerId);
boCRT.setAttributeValue("FULLNAME", this.getAttribute("custname"));
boCRT.setAttributeValue("CERTTYPE", this.getAttribute("certtype"));
boCRT.setAttributeValue("CERTID", this.getAttribute("certid"));
boCRT.setAttributeValue("InputOrgID", asUser.getOrgID());
boCRT.setAttributeValue("InputUserID", asUser.getUserID());
boCRT.setAttributeValue("InputTime", StringFunction.getToday());
boCRT.setAttributeValue("BALANCESHEET", "ÉêÇëÈË");
//根据客户类型设置参数
String certType = this.getAttribute("certtype").toString();