From 59b77cdbc51b055ce8ff93179dc50732aea812b5 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Thu, 28 Mar 2024 15:12:09 +0800 Subject: [PATCH] fix: user search --- src/modules/user/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}%` }