U8Job.php 796 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class U8Job extends Model
  5. {
  6. protected $table = "u8_job"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const success = 1;
  11. const failed = 2;
  12. const one = 1;
  13. const two = 2;
  14. const three = 3;
  15. public static $type = [
  16. self::one,
  17. self::two,
  18. ];
  19. public static $type_title = [
  20. self::one => '采购单同步',
  21. self::two => '销售订单(合同同步)',
  22. ];
  23. const job1 = 't9u8_purchase';
  24. const job2 = 't9u8_sales';
  25. const job3 = 't9u8_stock';
  26. public static $job = [
  27. self::one => self::job1,
  28. self::two => self::job2,
  29. self::three => self::job3,
  30. ];
  31. }