在使用Mybatisplus的selectById和insert方法时,如何确保数据的一致性和准确性?
- 内容介绍
- 文章标签
- 相关推荐
本文共计324个文字,预计阅读时间需要2分钟。
1. 使用Mybatisplus自带selectById和insert方法时的一些问题 1. selectById的问题(1). 表的主键列名不是id时,查询不到数据,因为Mybatisplus自动生成的SQL语句where后面拼接的是where null=?。
本文共计324个文字,预计阅读时间需要2分钟。
1. 使用Mybatisplus自带selectById和insert方法时的一些问题 1. selectById的问题(1). 表的主键列名不是id时,查询不到数据,因为Mybatisplus自动生成的SQL语句where后面拼接的是where null=?。

