代码生成:增加主子表的示例

This commit is contained in:
YunaiV
2023-11-12 22:33:18 +08:00
parent e67a6a2fe9
commit 256c560d43
24 changed files with 1224 additions and 156 deletions

View File

@ -128,7 +128,11 @@ public interface BaseMapperX<T> extends MPJBaseMapper<T> {
Db.updateBatchById(entities, size);
}
default void saveOrUpdateBatch(Collection<T> collection) {
default void insertOrUpdate(T entity) {
Db.saveOrUpdate(entity);
}
default void insertOrUpdateBatch(Collection<T> collection) {
Db.saveOrUpdateBatch(collection);
}