Commit f99fade5 by cwy

多个pdf文件问题

parent 529be613
......@@ -17,6 +17,7 @@ use app\common\model\mysql\EnterpriseAllocation as EnterpriseAllocationModel;
use think\facade\Db;
class EnterpriseAllocation extends AuthBase
{
public static $name = 'controller.department';
/**
* 列表
* @return \josn|void
......@@ -75,15 +76,12 @@ class EnterpriseAllocation extends AuthBase
$limit = input("param.limit",10,"intval");
$userId = $this->userId;
$EnterpriseAllocationModel =new EnterpriseAllocationModel();
if($userId!=1){
$where[] = ['user_id', '=',$userId];
}
$result = $EnterpriseAllocationModel->with([
'enterpriseInfo' => function($query){
},
'adminInfo' => function($query){
},
])->where($where)->paginate([
])->where('user_id', '=',$userId)->paginate([
'list_rows'=>$limit,
'page'=>$page
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment