Commit 15bc4bac by dzhang

add getOrderDetailByMainSn

parent 346d775d
......@@ -18,6 +18,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferCreateOrder(int $buyerId,int $storeId,int $consigneeId,int $itemId,int $selectedNum,int $orderType,int $activityPrice,string $goodsName,string $goodsImage,string $activityName,int $goodsId,int $goodsPrice,string $message='',int $skuId=0,int $subStoreId=0,int $couponId=0);
* @method ResultInterface deferGetOrderDetailBySubId(int $storeId,int $subOrderId,$ifSelf=true,bool $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false)
*
* @method ResultInterface deferUpdateInfoById(int $storeId,int $orderId, array $updateInfo)
* @method ResultInterface deferGetSimpleList($storeId, $condition, $fields = ['*'])
......@@ -89,7 +90,16 @@ interface OrderInterface
*/
public function getOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false);
public function getOrderInfoBySn(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = []);
/**
* 通过订主单orderSn获取订单信息
*
* @param integer $storeId
* @param string $orderSn
* @param boolean $ifSelf 是否只有主订单信息
* @param boolean $ifExtend 是否涵带附加信息(如门店信息、上级信息等)
* @return array
*/
public function getOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false);
public function updateInfoById(int $storeId,int $orderId, array $updateInfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment