Merge branches 'develop' and 'develop' of github.com:Frappet/bma-ehr-organization into develop
# Conflicts: # src/controllers/PermissionController.ts
This commit is contained in:
commit
a6765de84e
2 changed files with 696 additions and 690 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -81,7 +81,7 @@ export class PermissionController extends Controller {
|
||||||
...getDetail,
|
...getDetail,
|
||||||
roles: roleAttrData,
|
roles: roleAttrData,
|
||||||
};
|
};
|
||||||
// redisClient.set("role_" + request.user.sub, JSON.stringify(reply));
|
// redisClient.setex("role_" + request.user.sub, 86400, JSON.stringify(reply));
|
||||||
// }
|
// }
|
||||||
return new HttpSuccess(reply);
|
return new HttpSuccess(reply);
|
||||||
}
|
}
|
||||||
|
|
@ -129,7 +129,7 @@ export class PermissionController extends Controller {
|
||||||
}
|
}
|
||||||
const roleAttrData = await this.authRoleAttrRepo.find({
|
const roleAttrData = await this.authRoleAttrRepo.find({
|
||||||
select: ["authSysId"],
|
select: ["authSysId"],
|
||||||
where: { authRoleId: authRole.id },
|
where: { authRoleId: authRole.id, attrIsList: true },
|
||||||
});
|
});
|
||||||
|
|
||||||
const getList = await this.authSysRepo.find({
|
const getList = await this.authSysRepo.find({
|
||||||
|
|
@ -150,8 +150,8 @@ export class PermissionController extends Controller {
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.sort((a, b) => a.order - b.order);
|
.sort((a, b) => a.order - b.order);
|
||||||
console.log(JSON.stringify(reply));
|
// console.log(JSON.stringify(reply));
|
||||||
redisClient.set("menu_" + request.user.sub, 30, JSON.stringify(reply));
|
redisClient.setex("menu_" + request.user.sub, 86400, JSON.stringify(reply));
|
||||||
}
|
}
|
||||||
|
|
||||||
return new HttpSuccess(reply);
|
return new HttpSuccess(reply);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue