Organization.php 770 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Model;
  3. class Organization extends UseScopeBaseModel
  4. {
  5. protected $table = "organization"; //指定表
  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 = ['title','id','code','industry_name','industry_ranking','address','crt_id','crt_time','founding_time','type','decision_depart','decision_maker','new_product_rule','old_product_rule'];
  11. const type_one = 1;
  12. const type_two = 2;
  13. const type_three = 3;
  14. const type_four = 4;
  15. public static $type_name = [
  16. self::type_one => '国企',
  17. self::type_two => '央企',
  18. self::type_three => '私企',
  19. self::type_four => '外企',
  20. ];
  21. }