From cd39f10c169bbe7ca0acc4c9a50443c35bf10033 Mon Sep 17 00:00:00 2001 From: liujiang <569804566@qq.com> Date: Wed, 3 Dec 2025 22:40:17 +0800 Subject: [PATCH] =?UTF-8?q?master=EF=BC=9A=E6=A1=A3=E5=8F=A3=E6=8E=A8?= =?UTF-8?q?=E5=B9=BF=E8=AE=A2=E8=B4=AD=E5=8F=B3=E4=BE=A7=20=E5=B7=B2?= =?UTF-8?q?=E8=B4=AD=E6=8E=A8=E5=B9=BF=E4=BD=8D=20=E7=AB=9E=E4=BB=B7?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=9C=80=E9=AB=98=E4=BB=B7BUG?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/xkt/service/impl/AdvertRoundServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xkt/src/main/java/com/ruoyi/xkt/service/impl/AdvertRoundServiceImpl.java b/xkt/src/main/java/com/ruoyi/xkt/service/impl/AdvertRoundServiceImpl.java index 8796365bf..357ae53ff 100644 --- a/xkt/src/main/java/com/ruoyi/xkt/service/impl/AdvertRoundServiceImpl.java +++ b/xkt/src/main/java/com/ruoyi/xkt/service/impl/AdvertRoundServiceImpl.java @@ -438,11 +438,11 @@ public class AdvertRoundServiceImpl implements IAdvertRoundService { }) .collect(Collectors.toList()); // showType 为 时间范围的 每一轮最高的出价map - Map timeRangeRoundMaxPriceMap = allRoundList.stream() + Map timeRangeRoundMaxPriceMap = allRoundList.stream() .filter(x -> Objects.equals(x.getShowType(), AdShowType.TIME_RANGE.getValue())) .filter(x -> ObjectUtils.isNotEmpty(x.getPayPrice())) - .collect(Collectors.groupingBy(AdvertRound::getRoundId, Collectors - .mapping(AdvertRound::getPayPrice, Collectors.reducing(BigDecimal.ZERO, BigDecimal::max)))); + .collect(Collectors.groupingBy(x -> x.getTypeId().toString() + ":" + x.getRoundId().toString(), + Collectors.reducing(BigDecimal.ZERO, AdvertRound::getPayPrice, BigDecimal::max))); // showType 为 位置枚举的 每一个位置最高出价的 map Map positionEnumMaxPriceMap = allRoundList.stream() .filter(x -> Objects.equals(x.getShowType(), AdShowType.POSITION_ENUM.getValue())) @@ -473,7 +473,7 @@ public class AdvertRoundServiceImpl implements IAdvertRoundService { // 设置是否能购买推广位 .setCanPurchased(DateUtils.getTime().compareTo(this.getDeadline(record.getSymbol())) > 0 ? Boolean.FALSE : Boolean.TRUE) .setBiddingStatusName(AdBiddingStatus.of(record.getBiddingStatus()).getLabel() - + ",最新出价:" + timeRangeRoundMaxPriceMap.get(record.getRoundId()))); + + ",最新出价:" + timeRangeRoundMaxPriceMap.get(record.getTypeId().toString() + ":" + record.getRoundId().toString()))); }); } if (MapUtils.isNotEmpty(boughtFailPositionMap)) {