1. 嵌套子条件为空时也应返回对应逻辑类型的单位元(AND为true,OR为false), 而不是只在根条件生效,否则空子条件会在父级拼接出 NULL,污染整个 WHERE 子句 2. 表达式因 IsIgnoreEmptyParma 被全部过滤后 conditions 为空的情况, 同样需要按 AND/OR 返回单位元,避免拼出空的表达式列表
28 lines
903 B
AMPL
28 lines
903 B
AMPL
module git.fsdpf.net/go/condition
|
|
|
|
go 1.25.5
|
|
|
|
require (
|
|
git.fsdpf.net/go/db v0.0.0-20260820090948-9c6bb5a83508
|
|
git.fsdpf.net/go/reflux v0.0.0-20260820092857-1f48635da3f1
|
|
git.fsdpf.net/go/req v0.0.0-20260820100114-1d95bf64a2a0
|
|
git.fsdpf.net/go/utils v0.0.0-20240509025914-c03a9cb48aff
|
|
github.com/samber/lo v1.49.1
|
|
github.com/spf13/cast v1.10.0
|
|
github.com/stretchr/testify v1.11.1
|
|
)
|
|
|
|
require (
|
|
github.com/DATA-DOG/go-sqlmock v1.5.2 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/go-chi/chi/v5 v5.0.12 // indirect
|
|
github.com/mattn/go-sqlite3 v1.14.42 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/tidwall/gjson v1.17.1 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tidwall/sjson v1.2.5 // indirect
|
|
golang.org/x/text v0.39.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|