正在显示
2 个修改的文件
包含
2 行增加
和
3 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论