From bb5010cd0659ee261b45a3bc65baf47982f8603b Mon Sep 17 00:00:00 2001 From: rustdreamer Date: Mon, 11 Sep 2023 18:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=BB=E5=BC=80=E5=90=8E=E4=B8=8D=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.controller.ts b/src/app.controller.ts index 5c42f1d..a623344 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -231,7 +231,7 @@ export class AppController { async getVisiotr(@Query() { identity_card_no }: QueryVisitorByNumberDto, @Req() req: any) { let date = new Date().toDateString(); const node_other_visitor: any = await this.nodeOtherVisitorRepository.findOne({ - where: { identity_card_no }, + where: { identity_card_no, end_time: IsNull() }, order: { created_date: "DESC" }