增加流程页签参数

This commit is contained in:
ap007 2021-07-14 14:47:34 +08:00
parent 2b13a3b4e6
commit 9746c6733c
3 changed files with 29 additions and 13 deletions

View File

@ -228,6 +228,8 @@
sParams =sParams+",SubjectId="+SubjectId+",SubjectName="+message[1]+",ProductId="+productId+",ProductName="+productname+",CustomerType="+customerType+",carAttributes="+carAttributes+",leasehold="+leasehold+",carSystem="+carSystem+",custname="+custname+",certtype="+certtype+",certid="+certid+",CustomerId="+CustomerId+",productModel="+productModel+",carSeries="+carSeries+",versionid="+versionid+",modelid="+modelid+",businessType="+businessType+",price="+price+",liter="+liter+",geartype="+geartype+",sourcetype=web,operationType="+operationType+",newtype="+newtype;
sParams =sParams+",cartype="+cartype+",vehicletype="+vehicletype+",vehiclelevel="+vehiclelevel;//赋值新增的三个车型信息
sParams =sParams+",distributorType="+distributorType;//新增自营店信息作为显示经销商变更页签显示条件
var corpusSource = RunJavaMethodTrans("com.tenwa.lease.flow.project.commbusiness.LBProjectIntoTempInitCarBusiness","getCorpusSourceByProductID","productId="+productId);
sParams = sParams + ",corpusSource="+corpusSource;
//
// if("BAIC_MOTOR"==operationType){
if(checkDispalyDistributor()){

View File

@ -69,13 +69,13 @@ public class CorpusSourceRentPlanCopy implements Job {
List<BizObject> ffpBoList = ffpBom.createQuery("select ID,FILE_STS from O where FILE_STS='2'").getResultList(true);
for(BizObject ffpBo : ffpBoList){
String fcFileId = ffpBo.getAttribute("ID").toString();
//更新租金计划租金信息并获取每个文件的contract_id
//1.更新租金计划租金信息并获取每个文件的contract_id
String sql = "select fr.CONTRACT_ID,O.LEND_TERM,O.ANS_REPAYMENT_DATE,O.ANS_PRINCIPAL,O.ANS_INTEREST,ANS_REPAYMENT_MONEY from O left join jbo.oti.FC_REQUEST fr on O.FC_REQUEST_ID=fr.ID where fr.DEL_FLAG='0' and O.FC_FILE_ID=:fcFileId";
List<BizObject> fyfrpBoList = fyfrpBom.createQuery(sql).setParameter("fcFileId",fcFileId).getResultList(false);
contractSet = this.updateRentPlan(fyfrpBoList);
//更新租金计划剩余本金
//2.更新租金计划剩余本金
updateAllRemainCorpus();
//更新租金计划分润信息
//3.更新租金计划分润信息
updateSplitSP();
ffpBo.setAttributeValue("FILE_STS","3");
ffpBo.setAttributeValue("FILE_STS_DESC","¿½±´³É¹¦");

View File

@ -51,6 +51,7 @@ import com.tenwa.reckon.util.UUIDUtil;
public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
private static final String SHIQIAO = "SHIQIAO";
public String serial = null;
private String productId = null;
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
@ -401,16 +402,8 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
select o.corpus_source from lb_product_corpus_source o where o.product_id='H01-C01-E-CXC1-DB-3'
and order_list =(select ot.order_list from lb_product_corpus_source ot where ot.product_id='H01-C01-E-CXC1-DB-3' order by ot.order_list limit n-1,1);
*/
String sql = "select O.CORPUS_SOURCE from O where PRODUCT_ID=:PRODUCTID and O.ORDER_LIST = (select min(ot.order_list) from jbo.prd.LB_PRODUCT_CORPUS_SOURCE ot where ot.PRODUCT_ID=:PRODUCTID)";
String corpusSource = "AP";
try {
BizObject boLPCS = JBOFactory.createBizObjectQuery(LB_PRODUCT_CORPUS_SOURCE.CLASS_NAME, sql).setParameter("PRODUCTID", productId).getSingleResult(false);
if(boLPCS!=null&&boLPCS.getAttribute("CORPUS_SOURCE")!=null){
corpusSource=boLPCS.getAttribute("CORPUS_SOURCE").toString();
}
}catch (JBOException e1){
e1.printStackTrace();
}
this.setProductId(productId);
String corpusSource = this.getCorpusSourceByProductID(tx);
bo.setAttributeValue("CORPUS_SOURCE",corpusSource);
bomLPI.saveObject(bo);
}catch (Exception e){
@ -418,6 +411,19 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
e.printStackTrace();
}
}
public String getCorpusSourceByProductID(JBOTransaction tx) throws JBOException {
String sql = "select O.CORPUS_SOURCE from O where PRODUCT_ID=:PRODUCTID and O.ORDER_LIST = (select min(ot.order_list) from jbo.prd.LB_PRODUCT_CORPUS_SOURCE ot where ot.PRODUCT_ID=:PRODUCTID)";
String corpusSource = "AP";
BizObjectManager bomLPCS = JBOFactory.getBizObjectManager(LB_PRODUCT_CORPUS_SOURCE.CLASS_NAME,tx);
BizObject boLPCS = bomLPCS.createQuery(sql).setParameter("PRODUCTID", productId).getSingleResult(false);
if(boLPCS!=null&&boLPCS.getAttribute("CORPUS_SOURCE")!=null){
corpusSource=boLPCS.getAttribute("CORPUS_SOURCE").toString();
}
return corpusSource;
}
private void saveBusinessStatus(BizObjectManager bsbom,JBOTransaction tx ,ASUser asUser) throws Exception{
BizObject bsbo = bsbom.newObject();
try {
@ -433,4 +439,12 @@ public class LBProjectIntoTempInitCarBusiness extends BaseBussiness {
}
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
}