6

Service CRUD 接口和 mapper 的 CRUD 接口哪里不一样

 2 years ago
source link: https://www.v2ex.com/t/867205
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Java

Service CRUD 接口和 mapper 的 CRUD 接口哪里不一样

  t298 · 4 小时 20 分钟前 · 664 次点击

我目前就知道他俩返回值不一样,还有什么不一样嘛。具体是我在使用的时候发现 service.updateById 这个方法更新了为空的字段,(我确定实体类没有加过滤的注解)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK