| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?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','quantity','order_time','lt_arrived_time','tl_arrived_time','tl_quantity','df_type','rule','status'];
- public static $a_field = ['a.id as reminder_id','a.order_number','a.order_no','a.product_code','a.product_title','a.product_size','a.product_unit','a.tl_arrived_time','a.tl_quantity','a.status','b.tl_result','b.tl_ways','b.id','b.crt_id as supply_id','c.quantity as result_quantity','c.tl_time'];
- 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 => '或',
- ];
- }
|