mybatis-plus 操作

多字段或 查询

if (!StringUtils.isEmpty(bo.getKeyword())) {
            String keyword = bo.getKeyword();
            lqw.and(w->w.like(HymMaterial::getContent,keyword).or().like(HymMaterial::getNickName,keyword));
        }
        lqw.eq(bo.getAuthStatus() != null, HymMaterial::getAuthStatus, bo.getAuthStatus());

  

posted @ 2021-10-11 14:29  shijiu520  阅读(47)  评论(0)    收藏  举报