Commit 677ea756 by dzhang

批量查询指定日期及店铺的交易统计数据

parent 92eea1a3
......@@ -32,6 +32,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetShopNewOrderNum(int $storeId)
* @method ResultInterface deferOrderCountByCondition(int $storeId,array $condition)
* @method ResultInterface deferBuyerSpendAmount(int $storeId,int $buyerId)
* @method ResultInterface deferBanchGetShopStByDate(array $storeIds,int $date)
*/
interface OrderInterface
{
......@@ -225,4 +226,21 @@ interface OrderInterface
* @return int
*/
public function buyerSpendAmount(int $storeId,int $buyerId);
/**
* 批量查询指定日期及店铺的交易统计数据
*
* @param array $storeIds
* @param integer $date
* @return array
* [
* [
* 'storeId' => 11,//店铺ID
* 'buyerNum' => 0,//买家数
* 'orderNum' => 0,//订单数
* 'orderAmount' => 0//营业金额
* ]
* ]
*/
public function banchGetShopStByDate(array $storeIds,int $date);
}
\ No newline at end of file
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