|
|
@@ -81,9 +81,9 @@ func DeleteRepoStatDaily(date string) error { |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func GetRepoStatisticByDate(date string) ([]*RepoStatistic, error) { |
|
|
|
func GetRepoStatisticByDate(date string, repoId int64) ([]*RepoStatistic, error) { |
|
|
|
repoStatistics := make([]*RepoStatistic, 0) |
|
|
|
err := xStatistic.Where("date = ?", date).Find(&repoStatistics) |
|
|
|
err := xStatistic.Where("date = ? and repo_id=?", date, repoId).Find(&repoStatistics) |
|
|
|
return repoStatistics, err |
|
|
|
|
|
|
|
} |
|
|
|