|
|
|
@ -77,7 +77,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 维护社区服务点余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_CS, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -105,7 +105,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 维护社区服务点余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_CS, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -132,7 +132,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
$this->recordAll($user_id, $source_id, $money, $user_type, $source_type, $money_type, $desc, $comment); |
|
|
|
// 维护社区服务点余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_CS, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money,2); |
|
|
|
@ -165,7 +165,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_STORE, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $store->id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -194,7 +194,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_STORE, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $store->id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -276,7 +276,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_STORE, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $store->id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -306,7 +306,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_STORE, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $store->id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -349,7 +349,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_MM, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -374,7 +374,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_MM, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -399,7 +399,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_MP, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -424,7 +424,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_MP, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
@ -449,7 +449,7 @@ class FinancialRecordService implements FinancialRecordServiceInterface |
|
|
|
|
|
|
|
// 维护余额
|
|
|
|
$balance = UserBalance::firstOrNew([ |
|
|
|
'user_type' => UserBalance::USER_TYPE_MP, |
|
|
|
'user_type' => $user_type, |
|
|
|
'source_id' => $user_id |
|
|
|
]); |
|
|
|
$balance->balance = bcadd($balance->balance, $money, 2); |
|
|
|
|