admin
2019-07-15 be44007f1ffdd4d391fd360dce24a3423e37bcc6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.yeshi.fanli.service.inter.order;
 
import java.util.concurrent.locks.ReentrantReadWriteLock;
 
import com.yeshi.fanli.entity.bus.user.Order;
 
public interface OrderService {
 
    public final static ReentrantReadWriteLock orderLock = new ReentrantReadWriteLock(true);
 
    public boolean addOrder(Order order) throws Exception;
 
    public Order findOrderByOrderIdAndType(String orderId, int type);
 
    /**
     * 查看出系统添加的一个订单
     * 
     * @param type
     * @param id
     * @return
     */
    public Order getSystemOrderByUid(int type, long id);
 
}