diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 5068961f7..49a7bec16 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -517,7 +517,7 @@ func insertTable(dateRecords []UserBusinessAnalysisAll, tableName string, static ", " + fmt.Sprint(record.CreateRepoCount) + ", " + fmt.Sprint(record.LoginCount) + ", " + fmt.Sprint(record.OpenIIndex) + ", '" + record.Email + "', '" + record.Name + "', '" + record.DataDate + "')" } - statictisSess.Insert(insertBatchSql) + statictisSess.Exec(insertBatchSql) } func RefreshUserStaticAllTabel(wikiCountMap map[string]int, CommitCodeSizeMap map[string]*git.UserKPIStats) {