|
|
@@ -149,7 +149,7 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
.filter(wxCouponChannelVo -> !wxCouponChannelVo.getCouponId().equals(finalCouponId)) |
|
|
.filter(wxCouponChannelVo -> !wxCouponChannelVo.getCouponId().equals(finalCouponId)) |
|
|
.collect(Collectors.toList()); |
|
|
.collect(Collectors.toList()); |
|
|
if (!voList.isEmpty()) { |
|
|
if (!voList.isEmpty()) { |
|
|
int size = voList.size() - 1; |
|
|
|
|
|
|
|
|
int size = voList.size(); |
|
|
Random random = new Random(); |
|
|
Random random = new Random(); |
|
|
return voList.get(random.nextInt(size)); |
|
|
return voList.get(random.nextInt(size)); |
|
|
} |
|
|
} |
|
|
|