直营店逻辑修改

This commit is contained in:
zhanglei 2020-12-17 13:35:21 +08:00
parent 6848f8f595
commit 6461211e63

View File

@ -118,8 +118,12 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
}
String custName="";
String customerId = "";
if("cust_type.cust".equals(custType)){
if(this.getAttribute("operationType") != null && "BAIC_MOTOR".equals(this.getAttribute("operationType").toString())){
//cust_type.cust
if("cust_type.cust".equals(custType)){
BizObject distributorBo = JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
String fiType = distributorBo.getAttribute("F_I_TYPE").toString();
if((this.getAttribute("operationType") != null && "BAIC_MOTOR".equals(this.getAttribute("operationType").toString()))
|| "f_i_type03".equals(fiType)){//×ÔÓªµê
distributoIid=this.getAttribute("distributorNo").toString();
vndrName=this.getAttribute("distributorName").toString();
}else{
@ -190,7 +194,10 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
this.saveUnionLessee(bmLULT,tx,customerId,asUser);
this.saveBusinessStatus(bsbom, tx, asUser);//ÏîÄ¿½øÈ±í
}else{
if(this.getAttribute("operationType") != null && "BAIC_MOTOR".equals(this.getAttribute("operationType").toString())){
BizObject distributorBo = JBOFactory.createBizObjectQuery(DISTRIBUTOR_INFO.CLASS_NAME,"orgid=:orgid").setParameter("orgid",deptid).getSingleResult(false);
String fiType = distributorBo.getAttribute("F_I_TYPE").toString();
if((this.getAttribute("operationType") != null && "BAIC_MOTOR".equals(this.getAttribute("operationType").toString()))
|| "f_i_type03".equals(fiType)){//×ÔÓªµê
distributoIid=this.getAttribute("distributorNo").toString();
vndrName=this.getAttribute("distributorName").toString();
}else{