Express.php 704 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @author: xaboy<365615158@qq.com>
  4. * @day: 2017/11/11
  5. */
  6. namespace app\models\system;
  7. use crmeb\traits\ModelTrait;
  8. use crmeb\basic\BaseModel;
  9. /**
  10. * 物流公司
  11. * Class Express
  12. * @package app\models\system
  13. */
  14. class Express extends BaseModel
  15. {
  16. /**
  17. * 数据表主键
  18. * @var string
  19. */
  20. protected $pk = 'id';
  21. /**
  22. * 模型名称
  23. * @var string
  24. */
  25. protected $name = 'express';
  26. use ModelTrait;
  27. public static function lst()
  28. {
  29. $model = new self;
  30. $model = $model->where('is_show', 1);
  31. $model = $model->order('sort DESC,id DESC');
  32. return $model->select();
  33. }
  34. }