From 3fb8fc0d2093a0646b11e5f2dc3b78bd6b633635 Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期三, 14 六月 2023 18:40:26 +0800 Subject: [PATCH] 活动管理 --- ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/activity/ActivityGoodsServiceImpl.java | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/activity/ActivityGoodsServiceImpl.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/activity/ActivityGoodsServiceImpl.java index c767f16..33cf898 100644 --- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/activity/ActivityGoodsServiceImpl.java +++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/impl/activity/ActivityGoodsServiceImpl.java @@ -4,12 +4,16 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.goods.domain.vo.MgtActivityGoodsListVo; import com.ruoyi.goods.mapper.activity.ActivityGoodsMapper; import com.ruoyi.goods.service.activity.ActivityGoodsService; import com.ruoyi.system.api.domain.poji.activity.ActivityGoods; import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; /** * <p> @@ -21,6 +25,9 @@ */ @Service public class ActivityGoodsServiceImpl extends ServiceImpl<ActivityGoodsMapper, ActivityGoods> implements ActivityGoodsService { + + @Resource + private ActivityGoodsMapper activityGoodsMapper; /** * 通过id获取活动商品 @@ -50,4 +57,16 @@ wrapper.set(ActivityGoods::getDelFlag, 1); this.update(wrapper); } + + /** + * @description + * @author jqs + * @date 2023/6/14 18:02 + * @param + * @return List<MgtActivityGoodsListVo> + */ + @Override + public List<MgtActivityGoodsListVo> listVoByActivityId(String activityId){ + return activityGoodsMapper.listVoByActivityId(activityId); + } } -- Gitblit v1.7.1