...
|
...
|
@@ -72,8 +72,7 @@ func (repo *EvaluationItemUsedRepository) BatchInsert(items []*domain.Evaluation |
|
|
func (repo *EvaluationItemUsedRepository) Find(queryOptions map[string]interface{}) (int, []*domain.EvaluationItemUsed, error) {
|
|
|
tx := repo.transactionContext.PgTx
|
|
|
var m []*models.EvaluationItemUsed
|
|
|
query := tx.Model(&m).
|
|
|
Where("deleted_at isnull")
|
|
|
query := tx.Model(&m)
|
|
|
if v, ok := queryOptions["limit"].(int); ok {
|
|
|
query.Limit(v)
|
|
|
}
|
...
|
...
|
|