From 7fff6e9d9b1f7663fb09642b4a2635a5ab56aa4c Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期三, 08 一月 2025 11:19:35 +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