Commit 2fe2a2c3 by dzhang

根据主订单ID更新订单信息

parent 15bc4bac
...@@ -19,10 +19,11 @@ use Swoft\Core\ResultInterface; ...@@ -19,10 +19,11 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetOrderDetailBySubId(int $storeId,int $subOrderId,$ifSelf=true,bool $ifExtend=false) * @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 deferGetOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false)
* @method ResultInterface deferGetOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false) * @method ResultInterface deferGetOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false)
* * @method ResultInterface deferUpdateMainOrderByPid(int $storeId,int $pId,array $mainData,array $subData=[])
* @method ResultInterface deferUpdateInfoById(int $storeId,int $orderId, array $updateInfo) * @method ResultInterface deferUpdateInfoById(int $storeId,int $orderId, array $updateInfo)
* @method ResultInterface deferGetSimpleList($storeId, $condition, $fields = ['*'])
* @method ResultInterface deferUpdateInfoByIds(int $storeId,array $orderIds, array $updateInfo) * @method ResultInterface deferUpdateInfoByIds(int $storeId,array $orderIds, array $updateInfo)
*
* @method ResultInterface deferGetSimpleList($storeId, $condition, $fields = ['*'])
* @method ResultInterface deferCollectionClose(int $storeId, int $orderId) * @method ResultInterface deferCollectionClose(int $storeId, int $orderId)
* @method ResultInterface deferGetOtherInfo(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = []) * @method ResultInterface deferGetOtherInfo(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = [])
* @method ResultInterface deferGetList(int $storeId,array $ids) * @method ResultInterface deferGetList(int $storeId,array $ids)
...@@ -101,8 +102,37 @@ interface OrderInterface ...@@ -101,8 +102,37 @@ interface OrderInterface
*/ */
public function getOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false); public function getOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false);
/**
* 根据订单ID更新子订单信息
*
* @param integer $storeId
* @param integer $orderId
* @param array $updateInfo
* @return mixed
*/
public function updateInfoById(int $storeId,int $orderId, array $updateInfo); public function updateInfoById(int $storeId,int $orderId, array $updateInfo);
/**
* 批量更新
*
* @param int $storeId
* @param array $orderIds
* @param array $updateInfo
* @return mixed
*/
public function updateInfoByIds(int $storeId,array $orderIds, array $updateInfo);
/**
* 根据主订单ID更新订单信息
*
* @param integer $storeId
* @param integer $pId
* @param array $mainData
* @param array $subData
* @return bool
*/
public function updateMainOrderByPid(int $storeId,int $pId,array $mainData,array $subData=[]);
public function closeOrder(int $storeId,int $orderId); public function closeOrder(int $storeId,int $orderId);
/** /**
...@@ -162,15 +192,7 @@ interface OrderInterface ...@@ -162,15 +192,7 @@ interface OrderInterface
*/ */
public function collectionClose(int $storeId, int $orderId); public function collectionClose(int $storeId, int $orderId);
/**
* 批量更新
*
* @param int $storeId
* @param array $orderIds
* @param array $updateInfo
* @return mixed
*/
public function updateInfoByIds(int $storeId,array $orderIds, array $updateInfo);
/** /**
* 获取订单联系人信息,item信息用 * 获取订单联系人信息,item信息用
......
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