首页 > 其他分享 >MPJLambdaWrapper

MPJLambdaWrapper

时间:2023-12-27 13:34:03浏览次数:25  
标签:ProProjectNodeIntentionEntity ProProject MPJLambdaWrapper BsCompany wrapper clas

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

相关文章