Skip to main content

One post tagged with "DynamicSQL"

Hello tag description

View All Tags

使用规则处理复杂条件

· One min read
ZhaoYongChun
Maintainers

AND/OR 规则进阶

因此规则还可稍微复杂一点

@{and, (age = :age and sex = '1') or (name = :name and id in (:ids)) }

对应的 SQL 为:

(age = ? and sex = '1') or (name = ? and id in (?, ?, ?))