|
|
|
@ -58,7 +58,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function communityAwardByPlatNewUser($user_id, $source_id, $money, $user_type=2, $source_type=1, $money_type=1, $desc='新用户奖励', $comment='社区服务点') |
|
|
|
public function communityAwardByPlatNewUser( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_CS, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_CS_PLAT_NEW_USER, |
|
|
|
$desc='新用户奖励', |
|
|
|
$comment='社区服务点' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 维护社区服务点余额
|
|
|
|
@ -73,7 +82,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function communityAwardByPlatNewUserFirstOLOrder($user_id, $source_id, $money, $user_type=2, $source_type=1, $money_type=2, $desc='新用户首单奖励', $comment='社区服务点') |
|
|
|
public function communityAwardByPlatNewUserFirstOLOrder( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_CS, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_CS_FIRST_ORDER, |
|
|
|
$desc='新用户首单奖励', |
|
|
|
$comment='社区服务点' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 维护社区服务点余额
|
|
|
|
@ -88,7 +106,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function communitySeparateAccountsByOrderComp($user_id, $source_id, $money, $user_type=2, $source_type=1, $money_type=3, $desc='用户订单分成', $comment='社区服务点') |
|
|
|
public function communitySeparateAccountsByOrderComp( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_CS, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_CS_OL_ORDER, |
|
|
|
$desc='用户订单分成', |
|
|
|
$comment='社区服务点' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 维护社区服务点余额
|
|
|
|
@ -104,7 +131,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function storeAwardByPlatNewUserOFLOrder($user_id, $source_id, $money, $user_type=1, $source_type=1, $money_type=4, $desc='新用户下单奖励', $comment='用户当面付商户奖励') |
|
|
|
public function storeAwardByPlatNewUserOFLOrder( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_STORE, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_STORE_PLAT_NEW_USER, |
|
|
|
$desc='新用户下单奖励', |
|
|
|
$comment='用户当面付商户奖励' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 同时维护钱包
|
|
|
|
@ -116,7 +152,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function storeAwardByTodayFirstOFLOrder($user_id, $source_id, $money, $user_type=1, $source_type=1, $money_type=5, $desc='用户店铺首单奖励', $comment='用户当面付商户奖励') |
|
|
|
public function storeAwardByTodayFirstOFLOrder( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_STORE, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_STORE_FIRST_ORDER, |
|
|
|
$desc='用户店铺首单奖励', |
|
|
|
$comment='用户当面付商户奖励' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 同时维护钱包
|
|
|
|
@ -147,7 +192,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function userByOFLOrderPaid($user_id, $source_id, $money, $user_type=1, $source_type=1, $money_type=100, $desc='用户下单(线下)', $comment='用户下单') |
|
|
|
public function userByOFLOrderPaid( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_USER, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_USER_OFL_ORDER, |
|
|
|
$desc='用户下单(线下)', |
|
|
|
$comment='用户下单' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
} |
|
|
|
@ -155,7 +209,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function userByOLOrderPaid($user_id, $source_id, $money, $user_type=1, $source_type=1, $money_type=101, $desc='用户下单(线上)', $comment='用户下单') |
|
|
|
public function userByOLOrderPaid( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type=FinancialRecord::USER_TYPE_USER, |
|
|
|
$source_type=FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type=FinancialRecord::MONEY_TYPE_USER_OL_ORDER, |
|
|
|
$desc='用户下单(线上)', |
|
|
|
$comment='用户下单' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
} |
|
|
|
@ -163,7 +226,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function storeByOLOrderComp($user_id, $source_id, $money, $user_type = 1, $source_type = 1, $money_type = 6, $desc = '线上外卖订单收入', $comment = '用户订单完成') |
|
|
|
public function storeByOLOrderComp( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type = FinancialRecord::USER_TYPE_STORE, |
|
|
|
$source_type = FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type = FinancialRecord::MONEY_TYPE_STORE_OL_ORDER_COMP, |
|
|
|
$desc = '线上外卖订单收入', |
|
|
|
$comment = '用户订单完成' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 同时维护钱包
|
|
|
|
@ -175,7 +247,16 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
*/ |
|
|
|
public function storeByOFLOrderComp($user_id, $source_id, $money, $user_type = 1, $source_type = 1, $money_type = 7, $desc = '线下当面付订单收入', $comment = '用户订单完成') |
|
|
|
public function storeByOFLOrderComp( |
|
|
|
$user_id, |
|
|
|
$source_id, |
|
|
|
$money, |
|
|
|
$user_type = FinancialRecord::USER_TYPE_STORE, |
|
|
|
$source_type = FinancialRecord::SOURCE_TYPE_ORDER, |
|
|
|
$money_type = FinancialRecord::MONEY_TYPE_STORE_OFL_ORDER_COMP, |
|
|
|
$desc = '线下当面付订单收入', |
|
|
|
$comment = '用户订单完成' |
|
|
|
) |
|
|
|
{ |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
} |