wupengfei 2 years ago
parent
commit
0b6b66f329
1 changed files with 4 additions and 4 deletions
  1. 4 4
      application/leave/controller/LeaveInfo.php

+ 4 - 4
application/leave/controller/LeaveInfo.php

@@ -119,10 +119,10 @@ class LeaveInfo extends Controller
     public function approve()
     {
         $id = input('id');
-        $list = LeaveApprove::field('a.*,u.name')
-            ->alias('a')
-            ->where('a.leave_id',$id)
-            ->leftJoin('store_member u','u,id = a.approve_user')
+        $list = LeaveApprove::field('b.*,u.name')
+            ->alias('b')
+            ->where('b.leave_id',$id)
+            ->leftJoin('store_member u','u,id = b.approve_user')
             ->select()->toArray();
         $this->assign('list',$list);
         $this->fetch();