Commit d34d3957 by 蒋勇

d

parent c9463896
...@@ -5,12 +5,13 @@ class AuthService extends ServiceBase{ ...@@ -5,12 +5,13 @@ class AuthService extends ServiceBase{
super("auth",ServiceBase.getDaoName(AuthService)); super("auth",ServiceBase.getDaoName(AuthService));
} }
//字符串数组参数 //字符串数组参数
//前端角色查询,按照来源应用和来源公司查询
async findAuthsByRole(roleids,appid,comid){ async findAuthsByRole(roleids,appid,comid){
//{where:{id:{[this.db.Op.in]:ids}}} //{where:{id:{[this.db.Op.in]:ids}}}
//var newattrs=rolecodestr.split(","); //var newattrs=rolecodestr.split(",");
var aths=await this.dao.model.findAll({ var aths=await this.dao.model.findAll({
attributes:["bizcode","authstrs","codepath"], 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; return aths;
} }
async saveAuths(auths,appid,cmid){ async saveAuths(auths,appid,cmid){
......
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