Commit f99fade5 by cwy

多个pdf文件问题

parent 529be613
...@@ -17,6 +17,7 @@ use app\common\model\mysql\EnterpriseAllocation as EnterpriseAllocationModel; ...@@ -17,6 +17,7 @@ use app\common\model\mysql\EnterpriseAllocation as EnterpriseAllocationModel;
use think\facade\Db; use think\facade\Db;
class EnterpriseAllocation extends AuthBase class EnterpriseAllocation extends AuthBase
{ {
public static $name = 'controller.department';
/** /**
* 列表 * 列表
* @return \josn|void * @return \josn|void
...@@ -75,15 +76,12 @@ class EnterpriseAllocation extends AuthBase ...@@ -75,15 +76,12 @@ class EnterpriseAllocation extends AuthBase
$limit = input("param.limit",10,"intval"); $limit = input("param.limit",10,"intval");
$userId = $this->userId; $userId = $this->userId;
$EnterpriseAllocationModel =new EnterpriseAllocationModel(); $EnterpriseAllocationModel =new EnterpriseAllocationModel();
if($userId!=1){
$where[] = ['user_id', '=',$userId];
}
$result = $EnterpriseAllocationModel->with([ $result = $EnterpriseAllocationModel->with([
'enterpriseInfo' => function($query){ 'enterpriseInfo' => function($query){
}, },
'adminInfo' => function($query){ 'adminInfo' => function($query){
}, },
])->where($where)->paginate([ ])->where('user_id', '=',$userId)->paginate([
'list_rows'=>$limit, 'list_rows'=>$limit,
'page'=>$page '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