ATG数据查询

ATG的数据查询

//shippingGroupId 作为主键查询表 shippingGroup中的数据

        MutableRepository repository = (MutableRepository) getOrderRepository();
        MutableRepositoryItem item = (MutableRepositoryItem) repository.getItem(pShippingGroupId, "shippingGroup");
        return item;

MutableRepository mutableRepository = getPrdAdditionalInfoRepository();

//status不是主键的查询
RepositoryView view = mutableRepository.getView(getItemDescriptorName());
RqlStatement rqlStatement = RqlStatement.parseRqlStatement("status=?0");
RepositoryItem[] itemList = rqlStatement.executeQuery(view, new Object[]{0});

return itemList;
}

你可能感兴趣的:(查询)