|
|
@@ -1524,14 +1524,14 @@ func queryCommitAction(start_unix int64, end_unix int64, actionType int64) map[i |
|
|
|
resultMap[actionRecord.UserID] += 1 |
|
|
|
} |
|
|
|
} |
|
|
|
key := getDate(actionRecord.CreatedUnix) |
|
|
|
if _, ok := mostActiveMap[actionRecord.UserID]; !ok { |
|
|
|
mostActiveMap[actionRecord.UserID] = 1 |
|
|
|
tmpMap := make(map[string]int) |
|
|
|
tmpMap[key] = 1 |
|
|
|
mostActiveMap[actionRecord.UserID] = tmpMap |
|
|
|
} else { |
|
|
|
key := getDate(actionRecord.CreatedUnix) |
|
|
|
|
|
|
|
mostActiveMap[actionRecord.UserID][key] = getMapKeyStringValue(key, mostActiveMap[actionRecord.UserID]) + 1 |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
indexTotal += PAGE_SIZE |
|
|
|
if indexTotal >= count { |
|
|
@@ -1542,7 +1542,7 @@ func queryCommitAction(start_unix int64, end_unix int64, actionType int64) map[i |
|
|
|
return resultMap |
|
|
|
} |
|
|
|
func getDate(createTime timeutil.TimeStamp) string { |
|
|
|
return "" |
|
|
|
return createTime.Format("2006-01-02") |
|
|
|
} |
|
|
|
|
|
|
|
func queryCreateIssue(start_unix int64, end_unix int64) map[int64]int { |
|
|
|