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