From d44d2c8225a2aa68f31389f9e73213a8fc3c3962 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Mon, 14 Aug 2023 11:33:23 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9D=A1=E4=BB=B6=E5=B5=8C=E5=A5=97?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mybatisflex/coretest/DynamicConditionTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/DynamicConditionTest.java b/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/DynamicConditionTest.java index 590965ec..6576e8a7 100644 --- a/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/DynamicConditionTest.java +++ b/mybatis-flex-core/src/test/java/com/mybatisflex/coretest/DynamicConditionTest.java @@ -131,4 +131,14 @@ public class DynamicConditionTest { System.out.println(queryWrapper.toSQL()); } + @Test + public void test08() { + QueryWrapper queryWrapper = QueryWrapper.create(). + from(ACCOUNT) + .where(ACCOUNT.ID.eq(1)) + .and(ACCOUNT.AGE.in(17, 18, 19).or(ACCOUNT.USER_NAME.eq("zhang san"))); + + System.out.println(queryWrapper.toSQL()); + } + }