Commit f3b6b102 by 王昆

gsb

parent 4aae589d
...@@ -208,5 +208,15 @@ class UserCtl extends CtlBase { ...@@ -208,5 +208,15 @@ class UserCtl extends CtlBase {
return system.getResult(null, `系统错误 错误信息 ${error}`); return system.getResult(null, `系统错误 错误信息 ${error}`);
} }
} }
async salesmanList(params, pobj2, req) {
try {
params.uctype = 1;
return await this.userSve.findByRoleCodes(params);
} catch (error) {
console.log(error);
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
} }
module.exports = UserCtl; module.exports = UserCtl;
\ No newline at end of file
...@@ -117,5 +117,22 @@ class UserService extends ServiceBase { ...@@ -117,5 +117,22 @@ class UserService extends ServiceBase {
} }
} }
async mapByIds(params) {
try {
return await this.callms("uc", "mapUserByIds", params);
} catch (error) {
console.log(error);
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
async findByRoleCodes(params) {
try {
return await this.callms("uc", "findUsers", params);
} catch (error) {
console.log(error);
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
} }
module.exports = UserService; module.exports = UserService;
\ No newline at end of file
...@@ -33,10 +33,10 @@ module.exports = function (app) { ...@@ -33,10 +33,10 @@ module.exports = function (app) {
return next(); return next();
} }
// if (!jsonUser) { if (!jsonUser) {
// res.end(JSON.stringify({ status: -99, msg: "no login" })); res.end(JSON.stringify({ status: -99, msg: "no login" }));
// return; return;
// } }
if(xggadminsid) { if(xggadminsid) {
redisClient.setWithEx(xggadminsid, JSON.stringify(jsonUser), 60 * 60 * 60); redisClient.setWithEx(xggadminsid, JSON.stringify(jsonUser), 60 * 60 * 60);
......
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