linwu 1 year ago
parent
commit
390fbbb6fc
1 changed files with 2 additions and 3 deletions
  1. 2 3
      app/mobile/controller/Emp.php

+ 2 - 3
app/mobile/controller/Emp.php

@@ -5,7 +5,7 @@ namespace app\mobile\controller;
 use app\mobile\EmpBaseController;
 use app\common\model\WorkerLog as WorkerLogModel;
 use app\common\model\ResumeInvite as ResumeInviteModel;
-use app\common\model\ComJobs as ComJobsModel;
+use app\common\model\Comjobs as ComjobsModel;
 use app\common\model\ComjobsLog as ComjobsLogModel;
 
 class Emp extends EmpBaseController
@@ -81,8 +81,7 @@ class Emp extends EmpBaseController
      */
     public function apply()
     {
-//        $comjobs = \app\common\model\ComJobs::field(['title as text', 'id as value'])->where('workerid', $this->worker->id)->where('status', '>', 2)->select()->toArray();
-        $comjobs = [];
+        $comjobs = ComjobsModel::field(['title as text', 'id as value'])->where('workerid', $this->worker->id)->where('status', '>', 2)->select()->toArray();
         array_unshift($comjobs, ['text' => '全部岗位', 'value' => 0]);
         return view('emp/apply', [
             'comjobs'   => json_encode($comjobs),