fix: user search
This commit is contained in:
parent
fdc6af9e20
commit
59b77cdbc5
|
@ -268,7 +268,7 @@ export class UserService {
|
||||||
if (keyword) {
|
if (keyword) {
|
||||||
//关键字模糊查询product的name,productNumber,productSpecification
|
//关键字模糊查询product的name,productNumber,productSpecification
|
||||||
queryBuilder.andWhere(
|
queryBuilder.andWhere(
|
||||||
'(user.name like :keyword or dept.name like :keyword)',
|
'(user.nickname like :keyword or dept.name like :keyword)',
|
||||||
{
|
{
|
||||||
keyword: `%${keyword}%`
|
keyword: `%${keyword}%`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue