DeviceOrderInfo.php 681 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class DeviceOrderInfo extends Model
  5. {
  6. protected $table = "device_order_info"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const Model_type_zero = 0;
  11. const Model_type_one = 1; // 正常
  12. const Model_type_two = 2; // 异常
  13. public static $prefix = [
  14. self::Model_type_zero => '待处理',
  15. self::Model_type_one => '正常',
  16. self::Model_type_two => '异常',
  17. ];
  18. public static $prefix_2 = [
  19. self::Model_type_zero => '待处理',
  20. self::Model_type_two => '已处理',
  21. ];
  22. }