首页商品排行排名

This commit is contained in:
liuyingfang
2024-03-15 15:05:34 +08:00
parent 0ad9234279
commit 510b6a22ca
3 changed files with 31 additions and 4 deletions

View File

@@ -189,10 +189,10 @@ public class SummaryServiceImpl implements SummaryService {
throw new BadRequestException("日期有误");
}
List<Object[]> objects = shopUserDutyDetailRepository.searchByDutyId(shopId,startTime,endTime,currentPage,currentSize);
List<ProductVO> list = new ArrayList<>();
List<ProductExtVO> list = new ArrayList<>();
for (Object[] o :objects) {
ProductVO productVO = new ProductVO();
productVO.setProductId((Integer) o[0]);
ProductExtVO productVO = new ProductExtVO();
productVO.setProductId((BigInteger) o[0]);
productVO.setProductName((String) o[1]);
productVO.setProductNum((BigDecimal)o[2]);
productVO.setAmount((BigDecimal)o[3]);