#在使用ssm查询全部遇到的坑
先贴一下代码,
ProductInfoExample productInfoExample=new ProductInfoExample();
ProductInfoExample.Criteria criteria=productInfoExample.createCriteria();
criteria.andProductSelleridEqualTo(sellerSellid);
return this.productInfoMapper.selectByExample(productInfoExample);
这个查询主要的问题是,查询有的数据没有问题,但是查询没有的数据就为空,这当然也没有什么问题。但是当你再次查询正确的差数就会为空。我也不知道是什么问题,只有弃用。
赠人玫瑰,手留余香。希望各位不要走我的老路。