yujian
2019-11-06 bef0ef19d792a16a31a59ec7beafc7b0885529fa
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package com.yeshi.fanli.service.inter.shop;
 
import java.math.BigDecimal;
import java.util.List;
 
import com.yeshi.fanli.entity.shop.BanLiShopGoodsSetsPay;
import com.yeshi.fanli.entity.shop.BanLiShopOrder;
import com.yeshi.fanli.exception.redpack.RedPackBalanceException;
import com.yeshi.fanli.exception.shop.BanLiShopOrderException;
 
/**
 * 板栗商城订单服务
 * 
 * @author Administrator
 *
 */
public interface BanLiShopOrderService {
 
    /**
     * 添加订单
     * 
     * @param order
     * @throws BanLiShopOrderException
     */
    public void addOrder(BanLiShopOrder order) throws BanLiShopOrderException;
    
    
    /**
     * 构造订单
     * @param pay
     * @param uid
     * @return
     * @throws BanLiShopOrderException
     */
    public BanLiShopOrder createOrder(Long goodsSetPayId,String chargeAccount,Long uid) throws BanLiShopOrderException;;
 
    /**
     * 使订单失效
     * 
     * @param id
     */
    public void invalidOrderByOrderId(Long id,String desc);
 
    /**
     * 拒绝订单
     * 
     * @param id
     * @param msg
     * @throws BanLiShopOrderException
     */
    public void rejectOrder(Long id, String msg) throws BanLiShopOrderException;
 
    /**
     * 订单支付(用红包)
     * 
     * @param orderId
     * @throws BanLiShopOrderException
     * @throws RedPackBalanceException
     */
    public void payOrderByHongBao(Long orderId) throws BanLiShopOrderException, RedPackBalanceException;
 
    /**
     * 订单支付(用现金)
     * 
     * @param orderId
     * @throws BanLiShopOrderException
     */
    public void payOrderByMoney(Long orderId, BigDecimal money) throws BanLiShopOrderException;
 
    public BanLiShopOrder selectByPrimaryKeyForUpdate(Long id);
 
    /**
     * 根据用户ID检索
     * 
     * @param uid
     * @param page
     * @param pageSize
     * @return
     */
    public List<BanLiShopOrder> listByUid(Long uid, int page, int pageSize);
 
    /**
     * 根据用户ID计算
     * 
     * @param uid
     * @return
     */
    public long countByUid(Long uid);
 
    /**
     * 根据主键检索
     * 
     * @param id
     * @return
     */
    public BanLiShopOrder selectByPrimaryKey(Long id);
 
    /**
     * 根据主键更新
     * 
     * @param order
     */
    public void udpateSelectiveByPrimaryKey(BanLiShopOrder order);
    
    /**
     * 根据订单号查询
     * @param orderNo
     * @return
     */
    public BanLiShopOrder selectByOrderNo(String orderNo);
 
}