Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
蒋勇
zhichan
Commits
511cdbc9
Commit
511cdbc9
authored
Apr 29, 2021
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lin tj
parent
eaf8cd17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
center-app/app/base/api/impl/auth/accessAuth.js
+2
-2
center-app/app/base/service/impl/utilsSve/utilsappSve.js
+15
-3
No files found.
center-app/app/base/api/impl/auth/accessAuth.js
View file @
511cdbc9
...
@@ -119,8 +119,8 @@ class AccessAuthAPI extends APIBase {
...
@@ -119,8 +119,8 @@ class AccessAuthAPI extends APIBase {
return
result
;
return
result
;
}
}
async
getAllService
()
{
async
getAllService
(
pobj
,
qobj
,
req
)
{
var
result
=
await
this
.
utilsappSve
.
getAllService
();
var
result
=
await
this
.
utilsappSve
.
getAllService
(
pobj
,
qobj
,
req
);
return
result
;
return
result
;
}
}
}
}
...
...
center-app/app/base/service/impl/utilsSve/utilsappSve.js
View file @
511cdbc9
...
@@ -75,9 +75,21 @@ class UtilsAppSve extends AppServiceBase {
...
@@ -75,9 +75,21 @@ class UtilsAppSve extends AppServiceBase {
* 获取所有渠道
* 获取所有渠道
* @returns {Promise<{msg: *, data: (*|null), status: number}>}
* @returns {Promise<{msg: *, data: (*|null), status: number}>}
*/
*/
async
getAllService
()
{
async
getAllService
(
pobj
,
qobj
,
req
)
{
let
sql
=
`select uapp_id,app_hosts,app_name,\`desc\` from p_app`
;
var
tmpWhere
=
{
let
result
=
await
this
.
appDao
.
customQuery
(
sql
);
pageInfo
:
{}
};
if
(
pobj
.
actionBody
)
{
let
current
=
1
;
if
(
pobj
.
actionBody
.
current
)
{
current
=
pobj
.
actionBody
.
current
;
tmpWhere
.
pageInfo
.
pageNo
=
current
;
}
if
(
pobj
.
actionBody
.
pageSize
)
{
tmpWhere
.
pageInfo
.
pageSize
=
(
current
-
1
)
*
pobj
.
actionBody
.
pageSize
?
(
current
-
1
)
*
pobj
.
actionBody
.
pageSize
:
14
;
}
}
let
result
=
await
this
.
appDao
.
findAndCountAll
(
tmpWhere
)
return
system
.
getResultSuccess
(
result
);
return
system
.
getResultSuccess
(
result
);
}
}
}
}
...
...
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