| | |
| | | |
| | | results := make([]*db.ModelTaskResults, 0) |
| | | var baseFilter, labelFilter, keyFilter, lastFilter []LocationPersonInfo |
| | | var document_number_map map[string]LocationPersonInfo |
| | | var document_number_map = make(map[string]LocationPersonInfo) |
| | | var document_number_list []string |
| | | err := db.GetDB().Raw(` |
| | | SELECT |
| | |
| | | for _, i := range baseFilter { |
| | | if _, ok := document_number_map[i.DocumentNumber]; !ok { |
| | | document_number_list = append(document_number_list, i.DocumentNumber) |
| | | tmp := i |
| | | document_number_map[i.DocumentNumber] = tmp |
| | | } |
| | | document_number_map[i.DocumentNumber] = i |
| | | } |
| | | if m.PersonLabel != "" { |
| | | labels := strings.Split(m.PersonLabel, ",") |