Mybatisplus条件构造器QueryWrapper

保存备用
–| 原贴:https://blog.csdn.net/m0_37034294/article/details/82917234
Mybatisplus条件构造器QueryWrapper_第1张图片
使用示例

QueryWrapper<CommentUpdown> wrapper = new QueryWrapper<>();
wrapper.lambda().eq(CommentUpdown::getCommentId,commentUpdown.getCommentId())
		.eq(CommentUpdown::getUserId, userId);		
CommentUpdown queryCommentUpdown = commentUpdownService.getOne(wrapper);

你可能感兴趣的:(#,MyBatisPlus)