From e52f7e0ddb2ccdd8000d3e874ebfc841f901a7d8 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期一, 30 十二月 2024 14:05:59 +0800 Subject: [PATCH] 小程序 --- manage/src/main/java/com/jilongda/manage/controller/TCouponController.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/manage/src/main/java/com/jilongda/manage/controller/TCouponController.java b/manage/src/main/java/com/jilongda/manage/controller/TCouponController.java index 28ac072..cd25446 100644 --- a/manage/src/main/java/com/jilongda/manage/controller/TCouponController.java +++ b/manage/src/main/java/com/jilongda/manage/controller/TCouponController.java @@ -154,9 +154,18 @@ .eq(TCouponReceive::getCouponId, id) .eq(TCouponReceive::getStatus, 2)).size(); tCouponInfoVO.setUseCount(size1); - + if (byId.getType()==3){ + // 查询领取人 + List<Integer> collect = couponReceiveService.lambdaQuery() + .eq(TCouponReceive::getCouponId, id).list() + .stream().map(TCouponReceive::getUserId) + .distinct() + .collect(Collectors.toList()); + tCouponInfoVO.setUserIds(collect); + } return ApiResult.success(tCouponInfoVO); } + public static MultipartFile convert(BufferedImage bufferedImage, String fileName) throws IOException { // 将 BufferedImage 转换为字节数组 ByteArrayOutputStream baos = new ByteArrayOutputStream(); -- Gitblit v1.7.1