更新配置
This commit is contained in:
parent
5eae2b1284
commit
7caca50fe0
@ -1121,6 +1121,7 @@
|
||||
<attribute name="TYPE" label="类型" type="STRING" length="32"/>
|
||||
<attribute name="ORGID" label="部门编号" type="STRING" length="32"/>
|
||||
<attribute name="PROVINCES" label="省份" type="STRING" length="32"/>
|
||||
<attribute name="DISTRIBUTOR_CODING" label="经销商编号" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
@ -1411,6 +1412,7 @@
|
||||
<attribute name="TYPE" label="类型" type="STRING" length="32"/>
|
||||
<attribute name="ORGID" label="部门编号" type="STRING" length="32"/>
|
||||
<attribute name="PROVINCES" label="省份" type="STRING" length="32"/>
|
||||
<attribute name="DISTRIBUTOR_CODING" label="经销商编码" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
|
||||
@ -22,25 +22,20 @@ public class CopyInfoTempToFormal 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 disStatus = dst.getAttribute("distributor_status").toString();
|
||||
dst.setAttributeValue("orgid",orgid );
|
||||
BizObjectManager dit = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME,Sqlca);
|
||||
if("distributor_status08".equals(disStatus)){
|
||||
dst.setAttributeValue("distributor_status", "distributor_status09");
|
||||
}
|
||||
dit.saveObject(dst);
|
||||
Map<String,String>toCondtion=new HashMap<String, String>();
|
||||
DistributorCompare dc=new DistributorCompare();
|
||||
String distributor_no=dst.getAttribute("distributor_no").getString();
|
||||
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);
|
||||
fromCondtion.put("distributor_no", distributor_no);
|
||||
BizObject disinfo= DataOperatorUtil.getSingleJBO(DISTRIBUTOR_INFO.CLASS_NAME, fromCondtion, Sqlca);
|
||||
String disStatus = dst.getAttribute("distributor_status").toString();
|
||||
BizObjectManager ditinfo = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca);
|
||||
if("distributor_status08".equals(disStatus)){
|
||||
disinfo.setAttributeValue("distributor_status", "distributor_status09");
|
||||
}
|
||||
ditinfo.saveObject(disinfo);
|
||||
String sMessage="true";
|
||||
return sMessage;
|
||||
}
|
||||
@ -48,7 +43,7 @@ public class CopyInfoTempToFormal extends BaseBussiness{
|
||||
* 保存渠道信息
|
||||
* @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 +69,5 @@ public class CopyInfoTempToFormal extends BaseBussiness{
|
||||
manager.saveObject(bo);
|
||||
}
|
||||
return bo.getAttribute("ORGID").toString();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user