|
|
@@ -335,9 +335,12 @@ func Query[O any](tableName string, orderBy string, stringFieldQueryCondition st
|
|
|
return errResponse, errors.New("字符串字段值类型错误")
|
|
|
}
|
|
|
|
|
|
- queryCondition, ok := customStringFieldQueryCondition[field.FieldName]
|
|
|
- if !ok {
|
|
|
- queryCondition = stringFieldQueryCondition
|
|
|
+ queryCondition := stringFieldQueryCondition
|
|
|
+ if customStringFieldQueryCondition != nil {
|
|
|
+ custom, ok := customStringFieldQueryCondition[field.FieldName]
|
|
|
+ if ok {
|
|
|
+ queryCondition = custom
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
switch queryCondition {
|