mitao
2024-11-04 11fa4b3bcdda902de8d9818038a1bd35beaa5ec4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.ruoyi.promotion.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.api.domain.PromotionWishRecommend;
import org.apache.ibatis.annotations.Param;
 
/**
 * <p>
 * 心愿求购平台推荐商品 Mapper 接口
 * </p>
 *
 * @author mitao
 * @since 2024-10-29
 */
public interface PromotionWishRecommendMapper extends BaseMapper<PromotionWishRecommend> {
    /**
     * 扣减推荐商品库存
     * @param goodsQuantity
     * @param id
     * @return
     */
    Integer subRecommendAvailableNum(@Param("goodsQuantity") Integer goodsQuantity, @Param("id")Long id);
}