添加发票

This commit is contained in:
2025-12-25 17:45:20 +08:00
parent 16d1adacca
commit 56f951d0bd
10 changed files with 891 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace app\admin\model;
use think\Model;
class Invoice extends Model
{
protected $name = 'invoice';
public function user()
{
return $this->belongsTo(User::class, 'uid', 'id');
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace app\admin\model;
use think\Model;
class InvoiceLog extends Model
{
protected $name = 'invoice_log';
public function invoice()
{
return $this->belongsTo(Invoice::class, 'invoice_id', 'id');
}
public function order()
{
return $this->belongsTo(Order::class, 'oid', 'id');
}
}