/**
* 将外系统数据转成nc档案主键
*
* @param srcValue
* @param metaDataID
* @param pk_org
* @return
* @throws Exception
*/
public static String translateExToNCByCode(String srcValue, String fullClassName,
String pk_org) {
IBean Bean = null;
try {
Bean = MDBaseQueryFacade.getInstance().getBeanByFullClassName(fullClassName);
} catch (MetaDataException e) {
throw new LfwRuntimeException(e.getMessage(), e);
}
IGeneralAccessor accessor = GeneralAccessorFactory.getAccessor(Bean.getID());
IBDData doc = null;
doc = accessor.getDocByCode(pk_org, srcValue);
if (doc != null) {
return doc.getPk();
}
return null;
}
NC将外系统数据转化为档案主键
最新推荐文章于 2023-04-06 17:31:04 发布