refresh
This commit is contained in:
parent
e616b3b70a
commit
9b3355f601
@ -22,33 +22,53 @@ public class CopyReturnInfoTempToFormal extends BaseBussiness{
|
||||
@Override
|
||||
public Object run(Transaction Sqlca) throws Exception {
|
||||
this.initBussinessParam(Sqlca);
|
||||
String orgid=this.saveOrgInfo(Sqlca);
|
||||
Map<String,String>fromCondtion=new HashMap<String, String>();
|
||||
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
BizObject dst= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, fromCondtion, Sqlca);
|
||||
String distributor_no=dst.getAttribute("distributor_no").getString();
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("distributor_no", distributor_no);
|
||||
BizObject disinfo= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO.CLASS_NAME, fromCondtion, Sqlca);
|
||||
String disStatus = dst.getAttribute("distributor_status").toString();
|
||||
dst.setAttributeValue("orgid",orgid );
|
||||
BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,Sqlca);
|
||||
BizObjectManager ditinfo = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca);
|
||||
if("distributor_status06".equals(disStatus)){
|
||||
disinfo.setAttributeValue("distributor_status", "distributor_status10");
|
||||
}
|
||||
ditinfo.saveObject(disinfo);
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
|
||||
|
||||
/*this.initBussinessParam(Sqlca);
|
||||
//String orgid=this.saveOrgInfo(Sqlca);
|
||||
Map<String,String>fromCondtion=new HashMap<String, String>();
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
|
||||
BizObject dst= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO.CLASS_NAME, fromCondtion, Sqlca);
|
||||
String disStatus = dst.getAttribute("distributor_status").toString();
|
||||
//dst.setAttributeValue("orgid",orgid );
|
||||
BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca);
|
||||
if("distributor_status06".equals(disStatus)){
|
||||
dst.setAttributeValue("distributor_status", "distributor_status10");
|
||||
}
|
||||
dit.saveObject(dst);
|
||||
Map<String,String>toCondtion=new HashMap<String, String>();
|
||||
DistributorCompare dc=new DistributorCompare();
|
||||
fromCondtion.clear();
|
||||
fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
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>toCondtion=new HashMap<String, String>();
|
||||
// DistributorCompare dc=new DistributorCompare();
|
||||
// fromCondtion.clear();
|
||||
// fromCondtion.put("flowunid",this.getAttribute("FlowUnid").toString());
|
||||
// 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);
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
return sMessage;*/
|
||||
}
|
||||
/**
|
||||
* 保存渠道信息
|
||||
* @author 2018-06-10
|
||||
*/
|
||||
private String saveOrgInfo(Transaction Sqlca) throws Exception {
|
||||
/* private String saveOrgInfo(Transaction Sqlca) throws Exception {
|
||||
ASOrgObject orgObject= new ASOrgObject("8006");//默认为安鹏向下的渠道信息
|
||||
Map<String,String> mapOrgInfo=orgObject.nextLevalOrgNo(Sqlca);
|
||||
BizObjectManager manager = JBOFactory.getFactory().getManager("jbo.sys.ORG_INFO");
|
||||
@ -74,5 +94,5 @@ public class CopyReturnInfoTempToFormal extends BaseBussiness{
|
||||
manager.saveObject(bo);
|
||||
}
|
||||
return bo.getAttribute("ORGID").toString();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user