谷粒商城项目中AttrAttrgroupRelationServiceImpl.java类中报错,点击显示Wrong number of type arguments: 1; required: 3
原因分析:
导入了
import com.baomidou.mybatisplus.core.conditions.query.Query;
这是mabatisplus提供的类,人人开源提供了自己的query类,本类中方法需要导入的是人人开源的类即utils下的Query包
解决方案:
在Common模块中导入人人开源utils包下的的Query类,并修改导入的包
import com.meowsauce.gulimall.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meowsauce.gulimall.common.utils.PageUtils;
import com.meowsauce.gulimall.product.dao.AttrAttrgroupRelationDao;
import com.meowsauce.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.meowsauce.gulimall.product.service.AttrAttrgroupRelationService;
import org.springframework.stereotype.Service;
import java.util.Map;
@Service("attrAttrgroupRelationService")
public class AttrAttrgroupRelationServiceImpl extends ServiceImpl<AttrAttrgroupRelationDao, AttrAttrgroupRelationEntity> implements AttrAttrgroupRelationService {
@Override
public PageUtils queryPage(Map<String, Object> params) {
IPage<AttrAttrgroupRelationEntity> page = this.page(
new Query<AttrAttrgroupRelationEntity>().getPage(params),
new QueryWrapper<AttrAttrgroupRelationEntity>()
);
return new PageUtils(page);
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)