1
This commit is contained in:
@@ -387,8 +387,8 @@ class DoctorAccountService extends BaseService
|
||||
$data['doctor_id'] = $user_info['client_user_id'];
|
||||
$data['bank_id'] = $doctor_bank_card['bank_id'];
|
||||
$data['account_name'] = $basic_bank['bank_name'];
|
||||
$data['bank_card_code'] = $basic_bank['bank_code'];
|
||||
$data['bank_card_code_four'] = substr($basic_bank['bank_code'], -4);;
|
||||
$data['bank_card_code'] = $doctor_bank_card['bank_card_code'];
|
||||
$data['bank_card_code_four'] = substr($doctor_bank_card['bank_card_code'], -4);;
|
||||
$data['applied_withdrawal_amount'] = $withdrawal_amount + $income_tax; // 提现金额
|
||||
$data['actual_withdrawal_amount'] = $withdrawal_amount; // 实际提现金额
|
||||
$data['income_tax'] = $income_tax; // 提现所得税金额
|
||||
@@ -421,6 +421,15 @@ class DoctorAccountService extends BaseService
|
||||
OrderInquiry::edit($params,$data);
|
||||
}
|
||||
|
||||
// 账户表锁定
|
||||
$params = array();
|
||||
$params['doctor_id'] = $user_info['client_user_id'];
|
||||
DoctorAccount::dec($params,'balance_account',$amount_total);
|
||||
|
||||
DoctorAccount::inc($params,'applied_withdrawal_amount',$withdrawal_amount);
|
||||
|
||||
DoctorAccount::inc($params,'income_tax',$income_tax);
|
||||
|
||||
Db::commit();
|
||||
return success();
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user