yujian
2019-12-02 c0284d7ae6d59aa1146aa5d4123ec7c4b44892da
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.yeshi.fanli.service.inter.taobao;
 
import java.util.List;
 
import com.yeshi.fanli.entity.taobao.TLJFreeBuyGoods;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
 
/**
 * 红包免单商品
 * 
 * @author Administrator
 *
 */
public interface TLJFreeBuyGoodsService {
 
    /**
     * 添加自购立减商品
     * 
     * @param goods
     */
    public void addGoods(TLJFreeBuyGoods goods);
 
    /**
     * 根据日期查找
     * 
     * @param day
     * @return
     */
    public List<TLJFreeBuyGoods> listByDay(String day);
 
    /**
     * 根据appkey与日期查找
     * 
     * @param appKey
     * @param day
     * @param count
     * @return
     */
    public List<TLJFreeBuyGoods> listByDay(String day, int count);
 
    /**
     * 根据主键删除
     * 
     * @param id
     */
    public void deleteById(String id);
 
 
    /**
     * 根据商品id删除
     * 
     * @param goodsId
     */
    public void deleteByGoodsId(Long goodsId);
    
    /**
     * 根据商品ID和日期查询
     * 
     * @param auctionId
     * @param day
     * @return
     */
    public TLJFreeBuyGoods selectByAuctionIdAndDay(Long auctionId, String day);
 
    /**
     * 预选商品
     * @param page
     * @return
     */
    public List<TaoBaoGoodsBrief> listPreGoods(String key, int page);
 
}