fix: user search

This commit is contained in:
louis 2024-03-28 15:12:09 +08:00
parent fdc6af9e20
commit 59b77cdbc5
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ export class UserService {
if (keyword) {
//关键字模糊查询product的name,productNumber,productSpecification
queryBuilder.andWhere(
'(user.name like :keyword or dept.name like :keyword)',
'(user.nickname like :keyword or dept.name like :keyword)',
{
keyword: `%${keyword}%`
}