diff --git a/src/modules/user/user.service.ts b/src/modules/user/user.service.ts index afb8345..aa4ee6c 100644 --- a/src/modules/user/user.service.ts +++ b/src/modules/user/user.service.ts @@ -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}%` }