|
|
@@ -132,9 +132,9 @@ func GetRepoStatisticByDateAndRepoId(date string, repoId int64) (*RepoStatistic, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
} |
|
|
|