| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace App\Model;
- class TodoList extends UseScopeBaseModel
- {
- protected $table = "to_do_list"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const employee_column = "crt_id";
- public static $field = ['title','id','type','remind_start','man_type','organization_name','crt_id','crt_time','contact','address','content','status','remind_interval','last_remind_time','last_time_result'];
- public static $job = 'todo_remind';
- const type_one = 1;
- const type_two = 2;
- const type_three = 3;
- const type_four = 4;
- const type_five = 5;
- const type_six = 6;
- const type_seven = 7;
- public static $type_value = [
- self::type_one => 0,
- self::type_two => 300,
- self::type_three => 600,
- self::type_four => 1200,
- self::type_five => 1800,
- self::type_six => 3600,
- self::type_seven => 7200,
- ];
- public static $type_name = [
- self::type_one => '单次',
- self::type_two => '5分钟',
- self::type_three => '10分钟',
- self::type_four => '20分钟',
- self::type_five => '30分钟',
- self::type_six => '1小时',
- self::type_seven => '2小时',
- ];
- const status_zero = 0;
- const status_one = 1;
- const status_two = 2;
- public static $status_name = [
- self::status_zero => '未开始',
- self::type_one => '进行中',
- self::type_two => '已完成',
- ];
- }
|