多次更新使用update(entity,wrapper)方法存在问题
QueryWrapper<NewUser> queryWrapper = new QueryWrapper<NewUser>();
NewUser selectById = new NewUser();
selectById.setName("哆啦A梦");
queryWrapper.eq("name", "新手机").eq("version", 4);
newUserMapper.update(selectById, queryWrapper);
则查询日志如下
DEBUG==> Preparing: UPDATE tb_newUser SET name=?, age=?, update_time=?, version=? WHERE deleted=0 AND (name = ? AND version = ? AND version = ?)
DEBUG==> Parameters: 哆啦A梦(String), 0(Integer), 2020-05-07 17:02:00.139(Timestamp), 1(Integer), 新手机(String), 4(Integer), 0(Integer)
DEBUG<== Updates: 0
怎样解决?????