LambdaQueryWrapper<MsgEntity> wrapper = new LambdaQueryWrapper<MsgEntity>().eq(MsgEntity::getType, MsgEnum.LETTER.getCode()).
and(y -> y.and(q -> q.eq(MsgEntity::getSourceId, id).eq(MsgEntity::getMemberId, userId)).
or(x -> x.eq(MsgEntity::getSourceId, userId).eq(MsgEntity::getMemberId, id)));
mybatis-plus解决or的问题
最新推荐文章于 2024-04-02 17:06:52 发布