yujian
2019-03-27 cdcbed9af813b2a02cdc01eefa24db8bec6b51a9
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
73
74
75
76
77
78
79
package com.yeshi.fanli.service.inter.goods;
 
import java.math.BigDecimal;
import java.util.List;
 
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
import com.yeshi.fanli.exception.ShareGoodsException;
 
public interface TaoBaoGoodsBriefService {
 
    /**
     * 获取单个商品用户能够分得的红包
     * 
     * @param goods
     * @return
     */
    public String getGoodsUserHongBao(TaoBaoGoodsBrief goods);
 
    /**
     * 获取分享商品所能得到的红包
     * 
     * @param goods
     * @return
     */
    public BigDecimal getShareGoodsUserHongBao(TaoBaoGoodsBrief goods);
 
    /**
     * 根据auctionId 查询商品信息
     * 
     * @param auctionId
     * @return
     */
    List<TaoBaoGoodsBrief> queryByAuctionId(Long auctionId);
 
    /**
     * 选择行插入数据
     * 
     * @param taoBaoGoodsBrief
     * @return
     */
    public int insertSelective(TaoBaoGoodsBrief taoBaoGoodsBrief);
 
    public TaoBaoGoodsBrief selectByPrimaryKey(Long id);
 
    /**
     * 设置默认值
     * 
     * @param goodsBrief
     * @return
     */
    public void setGoodsBriefDefault(TaoBaoGoodsBrief goodsBrief);
 
    /**
     * 获取商品详情(用于分享)
     * 
     * @param auctionId
     * @param info
     * @return 返回的淘宝链接是通过转链了的
     */
    public TaoBaoGoodsBrief getTaoBaoGoodsDetailForShare(Long auctionId, Long uid) throws ShareGoodsException;
 
    /**
     * 批量插入商品
     * @param list
     * @return
     */
    public int insertBatch(List<TaoBaoGoodsBrief> list);
 
    
    /**
     * 批量查询根据AuctionId
     * @param list
     * @return
     */
    public List<TaoBaoGoodsBrief> listQueryByAuctionId(List<Long> list);
 
 
 
}