zhaoqingang
2025-02-10 ddc2a95898e83225db0e5f3cf106a5434e76c8c8
测试 场景分析 bug
1个文件已修改
23 ■■■■ 已修改文件
models/locationAnalysis.go 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
models/locationAnalysis.go
@@ -251,17 +251,18 @@
        }
        event := strings.Join(typeNames, ",")
        result := &db.ModelTaskResults{
            Title:         m.Task.Name,
            Event:         m.eventFormat(event, record.AppearCount),
            ModelID:       m.Task.ModelID,
            ModelTaskID:   m.Task.ID,
            CommunityId:   record.CommunityId,
            OrgID:         record.OrgId,
            ObjectIds:     strings.Join(record.DocumentNumbers, ","),
            Location:      fmt.Sprintf("%s%s%s", domains[record.CommunityId].Name, record.Building, record.Floor),
            Building:      record.Building,
            Floor:         record.Floor,
            PicDate:       time.Unix(lastAppearanceTime, 0).Format("2006-01-02 15:04:05"),
            Title:       m.Task.Name,
            Event:       m.eventFormat(event, record.AppearCount),
            ModelID:     m.Task.ModelID,
            ModelTaskID: m.Task.ID,
            CommunityId: record.CommunityId,
            OrgID:       record.OrgId,
            ObjectIds:   strings.Join(record.DocumentNumbers, ","),
            Location:    fmt.Sprintf("%s%s%s", domains[record.CommunityId].Name, record.Building, record.Floor),
            Building:    record.Building,
            Floor:       record.Floor,
            //PicDate:       time.Unix(lastAppearanceTime, 0).Format("2006-01-02 15:04:05"),
            PicDate:       record.PicDate,
            FirstPersonID: record.DocumentNumbers[0],
        }
        results = append(results, result)