Commit 2a5548c6 by 王召彬

Merge branch 'test' of http://git.dev.2b3.cn/tencent/services into test

parents 0e9e809c 67400b1e
...@@ -14,6 +14,7 @@ use Swoft\Core\ResultInterface; ...@@ -14,6 +14,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferUpdateProfile(string $token, array $data) * @method ResultInterface deferUpdateProfile(string $token, array $data)
* @method ResultInterface deferSelectUser(int $storeId, array $buyerIds, array $fields= ['*']) * @method ResultInterface deferSelectUser(int $storeId, array $buyerIds, array $fields= ['*'])
* @method ResultInterface deferGetRefereeInfo($storeId,$buyerId) * @method ResultInterface deferGetRefereeInfo($storeId,$buyerId)
* @method ResultInterface deferGetByNickname($nickname)
* Interface BuyerInterface * Interface BuyerInterface
* @package App\Lib * @package App\Lib
*/ */
...@@ -90,4 +91,13 @@ interface BuyerInterface ...@@ -90,4 +91,13 @@ interface BuyerInterface
* @return mixed * @return mixed
*/ */
public function getRefereeInfo($storeId,$buyerId); public function getRefereeInfo($storeId,$buyerId);
/**
* 获取(视图)买家信息 by nickname
* @param $nickname
* @return mixed
* @author work
*/
public function getByNickname($nickname);
} }
\ No newline at end of file
...@@ -16,7 +16,7 @@ use Swoft\Core\ResultInterface; ...@@ -16,7 +16,7 @@ use Swoft\Core\ResultInterface;
/** /**
* The interface of coupon service * The interface of coupon service
* *
* @method ResultInterface deferCheckCoupon(int $buyerId, int $storeId, int $couponId, int $itemId) * @method ResultInterface deferCheckCoupon(int $buyerId, int $storeId, int $couponId, array $itemIds)
* @method ResultInterface deferGetCouponRecvdList(int $buyerId, int $storeId, int $subStoreId = 0, int $itemId = 0) * @method ResultInterface deferGetCouponRecvdList(int $buyerId, int $storeId, int $subStoreId = 0, int $itemId = 0)
* @method ResultInterface deferGetDataByCouponId(int $buyerId, int $storeId, int $couponId) * @method ResultInterface deferGetDataByCouponId(int $buyerId, int $storeId, int $couponId)
*/ */
...@@ -40,10 +40,10 @@ interface CouponInterface ...@@ -40,10 +40,10 @@ interface CouponInterface
* @param integer $buyerId * @param integer $buyerId
* @param integer $storeId * @param integer $storeId
* @param integer $couponId * @param integer $couponId
* @param integer $itemId * @param array $itemIds
* @return int|boolen 如果可用返回优惠券的面值,不可用返回false * @return int|boolen 如果可用返回优惠券的面值,不可用返回false
*/ */
public function checkCoupon(int $buyerId, int $storeId, int $couponId, int $itemId); public function checkCoupon(int $buyerId, int $storeId, int $couponId, array $itemIds);
/** /**
* 更新优惠券状态 * 更新优惠券状态
......
...@@ -11,7 +11,8 @@ namespace Hdll\Services\FlowCount\Lib; ...@@ -11,7 +11,8 @@ namespace Hdll\Services\FlowCount\Lib;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferAdd($storeId, array $data) * @method ResultInterface deferAdd(int $storeId, array $data)
* @method ResultInterface deferBrowseAndShare(int $storeId, int $type, array $itemIds)
* Interface VisitorInterface * Interface VisitorInterface
* @package App\Lib * @package App\Lib
*/ */
...@@ -19,7 +20,6 @@ interface VisitorInterface ...@@ -19,7 +20,6 @@ interface VisitorInterface
{ {
/** /**
*
* 添加访客 * 添加访客
* @param int $storeId * @param int $storeId
* @param array $data * @param array $data
...@@ -30,6 +30,29 @@ interface VisitorInterface ...@@ -30,6 +30,29 @@ interface VisitorInterface
* string $data['headImgUrl']=>'访客头像URL' * string $data['headImgUrl']=>'访客头像URL'
* @return mixed * @return mixed
*/ */
public function add($storeId, array $data); public function add(int $storeId, array $data);
/**
* 访问量和转发量
* @param int $storeId 店铺id
* @param int $type 类型:0普通商品 1砍价 2限时购 3拼团
* @param array $itemIds 商品或活动(活动指:砍价、限时购 、拼团)的id列表
* 说明:$itemIds 格式[1,2,3]
* @return ;
* 响应参数:
* [
* 'browseNum' => [
* 'itemId' => '统计数',
* 'itemId' => '统计数',
* ... ...
* ],
* 'shareNum' => [
* 'itemId' => '统计数',
* 'itemId' => '统计数',
* ... ...
* ]
* ]
*/
public function browseAndShare(int $storeId, int $type, array $itemIds);
} }
\ No newline at end of file
...@@ -17,6 +17,10 @@ use Swoft\Core\ResultInterface; ...@@ -17,6 +17,10 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferGetServiceByGoodsId($storeId, $goodsId, $type = 3) * @method ResultInterface deferGetServiceByGoodsId($storeId, $goodsId, $type = 3)
* @method ResultInterface deferGetReturnVisitByGoodsId($storeId, $goodsId, $type = 2) * @method ResultInterface deferGetReturnVisitByGoodsId($storeId, $goodsId, $type = 2)
* @method ResultInterface deferListByIds($ids, $storeId) * @method ResultInterface deferListByIds($ids, $storeId)
* @method ResultInterface deferGetSkuInfo($skuId, $goodsId, $storeId)
* @method ResultInterface deferGetSkuByIds($goodsId, $skuIds, $storeId)
* @method ResultInterface deferGetSkuByGoodsId($goodsId, $storeId)
* @method ResultInterface deferGetSpecAttributeByGoodsId($goodsId, $storeId)
* @method ResultInterface deferAfterServiceTmp($storeId) * @method ResultInterface deferAfterServiceTmp($storeId)
* Interface GoodsInterface * Interface GoodsInterface
* @package Hdll\Services\Goods\Lib * @package Hdll\Services\Goods\Lib
...@@ -99,6 +103,39 @@ interface GoodsInterface ...@@ -99,6 +103,39 @@ interface GoodsInterface
public function listByIds(array $ids, $storeId, $order = ['id', 'DESC']); public function listByIds(array $ids, $storeId, $order = ['id', 'DESC']);
/** /**
* 获取sku信息
* @param $skuId
* @param $goodsId
* @param $storeId
* @return mixed
* @author work
*/
public function getSkuInfo($skuId, $goodsId, $storeId);
/**
* 获取多个sku信息
* @param $goodsId
* @param $skuIds
* @return mixed
* @author work
*/
public function getSkuByIds($goodsId, $skuIds, $storeId);
public function getSkuByGoodsId($goodsId, $storeId);
/**
* 获取商品规格属性
* @param $goodsId
* @param $storeId
* @return mixed
* @author work
*/
public function getSpecAttributeByGoodsId($goodsId, $storeId);
/**
* 添加后续服务模版 * 添加后续服务模版
* @param $storeId * @param $storeId
* @return mixed * @return mixed
......
<?php <?php
namespace Hdll\Services\GroupBooking\Enum; namespace Hdll\Services\GroupBooking\Enum;
class GroupBookingCmqEnum{ class GroupBookingCmqEnum
{
const TOPIC = 'groupBooking'; const TOPIC = 'groupBooking';
const CLOSE_RECORD = 'closeRecord'; const CLOSE_RECORD = 'closeRecord';//关闭拼团
const GROUP_BOOKING = 'groupBooking';//拼团成功回调
} }
\ No newline at end of file
...@@ -17,9 +17,7 @@ class OrderItemEnum ...@@ -17,9 +17,7 @@ class OrderItemEnum
const LOCKED = 4;//锁定 const LOCKED = 4;//锁定
//核销渠道 //核销方式
const DELIVERED_BUYER_BTN = 1; //买家按钮核销 const DELIVERED_BTN = 1; //按钮核销
const DELIVERED_EMPLOYEE_CODE = 2; //店员扫码核销 const DELIVERED_CODE = 2; //扫码核销
const DELIVERED_SELLER_CODE = 3; //店主扫码码核销
const DELIVERED_SELLER_BTN = 4; //店主按钮核销
} }
\ No newline at end of file
...@@ -13,38 +13,41 @@ namespace Hdll\Services\Order\Lib; ...@@ -13,38 +13,41 @@ namespace Hdll\Services\Order\Lib;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
* The interface of demo service * order servcie
* *
* @method ResultInterface deferCreateOrder(int $buyerId,int $storeId,int $consigneeId,int $itemId,int $selectedNum,int $orderType,int $total,int $activityPrice,string $goodsName,string $goodsImage,string $activityName,int $goodsId,int $goodsPrice,string $message = ''); * @method ResultInterface deferGetOrderInfoBySn(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = []) * @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 deferGetOrderInfo(int $storeId,int $orderId) * @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 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 deferCollectionClose(int $storeId, int $orderId) * @method ResultInterface deferUpdateInfoByPids(int $storeId,array $pIds,array $updateInfo)
* @method ResultInterface deferGetOtherInfo(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = []) * @method ResultInterface deferUpdateMainOrderByPid(int $storeId,int $pId,array $mainData,array $subData=[])
* @method ResultInterface deferGetList(int $storeId,array $ids)
* @method ResultInterface deferUnconfirmedCount(int $storeId) * @method ResultInterface deferUnconfirmedCount(int $storeId)
* @method ResultInterface deferGetOrder($orderSn) * @method ResultInterface deferGetSubOrderListBySubIds(int $storeId,array $subIds)
* @method ResultInterface deferOrderCount(int $storeId,int $orderType,array $itemIds)
*/ */
interface OrderInterface interface OrderInterface
{ {
/** /**
* 创建订单 * 创建订单
* *
* @param int $buyerId * @param integer $buyerId
* @param int $storeId * @param integer $storeId
* @param int $consigneeId * @param integer $consigneeId
* @param int $itemId * @param integer $itemId
* @param int $selectedNum * @param integer $selectedNum
* @param int $orderType * @param integer $orderType
* @param int $total * @param integer $activityPrice
* @param int $activityPrice
* @param string $goodsName * @param string $goodsName
* @param string $goodsImage * @param string $goodsImage
* @param string $activityName * @param string $activityName
* @param int $goodsId * @param integer $goodsId
* @param int $goodsPrice * @param integer $goodsPrice
* @param string $message * @param string $message
* @param integer $skuId
* @param integer $subStoreId
* @param integer $couponId
* @return mixed * @return mixed
*/ */
public function createOrder( public function createOrder(
...@@ -54,196 +57,112 @@ interface OrderInterface ...@@ -54,196 +57,112 @@ interface OrderInterface
int $itemId, int $itemId,
int $selectedNum, int $selectedNum,
int $orderType, int $orderType,
int $total,
int $activityPrice, int $activityPrice,
string $goodsName, string $goodsName,
string $goodsImage, string $goodsImage,
string $activityName, string $activityName,
int $goodsId, int $goodsId,
int $goodsPrice, int $goodsPrice,
string $message = '' string $message = '',
int $skuId=0,
int $subStoreId=0,
int $couponId=0
); );
public function getOrderInfo(int $storeId,int $orderId);
public function getOrderInfoBySn(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = []);
public function updateInfoById(int $storeId,int $orderId, array $updateInfo);
public function closeOrder(int $storeId,int $orderId);
/** /**
* 获取订单数据 * 根据子订单ID查询订单详情
* 字段值
* `id`,
`orderSn`,
`paySn`,
`orderType` '订单类型:0普通商品,1活动',
`storeId`, 店铺id
`buyerId` ,买家id
`itemId` '0',
`consigneeId` '付款人(收货人)ID,当线下订单时为空',
`goodsAmount` ,
`orderAmount` '订单应付款',
`actualAmount` '订单实付款',
`refundAmount` '退款金额',
`state` '订单状态:0(已取消)10(默认):未付款;20:已付款;30:已发货/已预约;40:已收货/已核销;50-申请退款;60退款成功,70 已关闭,80,退款中,90,已评价',
`refundState` '0' COMMENT '退款状态:0是无退款,1是部分退款,2是全部退款',
`refundMsg`'退款原因',
`lockState` '锁定状态:0是正常,大于0是锁定',
`lockMsg` '订单锁定原因',
`balanceState` '对账状态:0-未对账,1-已对账',
`balanceTime` '对账时间',
`message` ,
`reservationTime` ,
`createTime` 创建时间,
`updateTime` 更新时间,
`deleteTime` 删除时间,
`sellerId` '卖家id',
`deliveredTime` '核销时间',
* *
* @param integer $storeId 店铺ID
* @param integer $subOrderId 子订单ID
* @param boolean $ifSelf 子订单是否只有自己
* @param boolean $ifExtend 是否涵带附加信息(如门店信息、上级信息等)
* @return array
*/
public function getOrderDetailBySubId(int $storeId,int $subOrderId,$ifSelf=true,bool $ifExtend=false);
/**
* 根据主订单ID查询订单详情
* *
* @param $storeId * @param integer $storeId 店铺ID
* @param $condition * @param integer $pId 主订单ID
* @param array $fields * @param boolean $ifExtend 是否涵带附加信息(如门店信息、上级信息等)
* @return mixed * @return array
*/ */
public function getSimpleList($storeId, $condition, $fields = ['*']); public function getOrderDetailByPid(int $storeId,int $pId, $ifSelf=false, $ifExtend=false);
/** /**
* 退款成功 * 通过订主单orderSn获取订单信息
* *
* @param int $storeId * @param integer $storeId
* @param array $orderInfo * @param string $orderSn
* @return mixed * @param boolean $ifSelf 是否只有主订单信息
* @param boolean $ifExtend 是否涵带附加信息(如门店信息、上级信息等)
* @return array
*/ */
public function refundSuccess(int $storeId, array $orderInfo); public function getOrderDetailByMainSn(int $storeId,string $orderSn, $ifSelf=false, $ifExtend=false);
/** /**
* 拼团关闭订单,含退款 * 根据子订单ID更新子订单信息
* *
* @param int $storeId * @param integer $storeId
* @param int $orderId * @param integer $subId
* @return mixed * @param array $updateInfo
* @return int
*/ */
public function collectionClose(int $storeId, int $orderId); public function updateInfoById(int $storeId,int $subId, array $updateInfo);
/** /**
* 批量更新 * 根据子订单ID批量更新子订单信息
* *
* @param int $storeId * @param int $storeId
* @param array $orderIds * @param array $subIds
* @param array $updateInfo * @param array $updateInfo
* @return mixed * @return int
*/ */
public function updateInfoByIds(int $storeId,array $orderIds, array $updateInfo); public function updateInfoByIds(int $storeId,array $subIds, array $updateInfo);
/** /**
* 获取订单联系人信息,item信息用 * 根据主订单ID批量更新子订单信息
* *
* @param int $storeId * @param integer $storeId
* @param string $orderSn * @param array $pIds
* @param array $consigneeFields * @param array $updateInfo
* @param array $itemFields * @return int
* @return mixed
*/ */
public function getOtherInfo(int $storeId, string $orderSn, array $consigneeFields = [], array $itemFields = []); public function updateInfoByPids(int $storeId,array $pIds,array $updateInfo);
/** /**
* 批量获取订单信息 * 根据主订单ID更新订单信息
* [5]=>
* array(28) {
["id"]=>
string(1) "1"
["orderSn"]=>
string(20) "198bSA93091872375217"
["paySn"]=>
string(28) "4200000198201809300361147593"
["orderType"]=>
string(1) "0"
["storeId"]=>
string(3) "198"
["buyerId"]=>
string(1) "1"
["itemId"]=>
string(1) "1"
["consigneeId"]=>
string(1) "1"
["goodsAmount"]=>
string(1) "1"
["orderAmount"]=>
string(1) "1"
["actualAmount"]=>
string(1) "1"
["refundAmount"]=>
string(1) "1"
["state"]=>
string(2) "60"
["refundState"]=>
string(1) "2"
["refundMsg"]=>
string(30) "身体不适,暂时不做了"
["lockState"]=>
string(1) "0"
["lockMsg"]=>
string(0) ""
["balanceState"]=>
string(1) "0"
["balanceTime"]=>
string(1) "0"
["message"]=>
string(0) ""
["reservationTime"]=>
string(1) "0"
["createTime"]=>
string(10) "1538291872"
["updateTime"]=>
string(10) "1538291953"
["deleteTime"]=>
string(1) "0"
["sellerId"]=>
string(1) "6"
["deliveredTime"]=>
string(1) "0"
["commission"]=>
string(1) "0"
["items"]=>
array(1) {
[0]=>
array(2) {
["name"]=>
string(7) "商品1"
["image"]=>
string(72) "store-198/goods/tmp_7d07ba3c8e10c3cd65de8d98d00cbd5aace9e736ddde0c59.jpg"
}
}
}
}
* *
* @param int $storeId * @param integer $storeId
* @param array $ids * @param integer $pId
* @return mixed * @param array $mainData
* @param array $subData
* @return bool
*/ */
public function getList(int $storeId,array $ids); public function updateMainOrderByPid(int $storeId,int $pId,array $mainData,array $subData=[]);
/** /**
* 统计核销 * 获取未入账统计
*
* array(2) {
["money"]=>
string(1) "8"
["orders"]=>
string(1) "6"
}
* @param int $storeId * @param int $storeId
* @return mixed * @return array
*/ */
public function unconfirmedCount(int $storeId); public function unconfirmedCount(int $storeId);
public function getOrder($orderSn); /**
* 批量查询子订单信息
public function getTotal(int $storeId); *
* @param integer $storeId
* @param array $subIds
* @return array
*/
public function getSubOrderListBySubIds(int $storeId,array $subIds);
/**
* 商品、活动成交量统计
*
* @param integer $storeId
* @param integer $orderType 订单类型(参考OrderEnum订单类型的枚举)
* @param array $itemIds
* @return array
*/
public function orderCount(int $storeId,int $orderType,array $itemIds);
} }
\ No newline at end of file
...@@ -16,8 +16,8 @@ use Swoft\Core\ResultInterface; ...@@ -16,8 +16,8 @@ use Swoft\Core\ResultInterface;
/** /**
* The interface of demo service * The interface of demo service
* *
* @method ResultInterface deferpayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId) * @method ResultInterface deferPayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId)
* @method ResultInterface deferspendCardMoney( int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney) * @method ResultInterface deferSpendCardMoney(int $storeId, int $buyerId, array $subOrders)
* @method ResultInterface deferReturnCardMoney( int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney) * @method ResultInterface deferReturnCardMoney( int $storeId,int $buyerId,int $itemOrderId,string $itemTitle,int $payMoney)
*/ */
interface RechargeInterface interface RechargeInterface
...@@ -41,16 +41,23 @@ interface RechargeInterface ...@@ -41,16 +41,23 @@ interface RechargeInterface
* 花费卡金额 * 花费卡金额
* @param int $storeId * @param int $storeId
* @param int $buyerId * @param int $buyerId
* @param int $goodOrderId * @param array $subOrders
* $subOrders 示例:
* [
* [
* 'id' => 333,
* 'itemName' => 'namenamename',
* 'actualAmount' => 444,
* ],
* [
* 'id' => 555,
* 'itemName' => 'namenamename',
* 'actualAmount' => 666,
* ],
* ]
* @return mixed * @return mixed
*/ */
public function spendCardMoney( public function spendCardMoney(int $storeId, int $buyerId, array $subOrders);
int $storeId,
int $buyerId,
int $itemOrderId,
string $itemTitle,
int $payMoney
);
/** /**
* 退回储值卡金额 * 退回储值卡金额
......
...@@ -22,6 +22,7 @@ use Swoft\Core\ResultInterface; ...@@ -22,6 +22,7 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferPayOrder(int $storeId,string $orderSn,int $payStatus) * @method ResultInterface deferPayOrder(int $storeId,string $orderSn,int $payStatus)
* @method ResultInterface deferGetOrder(int $storeId,int $smsOId) * @method ResultInterface deferGetOrder(int $storeId,int $smsOId)
* @method ResultInterface deferGetOrderBySn(int $storeId,string $sn) * @method ResultInterface deferGetOrderBySn(int $storeId,string $sn)
* @method ResultInterface deferGetCountLeft(int $storeId)
*/ */
interface SMSInterface interface SMSInterface
{ {
...@@ -64,4 +65,13 @@ interface SMSInterface ...@@ -64,4 +65,13 @@ interface SMSInterface
*/ */
public function getOrderBySn(int $storeId,string $sn); public function getOrderBySn(int $storeId,string $sn);
/**
* 根据店铺id 获取剩余的短信条数
*
* @param integer $storeId
* @return int
*/
public function getCountLeft(int $storeId);
} }
...@@ -5,22 +5,26 @@ ...@@ -5,22 +5,26 @@
* Date: 2018/7/25 * Date: 2018/7/25
* Time: 14:00 * Time: 14:00
*/ */
namespace Hdll\Services\SellerDistribution\Lib; namespace Hdll\Services\SellerDistribution\Lib;
use Swoft\Core\ResultInterface; use Swoft\Core\ResultInterface;
/** /**
* @method ResultInterface deferSaveBill($orderId, $sellerId, $money) * @method ResultInterface deferSaveBill($orderId, $sellerId, $money)
* @method ResultInterface deferGetCommission($sellerId) * @method ResultInterface deferGetCommission($sellerId)
* @method ResultInterface deferAddBalance($sellerId, $money, $orderSn='') * @method ResultInterface deferAddBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferReduceBalance($sellerId, $money, $orderSn='') * @method ResultInterface deferReduceBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferListByOrderId($storeId, $orderId,$sellerId) * @method ResultInterface deferListByOrderId($storeId, $orderId, $sellerId)
* @method ResultInterface deferAddTotal($sellerId, $money, $orderSn='') * @method ResultInterface deferAddTotal($sellerId, $money, $orderSn = '')
* @method ResultInterface deferRefundAddBalance($sellerId, $money, $orderSn='') * @method ResultInterface deferRefundAddBalance($sellerId, $money, $orderSn = '')
* @method ResultInterface deferCountVip($storeId, $sellerId) * @method ResultInterface deferCountVip($storeId, $sellerId)
* @method ResultInterface deferSumViewMoneyByStoreIds(array $storeIds)
* Interface SellerDistributionInterface * Interface SellerDistributionInterface
* @package App\Lib * @package App\Lib
*/ */
interface SellerDistributionInterface{ interface SellerDistributionInterface
{
/** /**
...@@ -53,7 +57,7 @@ interface SellerDistributionInterface{ ...@@ -53,7 +57,7 @@ interface SellerDistributionInterface{
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function addBalance($sellerId, $money, $orderSn=''); public function addBalance($sellerId, $money, $orderSn = '');
/** /**
* 减少佣金 * 减少佣金
...@@ -62,7 +66,7 @@ interface SellerDistributionInterface{ ...@@ -62,7 +66,7 @@ interface SellerDistributionInterface{
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function reduceBalance($sellerId, $money, $orderSn=''); public function reduceBalance($sellerId, $money, $orderSn = '');
/** /**
...@@ -73,7 +77,7 @@ interface SellerDistributionInterface{ ...@@ -73,7 +77,7 @@ interface SellerDistributionInterface{
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function listByOrderId($storeId, $orderId,$sellerId); public function listByOrderId($storeId, $orderId, $sellerId);
/** /**
* 更细对账表 * 更细对账表
...@@ -83,7 +87,7 @@ interface SellerDistributionInterface{ ...@@ -83,7 +87,7 @@ interface SellerDistributionInterface{
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function updateBill($storeId,$id,$balanceState); public function updateBill($storeId, $id, $balanceState);
/** /**
* 增加累计提现 * 增加累计提现
...@@ -92,7 +96,7 @@ interface SellerDistributionInterface{ ...@@ -92,7 +96,7 @@ interface SellerDistributionInterface{
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function addTotal($sellerId, $money, $orderSn=''); public function addTotal($sellerId, $money, $orderSn = '');
/** /**
...@@ -102,7 +106,7 @@ interface SellerDistributionInterface{ ...@@ -102,7 +106,7 @@ interface SellerDistributionInterface{
* @return mixed * @return mixed
* @author Administrator * @author Administrator
*/ */
public function refundAddBalance($sellerId, $money, $orderSn=''); public function refundAddBalance($sellerId, $money, $orderSn = '');
/** /**
...@@ -113,4 +117,14 @@ interface SellerDistributionInterface{ ...@@ -113,4 +117,14 @@ interface SellerDistributionInterface{
* @author Administrator * @author Administrator
*/ */
public function countVip($storeId, $sellerId); public function countVip($storeId, $sellerId);
/**
* 统计所有分销金额
* @param array $storeIds
* @return mixed
* @author work
*/
public function sumViewMoneyByStoreIds(array $storeIds);
} }
\ No newline at end of file
...@@ -16,8 +16,8 @@ use Swoft\Core\ResultInterface; ...@@ -16,8 +16,8 @@ use Swoft\Core\ResultInterface;
/** /**
* The interface of demo service * The interface of demo service
* *
* @method ResultInterface deferpayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId) * @method ResultInterface deferPayStatus(int $storeId,int $bargainbranchId,int $status,int $orderId)
* @method ResultInterface deferspendTimesCard( int $storeId,int $buyerId,int $itemOrderId, int $usercardId,int $goodsId,string $itemTitle, int $times) * @method ResultInterface deferSpendTimesCard(int $storeId, int $buyerId, int $usercardId, array $subOrders)
* @method ResultInterface deferReturnCardTimes( int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $times) * @method ResultInterface deferReturnCardTimes( int $storeId,int $buyerId,int $itemOrderId,int $goodsId,string $itemTitle,int $times)
* @method ResultInterface defergetTimesCardUserCardInfo(int $storeId, int $goodsId) * @method ResultInterface defergetTimesCardUserCardInfo(int $storeId, int $goodsId)
*/ */
...@@ -40,25 +40,14 @@ interface TimesCardInterface ...@@ -40,25 +40,14 @@ interface TimesCardInterface
/** /**
* 花费卡次数 * 花费卡次数
*
* @param int $storeId // 商铺id * @param integer $storeId
* @param int $buyerId // 买家ID * @param integer $buyerId
* @param int $itemOrderId // 订单 id * @param integer $usercardId
* @param int $usercardId // 用户卡id * @param array $subOrders
* @param int $goodsId // 商品id * @return bool
* @param string $itemTitle //商品名字
* @param int $times // 花费次数 传 1
* @return mixed
*/ */
public function spendTimesCard( public function spendTimesCard(int $storeId, int $buyerId, int $usercardId, array $subOrders);
int $storeId,
int $buyerId,
int $itemOrderId,
int $usercardId,
int $goodsId,
string $itemTitle,
int $times
);
/** /**
* 退回次卡数量 * 退回次卡数量
......
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