Commit 2f814bbd by xmy

feat:分销金额

parent 39e365b9
......@@ -5,22 +5,25 @@
* Date: 2018/7/25
* Time: 14:00
*/
namespace Hdll\Services\SellerDistribution\Lib;
use Swoft\Core\ResultInterface;
/**
* @method ResultInterface deferSaveBill($orderId, $sellerId, $money)
* @method ResultInterface deferGetCommission($sellerId)
* @method ResultInterface deferAddBalance($sellerId, $money, $orderSn='')
* @method ResultInterface deferReduceBalance($sellerId, $money, $orderSn='')
* @method ResultInterface deferListByOrderId($storeId, $orderId,$sellerId)
* @method ResultInterface deferAddTotal($sellerId, $money, $orderSn='')
* @method ResultInterface deferRefundAddBalance($sellerId, $money, $orderSn='')
* @method ResultInterface deferAddBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferReduceBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferListByOrderId($storeId, $orderId, $sellerId)
* @method ResultInterface deferAddTotal($sellerId, $money, $orderSn = '')
* @method ResultInterface deferRefundAddBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferCountVip($storeId, $sellerId)
* Interface SellerDistributionInterface
* @package App\Lib
*/
interface SellerDistributionInterface{
interface SellerDistributionInterface
{
/**
......@@ -53,7 +56,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public function addBalance($sellerId, $money, $orderSn='');
public function addBalance($sellerId, $money, $orderSn = '');
/**
* 减少佣金
......@@ -62,7 +65,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public function reduceBalance($sellerId, $money, $orderSn='');
public function reduceBalance($sellerId, $money, $orderSn = '');
/**
......@@ -73,7 +76,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public function listByOrderId($storeId, $orderId,$sellerId);
public function listByOrderId($storeId, $orderId, $sellerId);
/**
* 更细对账表
......@@ -83,7 +86,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public function updateBill($storeId,$id,$balanceState);
public function updateBill($storeId, $id, $balanceState);
/**
* 增加累计提现
......@@ -92,7 +95,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public function addTotal($sellerId, $money, $orderSn='');
public function addTotal($sellerId, $money, $orderSn = '');
/**
......@@ -102,7 +105,7 @@ interface SellerDistributionInterface{
* @return mixed
* @author Administrator
*/
public function refundAddBalance($sellerId, $money, $orderSn='');
public function refundAddBalance($sellerId, $money, $orderSn = '');
/**
......@@ -113,4 +116,14 @@ interface SellerDistributionInterface{
* @author Administrator
*/
public function countVip($storeId, $sellerId);
/**
* 统计所有分销金额
* @param array $storeIds
* @return mixed
* @author work
*/
public function sumViewMoneyByStoreIds(array $storeIds);
}
\ 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