|
|
|
@ -231,7 +231,7 @@ export class AppController {
|
|
|
|
async getVisiotr(@Query() { identity_card_no }: QueryVisitorByNumberDto, @Req() req: any) {
|
|
|
|
async getVisiotr(@Query() { identity_card_no }: QueryVisitorByNumberDto, @Req() req: any) {
|
|
|
|
let date = new Date().toDateString();
|
|
|
|
let date = new Date().toDateString();
|
|
|
|
const node_other_visitor: any = await this.nodeOtherVisitorRepository.findOne({
|
|
|
|
const node_other_visitor: any = await this.nodeOtherVisitorRepository.findOne({
|
|
|
|
where: { identity_card_no },
|
|
|
|
where: { identity_card_no, end_time: IsNull() },
|
|
|
|
order: {
|
|
|
|
order: {
|
|
|
|
created_date: "DESC"
|
|
|
|
created_date: "DESC"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|