| | |
| | | .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(); |