From 8f04e8a75cc1ac060742855a0c57c088116c75c1 Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Fri, 28 Jul 2023 12:15:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/mybatisflex/core/query/CPI.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/CPI.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/CPI.java index 7875bb95..3a8a3ba7 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/CPI.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/CPI.java @@ -120,6 +120,11 @@ public class CPI { queryWrapper.setJoinTables(joinTables); } + public static void addJoin(QueryWrapper queryWrapper, Join join) { + queryWrapper.addJoinTable(join.getQueryTable()); + queryWrapper.addJoin(join); + } + public static QueryCondition getWhereQueryCondition(QueryWrapper queryWrapper) { return queryWrapper.getWhereQueryCondition();