OutBoundOrder.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Model;
  3. class OutBoundOrder extends UseScopeBaseModel
  4. {
  5. protected $table = "out_bound_order"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const State_minus_one = -1;//驳回
  10. const STATE_ZERO = 0;//未确认
  11. const STATE_ONE = 1;//待确认
  12. const STATE_TWO = 2;//已确认
  13. const prefix = 'CK';
  14. public static $name = [
  15. self::State_minus_one => '已驳回',
  16. self::STATE_ZERO => '待创建人确认',
  17. self::STATE_ONE => '待审批人审核',
  18. self::STATE_TWO => '审核通过',
  19. ];
  20. const range_function = '';
  21. const is_check_function = '';
  22. public static $wait_check = [
  23. self::STATE_ZERO,
  24. self::STATE_ONE
  25. ];
  26. const out_type_one = 1;
  27. const out_type_two = 2;
  28. public static $out_type = [
  29. self::out_type_one,
  30. self::out_type_two
  31. ];
  32. public static $out_type_name = [
  33. self::out_type_one => '合同',
  34. self::out_type_two => '',
  35. ];
  36. }