订单支付记录

This commit is contained in:
liu
2026-08-14 01:58:57 +08:00
parent bf8ac68391
commit 889f987f17
15 changed files with 1044 additions and 16 deletions
+10
View File
@@ -43,6 +43,7 @@ class BillModel extends Model
'added_amount',
'total_amount',
'status',
'payment_id',
'paid_at',
'pay_remark',
'paid_operator_id',
@@ -63,6 +64,7 @@ class BillModel extends Model
'added_amount' => 'decimal:2',
'total_amount' => 'decimal:2',
'status' => 'integer',
'payment_id' => 'integer',
'paid_at' => 'datetime:Y-m-d H:i:s',
'paid_operator_id' => 'integer',
'operator_id' => 'integer',
@@ -101,6 +103,14 @@ class BillModel extends Model
return $this->belongsTo(SysUserModel::class, 'paid_operator_id', 'id');
}
/**
* 关联支付记录(小程序合并付款)
*/
public function payment(): BelongsTo
{
return $this->belongsTo(PaymentModel::class, 'payment_id', 'id');
}
/**
* 本账单关联的门店订单
*/