From 368def9e4dd5df73b3479d6373a4f5367a1d404e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=80=E6=BA=90=E6=B5=B7=E5=93=A5?= Date: Thu, 25 May 2023 11:01:28 +0800 Subject: [PATCH] feat: add QueryWrapper.forUpdateNoWait --- .../java/com/mybatisflex/core/query/QueryWrapper.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java index 7400d680..4ecdd060 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/query/QueryWrapper.java @@ -285,6 +285,17 @@ public class QueryWrapper extends BaseQueryWrapper { return this; } + public QueryWrapper forUpdateNoWait(){ + addEndFragment("FOR UPDATE NOWAIT"); + return this; + } + + +// public QueryWrapper end(String sqlPart){ +// addEndFragment(sqlPart); +// return this; +// } + protected Joiner joining(String type, String table, boolean condition) { Join join = new Join(type, table, condition);