Mybatis-Plus传入实体类查询

@Override
public List<SpecParam> queryParamsByGid(Long gid, Long cid, Boolean generic, Boolean searching) {
    SpecParam specParam = new SpecParam();
    specParam.setGroupId(gid);
    specParam.setCid(cid);
    specParam.setGeneric(generic);
    specParam.setSearching(searching);

    QueryWrapper<SpecParam> queryWrapper = new QueryWrapper<>(specParam);
    return specParamMapper.selectList(queryWrapper);
}
上一篇:mybatisplus报错:getSqlFirst


下一篇:springboot + mybatis plus强大的条件构造器queryWrapper、updateWrapper