|
|
@@ -210,10 +210,11 @@ class QueryRefund extends Command
|
|
|
$propertyHeadId = $propertyHeadInfo['id'];
|
|
|
// 出账记录 - 扣除
|
|
|
PropertySurplusLog::create([
|
|
|
- 'in_out' => 3,
|
|
|
+ 'in_out' => 2,
|
|
|
'property_head_id' => $propertyHeadId,
|
|
|
'amount' => $property_commission['commission_amount'],
|
|
|
- 'status' => 1
|
|
|
+ 'status' => 1,
|
|
|
+ 'remark'=> '用户已退款,分成金额已退回'
|
|
|
]);
|
|
|
// 更新 物业负责人余额收益
|
|
|
PropertyHead::where(['id' => $propertyHeadId])->update([
|