admin
2019-11-08 ae6bf015031bd6579cc719ee7689d8160e3d92d2
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
package com.yeshi.fanli.service.inter.shop;
 
import java.math.BigDecimal;
import java.util.List;
 
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);
 
    /**
     * 根据用户ID,状态查询
     * 
     * @param uid
     * @param stateList
     * @param page
     * @param pageSize
     * @return
     */
    public List<BanLiShopOrder> listByUidAndState(Long uid, List<Integer> stateList, int page, int pageSize);
 
    /**
     * 根据用户ID,状态查询
     * 
     * @param uid
     * @param stateList
     * @return
     */
    public long countByUidAndState(Long uid, List<Integer> stateList);
 
    /**
     * 根据主键检索
     * 
     * @param id
     * @return
     */
    public BanLiShopOrder selectByPrimaryKey(Long id);
 
    /**
     * 根据主键更新
     * 
     * @param order
     */
    public void udpateSelectiveByPrimaryKey(BanLiShopOrder order);
 
    /**
     * 根据订单号查询
     * 
     * @param orderNo
     * @return
     */
    public BanLiShopOrder selectByOrderNo(String orderNo);
 
}