更新经销商变更结束方法
This commit is contained in:
parent
42f699492a
commit
07f6537f85
@ -44,6 +44,7 @@ public class DistributorAccountTempToFormalBusiness extends BaseBussiness {
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
toCondtion.clear();
|
||||
toCondtion.put("distributor_id", dsatlst.get(0).getAttribute("distributor_id").getString());
|
||||
DataOperatorUtil.deleteJBOByCondtion(DISTRIBUTOR_ACCOUNT.CLASS_NAME, toCondtion, Sqlca);
|
||||
DataOperatorUtil.copyJBOSet(DISTRIBUTOR_ACCOUNT_TEMP.CLASS_NAME, fromCondtion, DISTRIBUTOR_ACCOUNT.CLASS_NAME, toCondtion, null, null, Sqlca);
|
||||
|
||||
}
|
||||
|
||||
@ -41,6 +41,7 @@ public class DistributorInfoTempToFormalBusiness extends BaseBussiness {
|
||||
String orgid=this.saveOrgInfo(Sqlca);
|
||||
Map<String,String>fromCondtion=new HashMap<String, String>();
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
String flowName = this.getAttribute("FlowName").toString();
|
||||
BizObject dst= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, Sqlca);
|
||||
String disStatus = dst.getAttribute("distributor_status").toString();
|
||||
dst.setAttributeValue("orgid",orgid );
|
||||
@ -56,7 +57,16 @@ public class DistributorInfoTempToFormalBusiness extends BaseBussiness {
|
||||
toCondtion.clear();
|
||||
toCondtion.put("distributor_no", dst.getAttribute("distributor_no").getString());
|
||||
|
||||
DataOperatorUtil.copyJBOSet(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, DISTRIBUTOR_INFO.CLASS_NAME, toCondtion, null, dc, Sqlca);
|
||||
|
||||
Map<String,String> otherProperty =new HashMap<String, String>();
|
||||
if("¾ÏúÉ̱ä¸üÉóºËÁ÷³Ì".equals(flowName)){
|
||||
otherProperty.clear();
|
||||
BizObject di = DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO.CLASS_NAME, toCondtion, Sqlca);
|
||||
otherProperty.put("DISTRIBUTOR_NO", di.getAttribute("DISTRIBUTOR_NO").toString());
|
||||
otherProperty.put("ORGID", di.getAttribute("ORGID").toString());
|
||||
}
|
||||
|
||||
DataOperatorUtil.copyJBOSet(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, DISTRIBUTOR_INFO.CLASS_NAME, toCondtion, otherProperty, dc, Sqlca);
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user