作者 tangxvhui

调试定时任务

@@ -15,7 +15,7 @@ import ( @@ -15,7 +15,7 @@ import (
15 15
16 func main() { 16 func main() {
17 startNodeTask() 17 startNodeTask()
18 - // startSummaryEvaluation() 18 + //startSummaryEvaluation()
19 go consumer.Run() 19 go consumer.Run()
20 web.Run() 20 web.Run()
21 } 21 }
@@ -72,8 +72,7 @@ func (repo *EvaluationItemUsedRepository) BatchInsert(items []*domain.Evaluation @@ -72,8 +72,7 @@ func (repo *EvaluationItemUsedRepository) BatchInsert(items []*domain.Evaluation
72 func (repo *EvaluationItemUsedRepository) Find(queryOptions map[string]interface{}) (int, []*domain.EvaluationItemUsed, error) { 72 func (repo *EvaluationItemUsedRepository) Find(queryOptions map[string]interface{}) (int, []*domain.EvaluationItemUsed, error) {
73 tx := repo.transactionContext.PgTx 73 tx := repo.transactionContext.PgTx
74 var m []*models.EvaluationItemUsed 74 var m []*models.EvaluationItemUsed
75 - query := tx.Model(&m).  
76 - Where("deleted_at isnull") 75 + query := tx.Model(&m)
77 if v, ok := queryOptions["limit"].(int); ok { 76 if v, ok := queryOptions["limit"].(int); ok {
78 query.Limit(v) 77 query.Limit(v)
79 } 78 }