|
|
@@ -49,12 +49,20 @@ func BindConfiguration(binder *binding.Binder, opts ...Option) {
|
|
|
}, fserr.New("传递的实体不是该领域的实体")
|
|
|
}
|
|
|
|
|
|
+ conditions := sql.NewConditions()
|
|
|
+
|
|
|
+ if strutils.IsStringNotEmpty(e.Scope) {
|
|
|
+ conditions.Equal(ColumnScope, e.Scope)
|
|
|
+ }
|
|
|
+
|
|
|
+ if strutils.IsStringNotEmpty(e.Group) {
|
|
|
+ conditions.Equal(ColumnGroup, e.Group)
|
|
|
+ }
|
|
|
+
|
|
|
results, _, err := database.Query(dbExecutor, &sql.QueryExecuteParams{
|
|
|
TableName: configurationTableName,
|
|
|
SelectColumns: []string{ColumnValue},
|
|
|
- Conditions: sql.NewConditions().
|
|
|
- Equal(ColumnScope, e.Scope).
|
|
|
- Equal(ColumnGroup, e.Group),
|
|
|
+ Conditions: conditions,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return map[string]any{
|