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);
|
|
}
|