From 7bf88eebbd05419889d0d8fab4d99a11fede6428 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期六, 08 二月 2025 17:43:15 +0800 Subject: [PATCH] test --- models/locationAnalysis.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/models/locationAnalysis.go b/models/locationAnalysis.go index 2a6ddcf..95e4bcf 100644 --- a/models/locationAnalysis.go +++ b/models/locationAnalysis.go @@ -146,16 +146,16 @@ JOIN person AS p ON p.id = s.document_number WHERE p.id_card != "" - AND (p.community_id IN ? - OR p.org_id IN ?) - AND p.status IN ? + AND (s.community_id IN ? + OR s.org_id IN ?) + AND s.status IN ? `, m.AreaIds, m.OrgIds, m.PersonIdentity).Scan(&baseFilter).Error if err != nil { logger.Warnf(err.Error()) } if len(baseFilter) == 0 { - return fmt.Errorf("no results found that match the age condition %s - %s ", m.AreaIds, m.OrgIds) + return fmt.Errorf("no results found that match the age condition %s - %s - %s ", m.AreaIds, m.OrgIds, m.PersonIdentity) } logger.Debugf("task %s match age result %d", m.Task.Name, len(baseFilter)) -- Gitblit v1.8.0