JobLogic.php 926 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by Administrator.
  4. * User: 向往那片天空
  5. * Date: 2022\5\21 0021
  6. * Time: 11:33
  7. * 格言: 抓住中心,宁精勿杂,宁专勿多
  8. * QQ/微信: 250023777
  9. * 描述: 无
  10. */
  11. namespace app\api\logic\enterprise;
  12. use app\admin\controller\AuthController;
  13. use app\admin\model\enterprise\EnterPriseType as Type;
  14. use app\admin\model\system\SystemAdmin;
  15. use app\api\logic\BaseLogic;
  16. use crmeb\exceptions\AuthException;
  17. use crmeb\services\JsonService;
  18. use crmeb\traits\ModelTrait;
  19. use think\facade\Db;
  20. use think\facade\Route as Url;
  21. class JobLogic extends BaseLogic
  22. {
  23. use ModelTrait;
  24. protected $pk = 'id';
  25. protected $name = 'job';
  26. public function getAllList()
  27. {
  28. $where = [];
  29. $where['is_delete'] = '0';
  30. $where['is_show'] = '1';
  31. return self::where($where)->field('id,job_name as title')->order('rank desc,add_time desc')->select()->toArray();
  32. }
  33. }