1234567891011121314151617181920212223242526272829 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class DeviceOrderInfo extends Model
- {
- protected $table = "device_order_info"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const Model_type_zero = 0;
- const Model_type_one = 1; // 正常
- const Model_type_two = 2; // 异常
- public static $prefix = [
- self::Model_type_zero => '待处理',
- self::Model_type_one => '正常',
- self::Model_type_two => '异常',
- ];
- public static $prefix_2 = [
- self::Model_type_zero => '待处理',
- self::Model_type_two => '已处理',
- ];
- }
|