老师,为啥在更新操作的时候sql语句都会自带manager_id=?呢?
@Test
void updateById() {
User user = new User();
user.setId(1289401733907771394L);
user.setAge(28);
user.setEmail("wtf4@baomidou.com");
int rows = userMapper.updateById(user);
System.out.println("影响记录数:"+rows);
}
控制台输出:
DEBUG==> Preparing: UPDATE user SET age=?, email=?, manager_id=? WHERE id=?
DEBUG==> Parameters: 28(Integer), wtf4@baomidou.com(String), 0(Long), 1289401733907771394(Long)
DEBUG<== Updates: 1
影响记录数:1