最新回答 / weixin_慕仔2069104
檢查?tableInfo.getTableName() 有沒有獲取到正確的表名,用日志排查一下直接手動輸入表名:tableInfo.setTableName("your_table_name");
2023-04-14
最贊回答 / athr
查閱官網,發現要用了新的版本,加入了如下代碼:
@Bean public?MybatisPlusInterceptor?mybatisPlusInterceptor()?{ ????MybatisPlusInterceptor?mybatisPlusInterceptor?=?new?MybatisPlusInterceptor(); ????mybatisPlusInterce...
2022-07-13
最新回答 / itachy
MP本身不支持恢復數據,恢復方法可參考:https://blog.csdn.net/qq_38989725/article/details/125910118
2021-12-15
講師回答 / 老猿
select max(id) from 表名,這樣應該可以實現你的需求,但是你得確保,你得到這個結果后沒有新的數據插入,如果有新數據插入,它就不是最大的id了。
2021-05-06