Mybatis-plus selectById() 查询不到结果
在刚入职公司的时候,前辈让使用mybatis-plus简化一些sql相关的操作。
最开始使用selecById的时候是可以正常检索出指定id的数据,后来随着项目的推进,
发现有些前面使用selectById的地方莫名检索不到数据了。
问题分析
Option.java
Option是选择题的具体选项信息,id是数据表的主键,设置为自增。
@TableName("`option`")
public class OptionData {
private Integer id;
@TableId(type