订单支付记录
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
* 本账单关联的门店订单
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user