需要填充相关组织属性,否则会有其他报错
Context ctx2 = new Context( new ObjectUuidPK("256c221a-0106-1000-e000-10d7c0a813f413B7DE7F"), "EAS","xk861", null);
CtrlUnitInfo cuInfo = DataImportUtils.getCtrlUnitInfoFromNumber(ctx, "00000000-0000-0000-0000-000000000000CCE7AED4");
ctx2.put("Curou",cuInfo);
ctx2.put("管理单元", cuInfo) ;
ctx2.put("销售组织",cuInfo) ;
ctx2.put("HR组织",cuInfo) ;
ctx2.put("行政组织",cuInfo);
ctx2.put("财务组织",cuInfo) ;
ctx2.put("CompanyInfo", cuInfo);
ctx2.put("成本中心",cuInfo);
ctx2.put("dbType", "Oracle");
ctx2.put("disablePermissionForKScript", true);
ctx2.put ("UserInfo" , DataImportUtils.getUserInfoFromNumber(ctx, "user")) ;
ctx2.put("CurCompanyId" , "00000000-0000-0000-0000-000000000000CCE7AED4");
标签:0000,组织,BOS,cuInfo,put,new,EAS,ctx2 From: https://blog.51cto.com/u_11343833/6091630