U8Job.php 709 B

1234567891011121314151617181920212223242526272829303132333435
  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. public static $type = [
  15. self::one,
  16. self::two,
  17. ];
  18. public static $type_title = [
  19. self::one => '采购单同步',
  20. self::two => '销售订单(合同同步)',
  21. ];
  22. const job1 = 't9u8_purchase';
  23. const job2 = 't9u8_sales';
  24. public static $job = [
  25. self::one => self::job1,
  26. self::two => self::job2,
  27. ];
  28. }