hujunbo
发布于

test0001

@Override
    public List<Info> selectTarget(InfoIndexQueryContext infoIndexQueryContext) {
        infoIndexQueryContext.setTarget(true);
        Page<Info> search = infoIndexService.search(infoIndexQueryContext);
        search.getResult().forEach(x -> {
            String[] poweIds = x.getPoweIds();
            List<OntologyInstance> byIdIn = ontologyInstanceRepository.findByIdIn(Arrays.asList(poweIds));
            x.setPowers(byIdIn);
        });
        return search;
    }
@Override
    public List<Info> selectTarget(InfoIndexQueryContext infoIndexQueryContext) {
        infoIndexQueryContext.setTarget(true);
        Page<Info> search = infoIndexService.search(infoIndexQueryContext);
        search.getResult().forEach(x -> {
            String[] poweIds = x.getPoweIds();
            List<OntologyInstance> byIdIn = ontologyInstanceRepository.findByIdIn(Arrays.asList(poweIds));
            x.setPowers(byIdIn);
        });
        return search;
    }
@Override
    public List<Info> selectTarget(InfoIndexQueryContext infoIndexQueryContext) {
        infoIndexQueryContext.setTarget(true);
        Page<Info> search = infoIndexService.search(infoIndexQueryContext);
        search.getResult().forEach(x -> {
            String[] poweIds = x.getPoweIds();
            List<OntologyInstance> byIdIn = ontologyInstanceRepository.findByIdIn(Arrays.asList(poweIds));
            x.setPowers(byIdIn);
        });
        return search;
    }
@Override
    public List<Info> selectTarget(InfoIndexQueryContext infoIndexQueryContext) {
        infoIndexQueryContext.setTarget(true);
        Page<Info> search = infoIndexService.search(infoIndexQueryContext);
        search.getResult().forEach(x -> {
            String[] poweIds = x.getPoweIds();
            List<OntologyInstance> byIdIn = ontologyInstanceRepository.findByIdIn(Arrays.asList(poweIds));
            x.setPowers(byIdIn);
        });
        return search;
    }
#以 utf-8 的编码格式打开指定文件

f = open("my_file.txt",encoding = "utf-8")

#输出读取到的数据

print(f.read())

#关闭文件

f.close()
#以 utf-8 的编码格式打开指定文件

f = open("my_file.txt",encoding = "utf-8")

#输出读取到的数据

print(f.read())

#关闭文件

f.close()
评论