| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace App\Model;
- class Reminder extends UseScopeBaseModel
- {
- protected $table = "reminder"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const employee_column = "crt_id";
- public static $field = ['order_number','id','order_no','crt_id','crt_time','product_code','product_title','product_size','product_size','quantity','order_time','lt_arrived_time','tl_arrived_time','tl_quantity','df_type','rule'];
- const status_zero = 0;
- const status_one = 1;
- const status_two = 2;
- public static $status_name = [
- self::status_zero => '等待回复',
- self::status_one => '已完成',
- self::status_two => '已结束', // 拒绝
- ];
- const df_type_one = 1;
- const df_type_two = 2;
- const df_type_three = 3;
- const df_type_four = 4;
- const df_type_five = 5;
- public static $df_type_name = [
- self::df_type_one => '2小时',
- self::df_type_two => '立即',
- self::df_type_three => '上午',
- self::df_type_four => '下午',
- self::df_type_five => '下班前',
- ];
- const rule_one = 1;
- const rule_two = 2;
- public static $rule_name = [
- self::rule_one => '与',
- self::rule_two => '或',
- ];
- }
|