一、更新操作探究(3.0.3版本)

demo

 1 /**
 2      * 修改用户
 3      * @throws SQLException
 4      */
 5     @Test
 6     public void update() throws SQLException {
 7 
 8         Employee employee = new Employee();
 9 
10         employee.setLastName("Marry");
11         employee.setAge(12);
12         employee.setEmail("marry@163.com");
13         employee.setGender(1);
14 
15         Integer result = employeeMapper.updateById(employee);
16 
17 
18         if (result!=null||result>0) {
19             logger.info("++++++++++++++++修改成功+++++");
20         }
21     }
View Code

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2021-07-09
  • 2021-09-30
  • 2021-07-29
  • 2021-11-30
  • 2022-01-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2021-11-06
  • 2021-09-16
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案