新版订单消耗系统

CustomerInvoiceOrders.php 412B

1234567891011121314151617
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. use DB;
  5. class CustomerInvoiceOrders extends Model
  6. {
  7. protected $table = 'customer_invoice_orders';
  8. public $timestamps = false;
  9. protected static $unguarded = true;
  10. public static function getOrderList($invoiceId) {
  11. return self::query()->where('enable', 1)->where('inv_id', $invoiceId)->pluck('order_id')->all();
  12. }
  13. }