fix search
This commit is contained in:
parent
a5b57f287d
commit
c0f387bda5
1 changed files with 8 additions and 0 deletions
|
|
@ -326,6 +326,14 @@ export class DevelopmentOfficerHistoryController extends Controller {
|
|||
{
|
||||
keyword: `%${body.keyword}%`,
|
||||
},
|
||||
)
|
||||
.orWhere(
|
||||
body.keyword != null && body.keyword != ""
|
||||
? "developmentHistory.citizenId LIKE :keyword"
|
||||
: "1=1",
|
||||
{
|
||||
keyword: `%${body.keyword}%`,
|
||||
},
|
||||
);
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue