修改存量客户,业务变更配偶信息重复、提前结清有数据不带当前系统日期、接口平台进单合同制作无数据

This commit is contained in:
tangfutang 2019-10-29 11:20:29 +08:00
parent 7faa598660
commit 475c80fe68
5 changed files with 19 additions and 7 deletions

View File

@ -32,9 +32,9 @@
isShowButton=false;
doTemp.setReadOnly("CONTRACT_NUMBER", true);
}
if(null!=ishistory&&ishistory.equals("true")){
/* if(null!=ishistory&&ishistory.equals("true")){
doTemp.setDataQueryClass("com.tenwa.flow.flowHistory.FlowDataInfoHistory");//如果是历史则新显示历史数据
}
} */
doTemp.setHtmlEvent("CONTRACT_NUMBER", "onChange", "copyContNumToContNo");
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
//ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);

View File

@ -246,7 +246,10 @@
jQuery(function(){
setItemValue(0,0,"flowunid","<%=flowunid%>");
setItemValue(0,0,"PAYDAY_DATE","<%=StringFunction.getToday()%>");
var payday_date = getItemValue(0,getRow(),"PAYDAY_DATE");
if(""==payday_date || "undefined"==payday_date || null == payday_date){
setItemValue(0,0,"PAYDAY_DATE","<%=StringFunction.getToday()%>");
}
//设置商定罚息带出逾期罚息
//setItemValue(0,0,"AGREED_PENALTY",getItemValue(0,0,'DUN_PENALTY'));
//判断其他应收和其他应退是否为空

View File

@ -50,6 +50,7 @@ public class LBCustomerRelaFormalToTempBusiness extends BaseBussiness {
}
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, other, null, Sqlca);
fromCondtion.put("project_id", this.getAttribute("ProjectId").toString());
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, other, null, Sqlca);
}
for(BizObject unit:unitList){
@ -64,7 +65,7 @@ public class LBCustomerRelaFormalToTempBusiness extends BaseBussiness {
fromCondtion.put("customerid", unit.getAttribute("ASSUROR").getString());
DataOperatorUtil.copyJBOSet(CUSTOMER_PERSON.CLASS_NAME, fromCondtion, CUSTOMER_PERSON_TEMP.CLASS_NAME, null, other, null, Sqlca);
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT.CLASS_NAME, fromCondtion, CUSTOMER_CERT_TEMP.CLASS_NAME, null, other, null, Sqlca);
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, other, null, Sqlca);
//DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY_TEMP.CLASS_NAME, null, other, null, Sqlca);
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS_TEMP.CLASS_NAME, null, other, null, Sqlca);
}

View File

@ -48,6 +48,7 @@ public class LBCustomerRelaTempToFormalBusiness extends BaseBussiness {
String certType = this.getAttribute("certtype").toString();
//String certId = this.getAttribute("certNo").toString();
String certId = this.getAttribute("certid").toString();
String flowName = this.getAttribute("FlowName").toString();
BizObjectManager bomCT1 = JBOFactory.getBizObjectManager(CUSTOMER_CERT.CLASS_NAME,Sqlca);
BizObjectManager bomCTT1 = JBOFactory.getBizObjectManager(CUSTOMER_TYPE.CLASS_NAME,Sqlca); //客户类型临时表
List<BizObject> boCT1 = bomCT1.createQuery("certtype='"+certType+"' and certid='"+certId+"'").getResultList(false);
@ -171,8 +172,11 @@ public class LBCustomerRelaTempToFormalBusiness extends BaseBussiness {
//配偶信息不考虑存量客户
fromCondtion.clear();
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
fromCondtion.put("project_id",this.getAttribute("ProjectId").toString());
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY.CLASS_NAME, null, null, null, Sqlca);
otherProperty.clear();
if("业务变更流程".equals(flowName)){
otherProperty.put("project_id",this.getAttribute("ProjectId").toString());
}
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY.CLASS_NAME, null, otherProperty, null, Sqlca);
String sMessage="true";
return sMessage;
}

View File

@ -38,6 +38,7 @@ public class LBProCustomerRelaTempToFormalBusiness extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowName = this.getAttribute("FlowName").toString();
Map<String,String>fromCondtion=new HashMap<String, String>();
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
List<BizObject> lults= DataOperatorUtil.getSetJBO(LB_UNION_LESSEE_TEMP.CLASS_NAME, fromCondtion, Sqlca);
@ -59,8 +60,11 @@ public class LBProCustomerRelaTempToFormalBusiness extends BaseBussiness {
DataOperatorUtil.copyJBOSet(CUSTOMER_COMPANY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_COMPANY.CLASS_NAME, toCondtion, null, cc, Sqlca);
}
DataOperatorUtil.copyJBOSet(CUSTOMER_CERT_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_CERT.CLASS_NAME, toCondtion, null, cc, Sqlca);
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY.CLASS_NAME, toCondtion, null, cc, Sqlca);
DataOperatorUtil.copyJBOSet(CUSTOMER_ADDRESS_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_ADDRESS.CLASS_NAME, toCondtion, null, cc, Sqlca);
if("业务变更流程".equals(flowName)){
toCondtion.put("project_id", this.getAttribute("ProjectId").toString());
}
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY_TEMP.CLASS_NAME, fromCondtion, CUSTOMER_FAMILY.CLASS_NAME, toCondtion, null, cc, Sqlca);
}
String sMessage="true";
return sMessage;