Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
product_library_api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyi.chen
product_library_api
Commits
f99fade5
Commit
f99fade5
authored
Sep 30, 2024
by
cwy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多个pdf文件问题
parent
529be613
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
app/api/controller/EnterpriseAllocation.php
+2
-4
No files found.
app/api/controller/EnterpriseAllocation.php
View file @
f99fade5
...
...
@@ -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
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment