此方法代码是复制上一个获取积分订单的代码,上一个代码完美运行查到数据并返回。但是此方法运行查询数据库却是null。我以为是SQL语句的错误,结果在数据库里运行能查到数据。我麻了
public IPage<OrderSimpleVO> querySellerIntegralByParams(OrderSearchParams orderSearchParams) {
QueryWrapper queryWrapper = orderSearchParams.queryWrapper();
queryWrapper.groupBy("id");
queryWrapper.orderByDesc("id");
IPage<OrderSimpleVO> orderSimpleVOIPage = this.baseMapper.querySellerIntegralByParams(PageUtil.initPage(orderSearchParams),queryWrapper);
List<OrderSimpleVO> orderSimpleVOList = orderSimpleVOIPage.getRecords();
for(OrderSimpleVO orderSimpleVO : orderSimpleVOList){
String priceDetail = orderSimpleVO.getPriceDetail();
PriceDetailVO priceDetailVO = JSONUtil.toBean(priceDetail,PriceDetailVO.class);
Long payPoint = priceDetailVO.getPayPoint();
orderSimpleVO.setPayPoint(payPoint);
}
orderSimpleVOIPage.setRecords(orderSimpleVOList);
return orderSimpleVOIPage;
}
debug结果:
有遇到此问题的朋友支个招吧,我已经找了两天了(流泪)