|
|
|
@@ -156,12 +156,13 @@ public class WxCouponChannelServiceImpl implements WxCouponChannelService { |
|
|
|
return new ResultData(Result.SUCCESS, "查询成功", data); |
|
|
|
} |
|
|
|
Long finalCouponId = couponId; |
|
|
|
int size = voList.size(); |
|
|
|
data.put("size", size); |
|
|
|
voList = voList.stream() |
|
|
|
.filter(wxCouponChannelVo -> !wxCouponChannelVo.getCouponId().equals(finalCouponId)) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
int size = voList.size(); |
|
|
|
size = voList.size(); |
|
|
|
Random random = new Random(); |
|
|
|
data.put("size", size); |
|
|
|
data.put("data", voList.get(random.nextInt(size))); |
|
|
|
return new ResultData(Result.SUCCESS, "查询成功", data); |
|
|
|
} |
|
|
|
|