优化with in

This commit is contained in:
白茶清欢 2024-01-22 18:26:03 +08:00
parent 4d795cba8b
commit 6482ee8446

View File

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