InvoiceOrder.php 523 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Model;
  3. use App\Scopes\DepartmentScope;
  4. use Illuminate\Database\Eloquent\Model;
  5. class InvoiceOrder extends Model
  6. {
  7. protected $table = "invoice_order"; //指定表
  8. const CREATED_AT = 'crt_time';
  9. const UPDATED_AT = 'upd_time';
  10. protected $dateFormat = 'U';
  11. const STATE_ZERO = 0;//未确认
  12. const STATE_ONE = 1;//已确认
  13. const prefix = 'FH';
  14. public static $name = [
  15. 0 => '未确认',
  16. 1 => '已确认',
  17. ];
  18. const range_function = 'invoiceRange';
  19. }