更新合同制作生成合同编号方法

This commit is contained in:
tangfutang 2018-06-14 21:35:01 +08:00
parent 73eaee3ff9
commit 13e2efbc1c
3 changed files with 13 additions and 8 deletions

View File

@ -20,8 +20,8 @@ import jbo.app.tenwa.doc.LB_DOCLIBRARY;
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT;
import jbo.com.tenwa.lease.comm.BUSINESS_STATUS;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_SIGN_LOG;
import jbo.com.tenwa.lease.carbrand.BUSINESS_STATUS;
import jbo.com.tenwa.lease.carbrand.LB_CONTRACT_SIGN_LOG;
import jbo.com.tenwa.lease.comm.LB_CONTRACT_TEMPLATE;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP;

View File

@ -67,7 +67,7 @@ public class SerialNumberUtil {
int year = Integer.parseInt(currentYear);
int month = Integer.parseInt(currentMonth);
int day = Integer.parseInt(currentDay);
return SerialNumberUtil.getSerialNumberByDay("zlzl"+dept+"{year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
return SerialNumberUtil.getSerialNumberByDay("BQAP"+dept+"{year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
}
//合同编号(车融易)
public static synchronized String getContractIdByOldCar(String dept,String area_code,JBOTransaction tx) throws Exception{
@ -78,7 +78,7 @@ public class SerialNumberUtil {
int year = Integer.parseInt(currentYear);
int month = Integer.parseInt(currentMonth);
int day = Integer.parseInt(currentDay);
return SerialNumberUtil.getSerialNumberByDay("zlzl"+dept+"{year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
return SerialNumberUtil.getSerialNumberByDay("BQAP"+dept+"{year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
}
//业务合同编号(新车尊享)
public static synchronized String getContractNumberByNewCar(JBOTransaction tx) throws Exception{
@ -135,7 +135,7 @@ public class SerialNumberUtil {
int year = Integer.parseInt(currentYear);
int month = Integer.parseInt(currentMonth);
int day = Integer.parseInt(currentDay);
return SerialNumberUtil.getSerialNumberByDay("zlzl"+dept+"{year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
return SerialNumberUtil.getSerialNumberByDay("BQAP("+dept+"){year}{month}{day}"+area_code+"{maxOrderNumber}",3,null, "", year,month,day, tx);
}
/*public static String getContractSerialNaumber(String sSerialType,JBOTransaction tx) throws Exception {

View File

@ -44,7 +44,7 @@ public class ContractApprovalStartAction extends BaseFlowStartAction{
if(area_code.equals(null)||area_code.equals("")){
area_code="000";
}
if(productid.equals("004")||productid.equals("0005")){//³µÁ¾
/* if(productid.equals("004")||productid.equals("0005")){//³µÁ¾
dept+="T";
if(bo.getAttribute("LEAS_FORM").toString().equals("01")){//Öą×â
dept+="Z";
@ -54,9 +54,14 @@ public class ContractApprovalStartAction extends BaseFlowStartAction{
contractno = SerialNumberUtil.getContractIdByOldCar(dept,area_code,tx);
}
}else{//É蹸
dept+="AZ";
*/ dept+="A";
if(bo.getAttribute("LEAS_FORM").toString().equals("01")){//Ö±×â
dept+="Z";
}else{//»Ø×â
dept+="H";
}
contractno=SerialNumberUtil.getContractSerialNaumber(dept,area_code, tx);
}
// }
this.FlowParam.put("ContractNo", contractno);
this.FlowParam.put("FlowKey", contractno);
this.FlowParam.put("customertype", customertype);