feat: add QueryWrapper.forUpdateNoWait

This commit is contained in:
开源海哥 2023-05-25 11:01:28 +08:00
parent 98975d2507
commit 368def9e4d

View File

@ -285,6 +285,17 @@ public class QueryWrapper extends BaseQueryWrapper<QueryWrapper> {
return this;
}
public QueryWrapper forUpdateNoWait(){
addEndFragment("FOR UPDATE NOWAIT");
return this;
}
// public QueryWrapper end(String sqlPart){
// addEndFragment(sqlPart);
// return this;
// }
protected Joiner<QueryWrapper> joining(String type, String table, boolean condition) {
Join join = new Join(type, table, condition);