| | |
| | | package com.ruoyi.member.service.impl.coupon; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.member.domain.pojo.coupon.CouponRelGoods; |
| | | import com.ruoyi.member.mapper.coupon.CouponRelGoodsMapper; |
| | | import com.ruoyi.member.service.coupon.CouponRelGoodsService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | |
| | | @Service |
| | | public class CouponRelGoodsServiceImpl extends ServiceImpl<CouponRelGoodsMapper, CouponRelGoods> implements CouponRelGoodsService { |
| | | |
| | | /** |
| | | * @description 刪除优惠券关联 |
| | | * @author jqs |
| | | * @date 2023/6/13 17:05 |
| | | * @param |
| | | * @return void |
| | | */ |
| | | @Override |
| | | public void deleteCouponRelByCouponId(String couponId){ |
| | | LambdaUpdateWrapper<CouponRelGoods> wrapper = new LambdaUpdateWrapper<>(); |
| | | wrapper.eq(CouponRelGoods::getCouponId, couponId); |
| | | wrapper.eq(CouponRelGoods::getDelFlag, 0); |
| | | wrapper.set(CouponRelGoods::getDelFlag, 1); |
| | | this.update(wrapper); |
| | | } |
| | | } |