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
d34d3957
Commit
d34d3957
authored
May 11, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
c9463896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
center-manage/app/base/service/impl/auth/authSve.js
+2
-1
No files found.
center-manage/app/base/service/impl/auth/authSve.js
View file @
d34d3957
...
...
@@ -5,12 +5,13 @@ class AuthService extends ServiceBase{
super
(
"auth"
,
ServiceBase
.
getDaoName
(
AuthService
));
}
//字符串数组参数
//前端角色查询,按照来源应用和来源公司查询
async
findAuthsByRole
(
roleids
,
appid
,
comid
){
//{where:{id:{[this.db.Op.in]:ids}}}
//var newattrs=rolecodestr.split(",");
var
aths
=
await
this
.
dao
.
model
.
findAll
({
attributes
:[
"bizcode"
,
"authstrs"
,
"codepath"
],
where
:{
role_id
:{[
this
.
db
.
Op
.
in
]:
roleids
}}});
where
:{
role_id
:{[
this
.
db
.
Op
.
in
]:
roleids
}
,
app_id
:
appid
,
company_id
:
comid
}});
return
aths
;
}
async
saveAuths
(
auths
,
appid
,
cmid
){
...
...
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