|
@@ -31,7 +31,7 @@ class PersonalService extends CrudService {
|
|
|
|
|
|
async dealQueryCondition({ role, code, ...condition } = {}) {
|
|
|
condition = this.util.dealQuery(condition);
|
|
|
- if (role === 1) {
|
|
|
+ if (role === '1') {
|
|
|
//code查询机构,取出机构的code,用code到model(个人用户)里查询用户,合为一个数组,返回
|
|
|
const orgRes = await this.adminModel.find({ code }, { code: 1 });
|
|
|
const codes = orgRes.map((i) => i.code);
|