Commit 0a443475 by 孙亚楠

dd

parent a63d3cae
...@@ -12,6 +12,7 @@ class OrgCtl extends CtlBase { ...@@ -12,6 +12,7 @@ class OrgCtl extends CtlBase {
*/ */
async addOrg(params) { async addOrg(params) {
try { try {
params.saas_id = req.loginUser.saas_id;
return await this.orgSve.addOrg(params); return await this.orgSve.addOrg(params);
} catch (error) { } catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
...@@ -47,6 +48,7 @@ class OrgCtl extends CtlBase { ...@@ -47,6 +48,7 @@ class OrgCtl extends CtlBase {
*/ */
async listOrg(params) { async listOrg(params) {
try { try {
params.saas_id = req.loginUser.saas_id;
return await this.orgSve.listOrg(params); return await this.orgSve.listOrg(params);
} catch (error) { } catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
......
...@@ -12,6 +12,7 @@ class RoleCtl extends CtlBase { ...@@ -12,6 +12,7 @@ class RoleCtl extends CtlBase {
*/ */
async addRole(params) { async addRole(params) {
try { try {
params.saas_id = req.loginUser.saas_id;
return await this.roleSve.addRole(params); return await this.roleSve.addRole(params);
} catch (error) { } catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
......
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