|
@@ -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();
|