优化with in
This commit is contained in:
parent
4d795cba8b
commit
6482ee8446
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user