https://mybatisplusjoin.com/pages/quickstart/js.html
MPJLambdaWrapper<ProProjectNodeIntentionEntity> wrapper = new MPJLambdaWrapper<ProProjectNodeIntentionEntity>();
wrapper.selectAll(ProProjectNodeIntentionEntity.class);
wrapper.select(ProProject::getProjectName);
wrapper.select(BsCompany::getCompanyName);
wrapper.leftJoin(ProProject.class,ProProject::getProjectId,ProProjectNodeIntentionEntity::getProjectId);
wrapper.leftJoin(BsCompany.class,BsCompany::getCompanyId,ProProjectNodeIntentionEntity::getCompanyId);
wrapper.eq(ProProjectNodeIntentionEntity::getId,id);
return R.ok(proProjectNodeIntentionMapper.selectJoinList(ProProjectNodeIntentionEntity.class,wrapper));
标签:ProProjectNodeIntentionEntity,ProProject,MPJLambdaWrapper,BsCompany,wrapper,clas
From: https://www.cnblogs.com/linhan8888/p/17930356.html