peng
8 天以前 75f9783d5a70a5f037e3b34dc0e479069e63c0e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cn.lili.modules.goods.service;
 
import cn.lili.modules.goods.entity.dos.Wholesale;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * @author paulG
 * @since 2022/5/24
 **/
public interface WholesaleService extends IService<Wholesale> {
 
 
    List<Wholesale> findByGoodsId(String goodsId);
 
    List<Wholesale> findByTemplateId(String templateId);
 
    Boolean removeByGoodsId(String goodsId);
 
 
    Boolean removeByTemplateId(String templateId);
 
    /**
     * 匹配批发规则
     *
     * @param goodsId 商品规则
     * @param num 数量
     * @return 批发规则
     */
    Wholesale match(String goodsId, Integer num);
 
}