mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
去除groupBy,优化查询
This commit is contained in:
parent
ac0b0f2740
commit
f7ef3a91fc
@ -122,8 +122,8 @@ export class BaseSysMenuService extends BaseService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
find.orderBy('a.orderNum', 'ASC');
|
find.orderBy('a.orderNum', 'ASC');
|
||||||
find.groupBy('a.id');
|
const list = await find.getMany();
|
||||||
return await find.getMany();
|
return _.uniqBy(list, 'id');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user