wupengfei 2 年之前
父节点
当前提交
9a25e361c9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/leave/controller/LeaveInfo.php

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

@@ -120,8 +120,8 @@ class LeaveInfo extends Controller
     {
         $id = input('id');
         var_dump($id);
-        $list = LeaveApprove::field('v.*,x.name')
-            ->alias('v')
+        $list = LeaveApprove::alias('v')
+            ->field('v.*,x.name')
             ->leftJoin('dd_store_member x','x,id = v.approve_user')
             ->where('v.leave_id',$id)
             ->select()->toArray();