最新回答 / weixin_慕仔2069104
檢查?tableInfo.getTableName() 有沒有獲取到正確的表名,用日志排查一下直接手動輸入表名:tableInfo.setTableName("your_table_name");
2023-04-14
this.strictInsertFill(metaObject, "createTime", LocalDateTime.class, LocalDateTime.now());
this.setFieldValByName("createTime", LocalDateTime.now(),metaObject);
this.fillStrategy(metaObject, "createTime", LocalDateTime.now());
this.setInsertFieldValByName("operator", "Jerry", metaObject);
this.setFieldValByName("createTime", LocalDateTime.now(),metaObject);
this.fillStrategy(metaObject, "createTime", LocalDateTime.now());
this.setInsertFieldValByName("operator", "Jerry", metaObject);
2022-09-06
fix老項目的bug,正好用到了這個特性,然后寫了總結(jié)。想著,可能對其它同學理解這個功能的使用有幫忙,就發(fā)出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
2022-07-19
fix老項目的bug,正好用到了這個特性,然后寫了總結(jié)。想著,可能對其它同學理解這個功能的使用有幫忙,就發(fā)出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
2022-07-19
有總結(jié)有示例,很容易學會。
fix老項目的bug,正好用到了這個特性,然后寫了總結(jié)。想著,可能對其它同學理解這個功能的使用有幫忙,就發(fā)出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
fix老項目的bug,正好用到了這個特性,然后寫了總結(jié)。想著,可能對其它同學理解這個功能的使用有幫忙,就發(fā)出來,看看有沒有幫助
https://mp.weixin.qq.com/s/2kT5FhNlGQvCxxmaEblH1g
2022-07-18
最贊回答 / athr
查閱官網(wǎng),發(fā)現(xiàn)要用了新的版本,加入了如下代碼:
@Bean public?MybatisPlusInterceptor?mybatisPlusInterceptor()?{ ????MybatisPlusInterceptor?mybatisPlusInterceptor?=?new?MybatisPlusInterceptor(); ????mybatisPlusInterce...
2022-07-13
最新回答 / 輕舞的穹
對比設(shè)置的MyMetaObjectHandler里的條件字段是否正確,所設(shè)置的時間需求是當前時間(LocalDateTime.now())或者其他時間
2022-06-03