扣款卡变更流程,更换成已经签约过的扣款卡不需要再重新签约。
This commit is contained in:
parent
9b85b0f378
commit
62b825a6be
@ -32,6 +32,7 @@ public class LBCustomerAccountChangeToFormalBusiness extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String status = "N";//ĬÈÏǩԼ״̬
|
||||
String flowunid = this.getAttribute("ObjectNo").toString();
|
||||
//如果是扣款卡信息变更从正式表倒到临时表中
|
||||
String flowname=(String)this.getAttribute("FlowName");
|
||||
@ -54,15 +55,16 @@ public class LBCustomerAccountChangeToFormalBusiness extends BaseBussiness{
|
||||
fromCond.put("BANK_NAME", cat.getAttribute("BANK_NAME").getString());
|
||||
fromCond.put("MOBILE", cat.getAttribute("MOBILE").getString());
|
||||
fromCond.put("PROJECT_ID", this.getAttribute("ProjectId").toString());
|
||||
BizObject cah = DataOperatorUtil.getSingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCond, Sqlca);
|
||||
if(cah==null){
|
||||
other.put(CUSTOMER_ACCOUNT.sign_status, "N");
|
||||
}else{
|
||||
other.put(CUSTOMER_ACCOUNT.sign_status, cah.getAttribute("SIGN_STATUS").getString());
|
||||
List<BizObject> cahs = DataOperatorUtil.getSetJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCond, Sqlca);
|
||||
for (BizObject cah : cahs) {
|
||||
if("Y".equals(cah.getAttribute("SIGN_STATUS").getString())){
|
||||
status = "Y";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
other.put(CUSTOMER_ACCOUNT.sign_status, status);
|
||||
Map<String,String> fromCondtion = new HashMap<String, String>();
|
||||
fromCondtion.put("flowunid", flowunid);
|
||||
Map<String,String> toCondtion = new HashMap<String, String>();
|
||||
|
||||
@ -30,6 +30,7 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String status = "N";//ĬÈÏǩԼ״̬
|
||||
Map<String,String>fromCondtion=this.getDefaultTempToFormalFromCondtion();
|
||||
Map<String,String> toCondtion=new HashMap<String,String>();
|
||||
toCondtion.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
|
||||
@ -50,15 +51,16 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
|
||||
fromCond.put("ACC_NUMBER", cat.getAttribute("ACC_NUMBER").getString());
|
||||
fromCond.put("BANK_NAME", cat.getAttribute("BANK_NAME").getString());
|
||||
fromCond.put("MOBILE", cat.getAttribute("MOBILE").getString());
|
||||
BizObject cah = DataOperatorUtil.getSingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCond, Sqlca);
|
||||
if(cah==null){
|
||||
other.put(CUSTOMER_ACCOUNT.sign_status, "N");
|
||||
}else{
|
||||
other.put(CUSTOMER_ACCOUNT.sign_status, cah.getAttribute("SIGN_STATUS").getString());
|
||||
List<BizObject> cahs = DataOperatorUtil.getSetJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCond, Sqlca);
|
||||
for (BizObject cah : cahs) {
|
||||
if("Y".equals(cah.getAttribute("SIGN_STATUS").getString())){
|
||||
status = "Y";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
other.put(CUSTOMER_ACCOUNT.sign_status, status);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_ACCOUNT.CLASS_NAME, toCondtion, other,null, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(LB_GUARANTEE_UNIT_TEMP.CLASS_NAME, fromCondtion,LB_GUARANTEE_UNIT.CLASS_NAME, toCondtion, otherProperty,null, Sqlca);
|
||||
fromCondtion.clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user