优化with in

This commit is contained in:
白茶清欢 2024-01-22 18:26:03 +08:00
parent 4d795cba8b
commit 6482ee8446
1 changed files with 1 additions and 7 deletions

View File

@ -148,13 +148,7 @@ func WithBatchIn[T op_type.Array](batchIn map[string]T) SetOption {
o.In = make(map[string]interface{})
}
for field, value := range batchIn {
if nil == value {
continue
}
if len(value) == 0 {
continue
}
o.In[field] = value
WithIn(field, value)
}
}
}