From c37592f87c700d7301d595af7a8259c4f78040e7 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期三, 27 八月 2025 10:25:53 +0800 Subject: [PATCH] 抽奖活动 --- framework/src/main/java/cn/lili/modules/lmk/service/impl/PrizeDrawServiceImpl.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/framework/src/main/java/cn/lili/modules/lmk/service/impl/PrizeDrawServiceImpl.java b/framework/src/main/java/cn/lili/modules/lmk/service/impl/PrizeDrawServiceImpl.java index dc2d489..365366d 100644 --- a/framework/src/main/java/cn/lili/modules/lmk/service/impl/PrizeDrawServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/lmk/service/impl/PrizeDrawServiceImpl.java @@ -132,10 +132,10 @@ IPage<PrizeDrawVO> page = PageUtil.getPage(query, PrizeDrawVO.class); baseMapper.getPage(page, query); for (PrizeDrawVO vo : page.getRecords()) { - if (vo.getPrizeCover() != null && StringUtils.isNotBlank(vo.getPrizeCover())){ + if (StringUtils.isNotBlank(vo.getPrizeCover())){ vo.setPrizeCoverUrl(cOSUtil.getPreviewUrl(vo.getPrizeCover())); } - if (vo.getPrizeImg() != null && StringUtils.isNotBlank(vo.getPrizeImg())){ + if (StringUtils.isNotBlank(vo.getPrizeImg())){ vo.setPrizeImgUrl(cOSUtil.getPreviewUrl(vo.getPrizeImg())); } } @@ -166,4 +166,9 @@ .collect(Collectors.toList()); return Result.ok().data(vos); } + + @Override + public Result grantRecord(String prizeActivityId) { + return Result.ok().data(baseMapper.grantRecord(prizeActivityId)); + } } -- Gitblit v1.8.0