| | |
| | | logger.Error(err) |
| | | return |
| | | } |
| | | logger.Debugf(" eachNum:%d, 获取%d条人员信息", queryEachNum, len(dbPersons)) |
| | | logger.Debugf("eachNum:%d, 获取%d条人员信息", queryEachNum, len(dbPersons)) |
| | | CaptureDbMap.Lock() |
| | | |
| | | areaId := "" |
| | |
| | | |
| | | 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 |