更改业务申请发起脚本
This commit is contained in:
parent
c9a5115f15
commit
e607c9cadc
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user