From 35a0aa54cbc4112b4673b1d4a85fd447f5e24607 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 08 七月 2024 02:20:32 +0800
Subject: [PATCH] 修改实名比对

---
 cache/cache.go    |    2 +-
 db/realPersons.go |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/cache/cache.go b/cache/cache.go
index f0b725c..77c1cc6 100644
--- a/cache/cache.go
+++ b/cache/cache.go
@@ -95,7 +95,7 @@
 					logger.Error(err)
 					return
 				}
-				logger.Debugf(" eachNum:%d, 鑾峰彇%d鏉′汉鍛樹俊鎭�", queryEachNum, len(dbPersons))
+				logger.Debugf("eachNum:%d, 鑾峰彇%d鏉′汉鍛樹俊鎭�", queryEachNum, len(dbPersons))
 				CaptureDbMap.Lock()
 
 				areaId := ""
diff --git a/db/realPersons.go b/db/realPersons.go
index 8bfee85..2f5a803 100644
--- a/db/realPersons.go
+++ b/db/realPersons.go
@@ -24,7 +24,7 @@
 
 func (l *Layouts) GetRealNamePersonList() (arr []*FeatureCacheBase, err error) {
 	var persons []Layouts
-	sql := "select id, tableId, person_type, feature from layouts where person_type = '1'"
+	sql := "select id, tableId, person_type, feature from layouts"
 	err = db.Raw(sql).Find(&persons).Error
 	if err != nil {
 		return nil, nil

--
Gitblit v1.8.0