doc: update docs

This commit is contained in:
开源海哥 2023-08-02 19:49:59 +08:00
parent 18b9dece60
commit 63a376ab5e
2 changed files with 47 additions and 47 deletions

View File

@ -78,7 +78,7 @@ QueryWrapper query = QueryWrapper.create()
.and(ACCOUNT.USER_NAME.like("zhang").or(ACCOUNT.USER_NAME.like("li")));
// execute SQL
// ELECT * FROM tb_account
// SELECT * FROM tb_account
// WHERE tb_account.id >= 100
// AND (tb_account.user_name LIKE '%zhang%' OR tb_account.user_name LIKE '%li%' )
List<Account> accounts = mapper.selectListByQuery(query);
@ -96,7 +96,7 @@ QueryWrapper query = QueryWrapper.create()
.orderBy(ACCOUNT.ID.desc());
// execute SQL
// ELECT * FROM tb_account
// SELECT * FROM tb_account
// WHERE tb_account.id >= 100
// AND (tb_account.user_name LIKE '%zhang%' OR tb_account.user_name LIKE '%li%' )
// ORDER BY tb_account.id DESC

View File

@ -97,7 +97,7 @@ QueryWrapper query = QueryWrapper.create()
.and(ACCOUNT.USER_NAME.like("张").or(ACCOUNT.USER_NAME.like("李")));
// 执行 SQL
// ELECT * FROM tb_account
// SELECT * FROM tb_account
// WHERE tb_account.id >= 100
// AND (tb_account.user_name LIKE '%张%' OR tb_account.user_name LIKE '%李%' )
List<Account> accounts = accountMapper.selectListByQuery(query);
@ -116,7 +116,7 @@ QueryWrapper query=QueryWrapper.create()
.orderBy(ACCOUNT.ID.desc());
// 执行 SQL
// ELECT * FROM tb_account
// SELECT * FROM tb_account
// WHERE id >= 100
// AND (user_name LIKE '%张%' OR user_name LIKE '%李%' )
// ORDER BY `id` DESC