fix serch fullName
This commit is contained in:
parent
6061ce699d
commit
f6de3a0c1c
1 changed files with 7 additions and 7 deletions
|
|
@ -160,15 +160,15 @@ export class KpiUserEvaluationController extends Controller {
|
|||
)
|
||||
.andWhere(
|
||||
new Brackets((qb) => {
|
||||
qb.orWhere("kpiUserEvaluation.prefix LIKE :keyword", {
|
||||
qb.orWhere("CONCAT(kpiUserEvaluation.prefix, kpiUserEvaluation.firstName, ' ', kpiUserEvaluation.lastName) LIKE :keyword", {
|
||||
keyword: `%${requestBody.keyword}%`,
|
||||
})
|
||||
.orWhere("kpiUserEvaluation.firstName LIKE :keyword", {
|
||||
keyword: `%${requestBody.keyword}%`,
|
||||
})
|
||||
.orWhere("kpiUserEvaluation.lastName LIKE :keyword", {
|
||||
keyword: `%${requestBody.keyword}%`,
|
||||
});
|
||||
// .orWhere("kpiUserEvaluation.firstName LIKE :keyword", {
|
||||
// keyword: `%${requestBody.keyword}%`,
|
||||
// })
|
||||
// .orWhere("kpiUserEvaluation.lastName LIKE :keyword", {
|
||||
// keyword: `%${requestBody.keyword}%`,
|
||||
// });
|
||||
}),
|
||||
)
|
||||
.orderBy("kpiUserEvaluation.createdAt", "DESC")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue