展示10个
This commit is contained in:
@@ -31,7 +31,7 @@ import java.util.stream.Stream;
|
||||
public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticMapper, ShopProdStatistic> implements ShopProdStatisticService {
|
||||
|
||||
@Override
|
||||
public List<ShopProdStatistic> getArchiveTradeDataBy20(Long shopId, Integer day) {
|
||||
public List<ShopProdStatistic> getArchiveTradeDataBy10(Long shopId, Integer day) {
|
||||
LocalDate currentDate = LocalDate.now();
|
||||
LocalDate startDate = currentDate.minusDays(day - 1);
|
||||
List<ShopProdStatistic> archiveTradeData = getArchiveTradeData(shopId, null, "", startDate, currentDate);
|
||||
@@ -43,7 +43,7 @@ public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticM
|
||||
Comparator.nullsLast(BigDecimal::compareTo).reversed()
|
||||
)
|
||||
)
|
||||
.limit(20)
|
||||
.limit(10)
|
||||
.toList();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user