加上括号:
List<User> list = userService.list(
new QueryWrapper<User>().lambda()
.eq(User::getStatus, Status.Active.code())
.and(wq ->wq.like(ObjectUtil.isNotNull(keyword),User::getFullName, keyword)
.or().like(ObjectUtil.isNotNull(keyword),User::getUsername, keyword))
.last("limit 10")
==> Preparing: SELECT id,full_name,username,email,department,status,create_time,modify_time,tableau_id,uid,belong_store,psid,group_id FROM t_user WHERE status = ? AND ( full_name LIKE ? OR username LIKE ? ) limit 10
==> Parameters: 1(Integer), %菲%(String), %菲%(String)