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

+ 11 - 1
application/leave/controller/LeaveInfo.php

@@ -106,11 +106,21 @@ class LeaveInfo extends Controller
     }
 
 
-
+    /**
+     *
+     * 审批记录
+     * @auth true
+     * @menu true
+     * @param array $data
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     */
     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')
             ->select()->toArray();