Reminder.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace App\Model;
  3. class Reminder extends UseScopeBaseModel
  4. {
  5. protected $table = "reminder"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const employee_column = "crt_id";
  10. 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'];
  11. 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'];
  12. const status_zero = 0;
  13. const status_one = 1;
  14. const status_two = 2;
  15. public static $status_name = [
  16. self::status_zero => '等待回复',
  17. self::status_one => '已完成',
  18. self::status_two => '已结束', // 拒绝
  19. ];
  20. const df_type_one = 1;
  21. const df_type_two = 2;
  22. const df_type_three = 3;
  23. const df_type_four = 4;
  24. const df_type_five = 5;
  25. public static $df_type_name = [
  26. self::df_type_one => '2小时',
  27. self::df_type_two => '立即',
  28. self::df_type_three => '上午',
  29. self::df_type_four => '下午',
  30. self::df_type_five => '下班前',
  31. ];
  32. const rule_one = 1;
  33. const rule_two = 2;
  34. public static $rule_name = [
  35. self::rule_one => '与',
  36. self::rule_two => '或',
  37. ];
  38. }