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);
}
标签:QueryWrapper,实体类,generic,searching,Long,specParam,gid,Plus,Mybatis 来源: https://blog.csdn.net/qingyuan2014/article/details/113495267